Example #1
0
 public function __construct($tablename)
 {
     $this->_table_name = $tablename;
     $this->_object_name = $tablename;
     $this->_actual_model_name = 'model_' . strtolower($tablename);
     parent::_initialize();
 }
Example #2
0
File: crud.php Project: raku/MorCMS
 /**
  * Initialize CRUD and ORM
  */
 public function _initialize()
 {
     foreach ($this->items() as $item) {
         $item->initialize($this);
     }
     $this->observe_change();
     parent::_initialize();
 }
Example #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;
     }
 }
Example #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;
 }
Example #5
0
	/**
	 * Get table name from config
	 *
	 * @return  void
	 */
	protected function _initialize()
	{
		$this->_table_name = Kohana::config('dblog.table');
		parent::_initialize();
	}
Example #6
0
File: orm.php Project: ryross/A1
 protected function _initialize()
 {
     parent::_initialize();
     $this->_columns = Kohana::$config->load($this->_config)->columns;
     $this->_user_model = Kohana::$config->load($this->_config)->user_model;
 }