コード例 #1
0
ファイル: check.php プロジェクト: rrsc/beansbooks
 public function __construct($data = NULL)
 {
     parent::__construct($data);
     $this->_id = isset($data->id) ? (int) $data->id : 0;
     $this->_data = $data;
     $this->_expense = $this->_load_vendor_expense($this->_id);
 }
コード例 #2
0
ファイル: create.php プロジェクト: rrsc/beansbooks
 public function __construct($data = NULL)
 {
     parent::__construct($data);
     $this->_data = $data;
     $this->_expense = $this->_default_vendor_expense();
     $this->_expense_lines = array();
     $this->_account_transactions = array();
 }
コード例 #3
0
ファイル: search.php プロジェクト: rrsc/beansbooks
 public function __construct($data = NULL)
 {
     parent::__construct($data);
     $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_vendor_id = isset($data->search_vendor_id) ? (int) $data->search_vendor_id : FALSE;
     $this->_search_keywords = isset($data->keywords) ? $data->keywords : FALSE;
 }
コード例 #4
0
ファイル: update.php プロジェクト: rrsc/beansbooks
 public function __construct($data = NULL)
 {
     parent::__construct($data);
     $this->_data = $data;
     $this->_id = isset($data->id) ? (int) $data->id : 0;
     $this->_attributes_only = (isset($this->_data->attributes_only) and $this->_data->attributes_only) ? TRUE : FALSE;
     $this->_expense = $this->_load_vendor_expense($this->_id);
     $this->_expense_lines = array();
     $this->_account_transactions = array();
 }
コード例 #5
0
ファイル: line.php プロジェクト: rrsc/beansbooks
 public function __construct($data = NULL)
 {
     parent::__construct($data);
 }