當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。