本文整理汇总了PHP中KDatabaseTableDefault::_initialize方法的典型用法代码示例。如果您正苦于以下问题:PHP KDatabaseTableDefault::_initialize方法的具体用法?PHP KDatabaseTableDefault::_initialize怎么用?PHP KDatabaseTableDefault::_initialize使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类KDatabaseTableDefault
的用法示例。
在下文中一共展示了KDatabaseTableDefault::_initialize方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: _initialize
public function _initialize(KConfig $config)
{
$config->identity_column = 'id';
$orderable = $this->getBehavior('com://admin/categories.database.behavior.orderable', array('parent_column' => 'section_id'));
$config->append(array('name' => 'categories', 'behaviors' => array('lockable', $orderable, 'sluggable', 'cascadable'), 'column_map' => array('enabled' => 'published', 'locked_on' => 'checked_out_time', 'locked_by' => 'checked_out', 'slug' => 'alias', 'section_id' => 'section')));
parent::_initialize($config);
}
示例2: _initialize
/**
* Initializes the options for the object
*
* Called from {@link __construct()} as a first step of object instantiation.
*
* @param object An optional KConfig object with configuration options.
* @return void
*/
protected function _initialize(KConfig $config)
{
$package = $this->_identifier->package;
$name = KInflector::singularize($this->_identifier->name);
$config->append(array('xml_path' => JPATH_ADMINISTRATOR . '/components/com_' . $package . '/views/' . $name . '/tmpl/' . $name . '.xml'));
parent::_initialize($config);
}
示例3: _initialize
public function _initialize(KConfig $config)
{
$config->identity_column = 'id';
$config->append(array(
'name' => 'content',
'behaviors' => array(
'creatable', 'modifiable', 'lockable', 'orderable', 'sluggable', 'revisable'
),
'column_map' => array(
'locked_on' => 'checked_out_time',
'locked_by' => 'checked_out',
'slug' => 'alias',
'section_id' => 'sectionid',
'category_id' => 'catid',
'created_on' => 'created',
'modified_on' => 'modified',
'description' => 'metadesc',
'params' => 'attribs'
),
'filters' => array(
'introtext' => array('html', 'tidy'),
'fulltext' => array('html', 'tidy'),
'attribs' => 'ini'
)
));
parent::_initialize($config);
}
示例4: _initialize
public function _initialize(KConfig $config)
{
$config->identity_column = 'id';
$sluggable = $this->getBehavior('sluggable', array('columns' => array('name')));
$config->append(array('name' => 'contact_details', 'behaviors' => array('orderable', 'lockable', $sluggable), 'column_map' => array('enabled' => 'published', 'locked_on' => 'checked_out_time', 'locked_by' => 'checked_out', 'slug' => 'alias', 'category' => 'catid'), 'filters' => array('params' => 'ini')));
parent::_initialize($config);
}
示例5: _initialize
public function _initialize(KConfig $config)
{
$sluggable = $this->getBehavior('sluggable', array('columns' => array('name')));
$orderable = $this->getBehavior('com://admin/categories.database.behavior.orderable', array('parent_column' => 'catid'));
$config->append(array('identity_column' => 'id', 'base' => 'newsfeeds', 'name' => 'newsfeeds', 'behaviors' => array('lockable', $orderable, $sluggable), 'column_map' => array('enabled' => 'published', 'locked_on' => 'checked_out_time', 'locked_by' => 'checked_out', 'slug' => 'alias'), 'filters' => array('slug' => 'slug', 'link' => 'url')));
parent::_initialize($config);
}
示例6: _initialize
public function _initialize(KConfig $config)
{
$config->identity_column = 'id';
$orderable = $this->getBehavior('com://admin/categories.database.behavior.orderable', array('parent_column' => 'catid'));
$config->append(array('name' => 'weblinks', 'base' => 'weblinks', 'behaviors' => array('lockable', $orderable, 'sluggable'), 'column_map' => array('enabled' => 'published', 'locked_on' => 'checked_out_time', 'locked_by' => 'checked_out', 'slug' => 'alias'), 'filters' => array('description' => array('html', 'tidy'), 'url' => array('url'), 'params' => array('ini'))));
parent::_initialize($config);
}
示例7: _initialize
public function _initialize(KConfig $config)
{
$sluggable = $this->getBehavior('sluggable', array('columns' => array('name')));
$orderable = $this->getBehavior('com://admin/categories.database.behavior.orderable', array('parent_column' => 'catid'));
$config->append(array('identity_column' => 'bid', 'base' => 'banner', 'name' => 'banner', 'behaviors' => array('creatable', 'lockable', $sluggable, $orderable, 'hittable'), 'column_map' => array('enabled' => 'showBanner', 'created_on' => 'date', 'locked_on' => 'checked_out_time', 'locked_by' => 'checked_out', 'slug' => 'alias', 'hits' => 'clicks'), 'filters' => array('custombannercode' => array('html', 'tidy'), 'params' => 'ini')));
parent::_initialize($config);
}
示例8: _initialize
protected function _initialize(KConfig $config)
{
$config->identity_column = 'id';
$config->append(array(
'name' => 'menu',
'behaviors' => array('lockable', 'sluggable', 'nestable'),
'column_map' => array(
'title' => 'name',
'enabled' => 'published',
'locked_by' => 'checked_out',
'locked_on' => 'checked_out_time',
'slug' => 'alias',
'group_id' => 'access',
'level' => 'sublevel',
'component_id' => 'componentid',
'pages_menu_name' => 'menutype',
'parent_id' => 'parent'
),
'filters' => array(
'params' => 'ini'
)
));
parent::_initialize($config);
}
示例9: _initialize
protected function _initialize(KConfig $config)
{
$config->append(array(
'name' => 'core_acl_aro'
));
parent::_initialize($config);
}
示例10: _initialize
protected function _initialize(KConfig $config)
{
$config->append(array(
'behaviors' => array('creatable')
));
parent::_initialize($config);
}
示例11: _initialize
public function _initialize(KConfig $config)
{
$config->append(array(
'name' => 'modules_menu',
));
parent::_initialize($config);
}
示例12: _initialize
protected function _initialize(KConfig $config)
{
$config->append(array(
'name' => 'session',
'base' => 'session'
));
parent::_initialize($config);
}
示例13: _initialize
public function _initialize(KConfig $config)
{
$config->identity_column = 'id';
$config->append(array(
'name' => 'components',
'filters' => array('params' => 'ini')
));
parent::_initialize($config);
}
示例14: _initialize
public function _initialize(KConfig $config)
{
$config->identity_column = 'content_id';
$config->append(array(
'name' => 'content_frontpage',
'behaviors' => array('orderable')
));
parent::_initialize($config);
}
示例15: _initialize
protected function _initialize(KConfig $config)
{
$config->append(array(
'filters' => array(
'identifier' => 'identifier',
'path' => 'com.files.filter.path',
'parameters' => 'json'
)
));
parent::_initialize($config);
}