本文整理汇总了PHP中ORM::_initialize方法的典型用法代码示例。如果您正苦于以下问题:PHP ORM::_initialize方法的具体用法?PHP ORM::_initialize怎么用?PHP ORM::_initialize使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ORM
的用法示例。
在下文中一共展示了ORM::_initialize方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
public function __construct($tablename)
{
$this->_table_name = $tablename;
$this->_object_name = $tablename;
$this->_actual_model_name = 'model_' . strtolower($tablename);
parent::_initialize();
}
示例2: _initialize
/**
* Initialize CRUD and ORM
*/
public function _initialize()
{
foreach ($this->items() as $item) {
$item->initialize($this);
}
$this->observe_change();
parent::_initialize();
}
示例3: _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;
}
}
示例4: _initialize
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;
}
示例5: _initialize
/**
* Get table name from config
*
* @return void
*/
protected function _initialize()
{
$this->_table_name = Kohana::config('dblog.table');
parent::_initialize();
}
示例6: _initialize
protected function _initialize()
{
parent::_initialize();
$this->_columns = Kohana::$config->load($this->_config)->columns;
$this->_user_model = Kohana::$config->load($this->_config)->user_model;
}