X-Git-Url: http://git.iain.cx/?a=blobdiff_plain;f=lib%2Fconstants.php;h=dcffda2d2b0bbeaae7f3a2826542cb4b44641a01;hb=a2e796d4502f96c1ec0e85dd22c7eccf7d1d9ac3;hp=06a7c9e67d01d7efc92ae0cb4ae5d03823b08bb4;hpb=6fdbfe32798452ec1c0fdbda57edabb892518409;p=readifood.git diff --git a/lib/constants.php b/lib/constants.php index 06a7c9e..dcffda2 100644 --- a/lib/constants.php +++ b/lib/constants.php @@ -4,13 +4,18 @@ $week = array("Sun", "Mon", "Tues", "Wed", "Thu", "Fri", "Sat"); /* Contact roles. */ - $roles = array("Staff", "Driver", "Requester", "Beneficiary", "Donor"); + $contact_roles = array("Staff", "Driver", "Referrer", "Beneficiary", "Donor"); $ROLE_STAFF = 1 << 0; $ROLE_DRIVER = 1 << 1; $ROLE_REQUESTER = 1 << 2; $ROLE_BENEFICIARY = 1 << 3; $ROLE_DONOR = 1 << 4; + /* Hub types. */ + $hub_roles = array("Collection", "Distribution"); + $ROLE_COLLECTION = 1 << 0; + $ROLE_DISTRIBUTION = 1 << 1; + /* Order states. */ $states = array("placed", "picked", "despatched", "undelivered", "delivered", "cancelled"); $all_states = (1 << count($states)) - 1; @@ -22,4 +27,18 @@ $STATE_CANCELLED = 1 << 5; $STATE_ANY = $all_states; + /* Parcel types. */ + $parcel_sizes = array("Single", "Couple", "Family"); + $PARCEL_SINGLE = 1 << 0; + $PARCEL_COUPLE = 1 << 1; + $PARCEL_FAMILY = 1 << 2; + + $parcel_contents = array(null, null, null, "Vegetarian", "Halal", "Diabetic", "Baby 0-6 months", "Baby 6-12 months", "Toiletry bag"); + $PARCEL_VEGETARIAN = 1 << 3; + $PARCEL_HALAL = 1 << 4; + $PARCEL_DIABETIC = 1 << 5; + $PARCEL_BABY6 = 1 << 6; + $PARCEL_BABY12 = 1 << 7; + $PARCEL_TOILETRY = 1 << 8; + ?>