当前位置: 首页>>代码示例>>PHP>>正文


PHP modObjectGetListProcessor::initialize方法代码示例

本文整理汇总了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;
 }
开发者ID:adamwintle,项目名称:flexibility5,代码行数:7,代码来源:getlist.class.php

示例2: initialize

 /** {@inheritDoc} */
 public function initialize()
 {
     if (!$this->modx->hasPermission($this->permission)) {
         return $this->modx->lexicon('access_denied');
     }
     return parent::initialize();
 }
开发者ID:arimanr,项目名称:userprofile2,代码行数:8,代码来源:getlist.class.php

示例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();
 }
开发者ID:ChrstnMgcn,项目名称:revolution,代码行数:7,代码来源:getlist.class.php

示例4: initialize

 /** {@inheritDoc} */
 public function initialize()
 {
     if (!$this->getProperty('limit')) {
         $this->setProperty('limit', 20);
     }
     return parent::initialize();
 }
开发者ID:rafull6,项目名称:texno-service,代码行数:8,代码来源:getlist.class.php

示例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();
 }
开发者ID:ChrstnMgcn,项目名称:revolution,代码行数:11,代码来源:getnodes.class.php

示例6: initialize

 public function initialize()
 {
     if (!$this->getProperty('res')) {
         return 'Empty resource id';
     }
     return parent::initialize();
 }
开发者ID:bendasvadim,项目名称:MODX.Xlexicon,代码行数:7,代码来源:getlist.class.php

示例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();
 }
开发者ID:DeFi-ManriquezLuis,项目名称:MTLTransfer,代码行数:12,代码来源:autosync.class.php

示例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;
 }
开发者ID:ChrstnMgcn,项目名称:revolution,代码行数:8,代码来源:getlist.class.php

示例9: initialize

 /**
  * @return bool
  */
 public function initialize()
 {
     $parent = parent::initialize();
     /** @var Tickets $Tickets */
     $Tickets = $this->modx->getService('Tickets');
     $this->_modx23 = $Tickets->systemVersion();
     return $parent;
 }
开发者ID:soulcreate,项目名称:Tickets,代码行数:11,代码来源:getlist.class.php

示例10: initialize

 /**
  * @return bool
  */
 public function initialize()
 {
     $parent = parent::initialize();
     /** @var msDiscount $msDiscount */
     $msDiscount = $this->modx->getService('msDiscount');
     $this->_modx23 = $msDiscount->systemVersion();
     return $parent;
 }
开发者ID:bendasvadim,项目名称:msDiscount,代码行数:11,代码来源:getlist.class.php

示例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();
 }
开发者ID:volkovnd,项目名称:miniShop2,代码行数:9,代码来源:getlist.class.php

示例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();
 }
开发者ID:bendasvadim,项目名称:miniShop2,代码行数:8,代码来源:getlist.class.php

示例13: initialize

 public function initialize()
 {
     $this->setDefaultProperties(array('album' => false));
     if (!$this->getProperty('album', false)) {
         return false;
     }
     return parent::initialize();
 }
开发者ID:Piterden,项目名称:modx_testfloor,代码行数:8,代码来源:getlist.class.php

示例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();
 }
开发者ID:DeFi-ManriquezLuis,项目名称:MTLTransfer,代码行数:13,代码来源:manualsync.class.php

示例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();
 }
开发者ID:ChrstnMgcn,项目名称:revolution,代码行数:9,代码来源:getlist.class.php


注:本文中的modObjectGetListProcessor::initialize方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。