Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## Booking
- <?php
- class Booking extends DataObject {
- static $db = array(
- 'Status' => "Enum(array('Pending', 'Completed', 'Cancelled', 'Reserved', 'Refunded'))",
- 'Type' => "Enum(array('reserved', 'evoucher', 'direct', 'group', 'agent'))",
- 'TotalCost' => 'Currency',
- 'Reference' => 'Text',
- 'IP' => 'Text',
- 'Occasion' => "Enum(array('Advert', 'Gift Company', 'Email', 'Internet', 'Recommendation', 'Other'))",
- 'Recipient' => "Enum(array('Birthday', 'Corporate', 'Gift', 'Excursion', 'Other'))",
- 'HearAbout' => "Enum(array('Family', 'Friend', 'Work', 'Other'))",
- 'Notes' => 'Text',
- );
- static $has_one = array(
- 'Payments' => 'Payment',
- 'Schedules' => 'Schedule',
- 'Activities' => 'Activity',
- 'Locations' => 'Location',
- );
- }
- ?>
- ## Schedule
- <?php
- class Schedule extends DataObject {
- static $db = array(
- 'Date' => 'Date',
- 'Time' => 'Time',
- 'Slots' => 'Int',
- 'Quota' => 'Int',
- );
- static $has_many = array(
- 'Locations' => 'Location',
- 'Activities' => 'Activity',
- 'Bookings' => 'Booking'
- );
- }
- ?>
Add Comment
Please, Sign In to add comment