public function __construct($tablename) { $this->_table_name = $tablename; $this->_object_name = $tablename; $this->_actual_model_name = 'model_' . strtolower($tablename); parent::_initialize(); }
/** * Initialize CRUD and ORM */ public function _initialize() { foreach ($this->items() as $item) { $item->initialize($this); } $this->observe_change(); parent::_initialize(); }
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; } }
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; }
/** * Get table name from config * * @return void */ protected function _initialize() { $this->_table_name = Kohana::config('dblog.table'); parent::_initialize(); }
protected function _initialize() { parent::_initialize(); $this->_columns = Kohana::$config->load($this->_config)->columns; $this->_user_model = Kohana::$config->load($this->_config)->user_model; }