Ejemplo n.º 1
0
 public function __construct($data = NULL)
 {
     parent::__construct($data);
     $this->_account_id = isset($data->account_id) ? $data->account_id : 0;
     $this->_data = $data;
     $this->_account = $this->_load_account($this->_account_id);
     $this->_account_reconcile = $this->_default_account_reconcile();
     $this->_validate_only = (isset($this->_data->validate_only) and $this->_data->validate_only) ? TRUE : FALSE;
 }
Ejemplo n.º 2
0
 public function __construct($data = NULL)
 {
     parent::__construct($data);
     $this->_account_reconciles = ORM::Factory('account_reconcile');
     $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";
     // Check for search fields.
     $this->_search_account_id = isset($data->account_id) ? $data->account_id : FALSE;
 }
Ejemplo n.º 3
0
 public function __construct($data = NULL)
 {
     parent::__construct($data);
     $this->_id = isset($data->id) ? (int) $data->id : 0;
     $this->_account_reconcile = $this->_load_account_reconcile($this->_id);
 }