Exemple #1
0
 public function __construct($data = NULL)
 {
     parent::__construct($data);
     $this->_data = $data;
     $this->_vendor = $this->_default_vendor();
     $this->_validate_only = (isset($this->_data->validate_only) and $this->_data->validate_only) ? TRUE : FALSE;
 }
Exemple #2
0
 public function __construct($data = NULL)
 {
     parent::__construct($data);
     $this->_id = isset($data->id) ? (int) $data->id : 0;
     $this->_vendor = $this->_load_vendor($this->_id);
     $this->_data = $data;
 }
Exemple #3
0
 public function __construct($data = NULL)
 {
     parent::__construct($data);
     $this->_vendors = ORM::Factory('entity_vendor')->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;
 }
Exemple #4
0
 public function __construct($data = NULL)
 {
     parent::__construct($data);
 }
Exemple #5
0
 protected function _validate_form_line($form_line, $form_type = NULL)
 {
     parent::_validate_form_line($form_line, "purchase");
 }