Пример #1
0
 public function __construct($data = NULL)
 {
     parent::__construct($data);
     $this->_id = isset($data->id) ? (int) $data->id : 0;
     $this->_customer = $this->_load_customer($this->_id);
     $this->_data = $data;
 }
Пример #2
0
 public function __construct($data = NULL)
 {
     parent::__construct($data);
     $this->_data = $data;
     $this->_customer = $this->_default_customer();
     $this->_validate_only = (isset($this->_data->validate_only) and $this->_data->validate_only) ? TRUE : FALSE;
 }
Пример #3
0
 public function __construct($data = NULL)
 {
     parent::__construct($data);
     $this->_customers = ORM::Factory('entity_customer')->distinct(TRUE);
     $this->_page = (isset($data->page) and (int) $data->page >= 0) ? (int) $data->page : 0;
     $this->_page_size = (isset($data->page_size) and (int) $data->page_size > 0) ? (int) $data->page_size : 50;
     $this->_sort_by = isset($data->sort_by) ? strtolower($data->sort_by) : "newest";
     $this->_search_and = isset($data->search_and) ? $data->search_and ? TRUE : FALSE : FALSE;
     $this->_search_email = (isset($data->search_email) and strlen($data->search_email)) ? $data->search_email : FALSE;
     $this->_search_name = (isset($data->search_name) and strlen($data->search_name)) ? $data->search_name : FALSE;
     $this->_search_number = (isset($data->search_number) and strlen($data->search_number)) ? $data->search_number : FALSE;
 }
Пример #4
0
 public function __construct($data = NULL)
 {
     parent::__construct($data);
 }