X-Git-Url: http://git.iain.cx/?a=blobdiff_plain;f=lib%2Fconstants.php;fp=lib%2Fconstants.php;h=3891c1f72ce0c88bfb547a5cb7302232b27f8b2c;hb=8608b888fb708fadeb23ae113ad83516cc5e4176;hp=83d93e5edb3a00156ee32d959a8ceb7c126aaef1;hpb=f632680f1afa481ad11b7d9b8e6fae18761b0f23;p=readifood.git diff --git a/lib/constants.php b/lib/constants.php index 83d93e5..3891c1f 100644 --- a/lib/constants.php +++ b/lib/constants.php @@ -44,4 +44,13 @@ $PARCEL_BABY12 = 1 << 7; $PARCEL_TOILETRY = 1 << 8; + /* Offers. */ + $offers = array("eligible", "contacted", "approved", "fulfilled", "closed"); + $all_offers = (1 << count($offers)) - 1; + $OFFER_ELIGIBLE = 1 << 0; + $OFFER_CONTACTED = 1 << 1; + $OFFER_APPROVED = 1 << 2; + $OFFER_DELIVERED = 1 << 3; + $OFFER_COMPLETED = 1 << 4; + $OFFER_ANY = $all_offers; ?>