Added contact offers.
[readifood.git] / lib / constants.php
index 10fafd6..3891c1f 100644 (file)
@@ -1,6 +1,9 @@
 <?php
 
-/* Area days of week. */
+  /* Pagination. */
+  $default_page_size = 50;
+
+  /* Area days of week. */
   $week = array("Sun", "Mon", "Tues", "Wed", "Thu", "Fri", "Sat");
 
   /* Contact roles. */
   $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;
+
+  /* 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;
 ?>