本文整理汇总了PHP中modObjectGetListProcessor::initialize方法的典型用法代码示例。如果您正苦于以下问题:PHP modObjectGetListProcessor::initialize方法的具体用法?PHP modObjectGetListProcessor::initialize怎么用?PHP modObjectGetListProcessor::initialize使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类modObjectGetListProcessor
的用法示例。
在下文中一共展示了modObjectGetListProcessor::initialize方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: initialize
public function initialize()
{
$initialized = parent::initialize();
$this->setDefaultProperties(array('key' => false, 'namespace' => false, 'area' => false));
$this->dateFormat = $this->modx->getOption('manager_date_format') . ', ' . $this->modx->getOption('manager_time_format');
return $initialized;
}
示例2: initialize
/** {@inheritDoc} */
public function initialize()
{
if (!$this->modx->hasPermission($this->permission)) {
return $this->modx->lexicon('access_denied');
}
return parent::initialize();
}
示例3: initialize
public function initialize()
{
$this->setDefaultProperties(array('profile' => 0, 'search' => ''));
$this->canEdit = $this->modx->hasPermission('save');
$this->canRemove = $this->modx->hasPermission('remove');
return parent::initialize();
}
示例4: initialize
/** {@inheritDoc} */
public function initialize()
{
if (!$this->getProperty('limit')) {
$this->setProperty('limit', 20);
}
return parent::initialize();
}
示例5: initialize
/**
* {@inheritDoc}
* @return mixed
*/
public function initialize()
{
$this->setDefaultProperties(array('id' => ''));
$id = $this->getProperty('id');
$this->setProperty('id', str_replace('n_', '', $id));
return parent::initialize();
}
示例6: initialize
public function initialize()
{
if (!$this->getProperty('res')) {
return 'Empty resource id';
}
return parent::initialize();
}
示例7: initialize
/**
* {@inheritDoc}
* @return boolean
*/
public function initialize()
{
$props = $this->getProperties();
if (empty($props['contexts'])) {
return $this->modx->lexicon($this->objectType . '_err_ns');
}
return parent::initialize();
}
示例8: initialize
public function initialize()
{
$initialized = parent::initialize();
$this->setDefaultProperties(array('search' => '', 'exclude' => ''));
$this->canEdit = $this->modx->hasPermission('edit_context');
$this->canRemove = $this->modx->hasPermission('delete_context');
return $initialized;
}
示例9: initialize
/**
* @return bool
*/
public function initialize()
{
$parent = parent::initialize();
/** @var Tickets $Tickets */
$Tickets = $this->modx->getService('Tickets');
$this->_modx23 = $Tickets->systemVersion();
return $parent;
}
示例10: initialize
/**
* @return bool
*/
public function initialize()
{
$parent = parent::initialize();
/** @var msDiscount $msDiscount */
$msDiscount = $this->modx->getService('msDiscount');
$this->_modx23 = $msDiscount->systemVersion();
return $parent;
}
示例11: initialize
/** {@inheritDoc} */
public function initialize()
{
$this->ms2 = $this->modx->getService('miniShop2');
if (!$this->modx->hasPermission($this->permission)) {
return $this->modx->lexicon('access_denied');
}
return parent::initialize();
}
示例12: initialize
public function initialize()
{
$this->editAction = $this->modx->getObject('modAction', array('namespace' => 'core', 'controller' => 'resource/update'));
if (!$this->getProperty('limit')) {
$this->setProperty('limit', 20);
}
return parent::initialize();
}
示例13: initialize
public function initialize()
{
$this->setDefaultProperties(array('album' => false));
if (!$this->getProperty('album', false)) {
return false;
}
return parent::initialize();
}
示例14: initialize
/**
* {@inheritDoc}
* @return boolean
*/
public function initialize()
{
$props = $this->getProperties();
if (empty($props['ids'])) {
return $this->modx->lexicon($this->objectType . '_err_ns');
}
$this->setProperty('ids', json_decode($props['ids']), true);
return parent::initialize();
}
示例15: initialize
public function initialize()
{
$this->setDefaultProperties(array('limit' => 10, 'target' => 0, 'principal_class' => 'modUserGroup', 'principal' => 0));
$this->classKey = $this->getProperty('type');
if (!$this->classKey) {
return $this->modx->lexicon('access_type_err_ns');
}
return parent::initialize();
}