Added contact offers.
[readifood.git] / lib / constants.php
1 <?php
2
3   /* Pagination. */
4   $default_page_size = 50;
5
6   /* Area days of week. */
7   $week = array("Sun", "Mon", "Tues", "Wed", "Thu", "Fri", "Sat");
8
9   /* Contact roles. */
10   $contact_roles = array("Staff", "Driver", "Referrer", "Beneficiary", "Donor");
11   $ROLE_STAFF = 1 << 0;
12   $ROLE_DRIVER = 1 << 1;
13   $ROLE_REQUESTER = 1 << 2;
14   $ROLE_BENEFICIARY = 1 << 3;
15   $ROLE_DONOR = 1 << 4;
16
17   /* Hub types. */
18   $hub_roles = array("Collection", "Distribution");
19   $ROLE_COLLECTION = 1 << 0;
20   $ROLE_DISTRIBUTION = 1 << 1;
21
22   /* Order states. */
23   $states = array("placed", "picked", "despatched", "undelivered", "delivered", "cancelled");
24   $all_states = (1 << count($states)) - 1;
25   $STATE_PLACED = 1 << 0;
26   $STATE_PICKED = 1 << 1;
27   $STATE_DESPATCHED = 1 << 2;
28   $STATE_UNDELIVERED = 1 << 3;
29   $STATE_DELIVERED = 1 << 4;
30   $STATE_CANCELLED = 1 << 5;
31   $STATE_ANY = $all_states;
32
33   /* Parcel types. */
34   $parcel_sizes = array("Single", "Couple", "Family");
35   $PARCEL_SINGLE = 1 << 0;
36   $PARCEL_COUPLE = 1 << 1;
37   $PARCEL_FAMILY = 1 << 2;
38
39   $parcel_contents = array(null, null, null, "Vegetarian", "Halal", "Diabetic", "Baby 0-6 months", "Baby 6-12 months", "Toiletry bag");
40   $PARCEL_VEGETARIAN = 1 << 3;
41   $PARCEL_HALAL = 1 << 4;
42   $PARCEL_DIABETIC = 1 << 5;
43   $PARCEL_BABY6 = 1 << 6;
44   $PARCEL_BABY12 = 1 << 7;
45   $PARCEL_TOILETRY = 1 << 8;
46
47   /* Offers. */
48   $offers = array("eligible", "contacted", "approved", "fulfilled", "closed");
49   $all_offers = (1 << count($offers)) - 1;
50   $OFFER_ELIGIBLE = 1 << 0;
51   $OFFER_CONTACTED = 1 << 1;
52   $OFFER_APPROVED = 1 << 2;
53   $OFFER_DELIVERED = 1 << 3;
54   $OFFER_COMPLETED = 1 << 4;
55   $OFFER_ANY = $all_offers;
56 ?>