function __construct()
 {
     parent::__construct();
     $this->sobuilding = CreateObject('booking.sobuilding');
     $this->soorganization = CreateObject('booking.soorganization');
     $this->soresource = CreateObject('booking.soresource');
     $this->soevent = CreateObject('booking.soevent');
 }
 protected function build_default_read_params()
 {
     $params = parent::build_default_read_params();
     $where_clauses = array();
     //build_default_read_params will not automatically build a filter for the to_ field
     //because it cannot match the name 'filter_to' to an existing field once the prefix
     //'filter' is removed nor do we want it to, so we build that filter manually here:
     if ($filter_to = phpgw::get_var('filter_to', 'string', 'REQUEST', null)) {
         $where_clauses[] = "%%table%%" . sprintf(".to_ <= '%s 23:59:59'", $GLOBALS['phpgw']->db->db_addslashes($filter_to));
     }
     if (count($where_clauses) > O) {
         $params['filters']['where'] = $where_clauses;
     }
     return $params;
 }
 function __construct()
 {
     parent::__construct();
     $this->so = CreateObject('booking.sobuilding');
 }
 function read_single($id)
 {
     $entity = parent::read_single($id);
     $this->authorize_read($entity);
     return $this->add_permission_data($entity);
 }
 function __construct()
 {
     parent::__construct();
     $this->so = CreateObject('booking.sodocumentation');
 }
 function __construct()
 {
     parent::__construct();
     $this->so = CreateObject('booking.socontactperson');
 }
 function __construct()
 {
     parent::__construct();
     $this->so = CreateObject('booking.sosystem_message');
 }
 function __construct()
 {
     parent::__construct();
     $this->so = new booking_soapplication_association();
 }
 function __construct()
 {
     parent::__construct();
     $this->so = CreateObject('booking.socompleted_reservation_export_file');
 }