Exemple #1
0
 public function __construct($tablename)
 {
     $this->_table_name = $tablename;
     $this->_object_name = $tablename;
     $this->_actual_model_name = 'model_' . strtolower($tablename);
     parent::_initialize();
 }
Exemple #2
0
 /**
  * Initialize CRUD and ORM
  */
 public function _initialize()
 {
     foreach ($this->items() as $item) {
         $item->initialize($this);
     }
     $this->observe_change();
     parent::_initialize();
 }
Exemple #3
0
 protected function _initialize()
 {
     parent::_initialize();
     if ($this->_filter_mode === NULL) {
         $this->_filter_mode = self::$filter_mode;
     }
     if ($this->_site_id === NULL) {
         $this->_site_id = self::$site_id;
     }
 }
Exemple #4
0
 protected function _initialize()
 {
     parent::_initialize();
     // We have the ternary because loading a form via Model_Form could set the type to NULL
     $this->type = $this->getType() ? $this->getType() : $this->type;
 }
Exemple #5
0
	/**
	 * Get table name from config
	 *
	 * @return  void
	 */
	protected function _initialize()
	{
		$this->_table_name = Kohana::config('dblog.table');
		parent::_initialize();
	}
Exemple #6
0
 protected function _initialize()
 {
     parent::_initialize();
     $this->_columns = Kohana::$config->load($this->_config)->columns;
     $this->_user_model = Kohana::$config->load($this->_config)->user_model;
 }