當前位置: 首頁>>代碼示例>>PHP>>正文


PHP modObjectCreateProcessor::initialize方法代碼示例

本文整理匯總了PHP中modObjectCreateProcessor::initialize方法的典型用法代碼示例。如果您正苦於以下問題:PHP modObjectCreateProcessor::initialize方法的具體用法?PHP modObjectCreateProcessor::initialize怎麽用?PHP modObjectCreateProcessor::initialize使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在modObjectCreateProcessor的用法示例。


在下文中一共展示了modObjectCreateProcessor::initialize方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: initialize

 public function initialize()
 {
     $this->setDefaultProperties(array('class_key' => $this->classKey, 'blocked' => false, 'active' => false));
     $this->classKey = $this->getProperty('class_key', 'modUser');
     $this->setProperty('blocked', $this->getProperty('blocked') ? true : false);
     return parent::initialize();
 }
開發者ID:rossng,項目名稱:revolution,代碼行數:7,代碼來源:create.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,代碼來源:create.class.php

示例3: initialize

 public function initialize()
 {
     if (!(int) $this->getProperty('product_id')) {
         return 'Не был указан ID товара';
     }
     return parent::initialize();
 }
開發者ID:Tramp1357,項目名稱:wood,代碼行數:7,代碼來源:create.class.php

示例4: initialize

 public function initialize()
 {
     $this->setUserId();
     $this->setCreateTime();
     $this->setCreatedByName();
     return parent::initialize();
 }
開發者ID:Vitaliz,項目名稱:simpleCRM,代碼行數:7,代碼來源:create.class.php

示例5: initialize

 public function initialize()
 {
     if (!($this->historyFile = $this->modx->msrevaluation->process())) {
         $this->failure($this->modx->msrevaluation->error);
     }
     return parent::initialize();
 }
開發者ID:svyatoslavteterin,項目名稱:belton.by,代碼行數:7,代碼來源:process.class.php

示例6: initialize

 /** {@inheritDoc} */
 public function initialize()
 {
     /** @var mlmsystem $mlmsystem */
     $this->MlmSystem = $this->modx->getService('mlmsystem');
     $this->MlmSystem->initialize($this->getProperty('context', $this->modx->context->key));
     return parent::initialize();
 }
開發者ID:vgrish,項目名稱:mlmsystem,代碼行數:8,代碼來源:create.class.php

示例7: initialize

 public function initialize()
 {
     $classKey = $this->getProperty('class_key');
     if (empty($classKey)) {
         $this->setProperty('class_key', 'sources.modFileMediaSource');
     }
     return parent::initialize();
 }
開發者ID:rosstimson,項目名稱:revolution,代碼行數:8,代碼來源:create.class.php

示例8: initialize

 /**
  * {@inheritDoc}
  * @return boolean
  */
 public function initialize()
 {
     $name = $this->getProperty('name');
     if (empty($name)) {
         $this->addFieldError('name', $this->modx->lexicon('virtunewsletter.category_err_ns_name'));
     }
     return parent::initialize();
 }
開發者ID:ksneo,項目名稱:virtuNewsletter,代碼行數:12,代碼來源:create.class.php

示例9: initialize

 public function initialize()
 {
     if (!$this->getProperty('username')) {
         return 'Не указан пользователь';
     }
     $this->setDefaultProperties(array('userid' => $this->modx->user->id, "rank" => 0));
     return parent::initialize();
 }
開發者ID:bendasvadim,項目名稱:NewsModxBox,代碼行數:8,代碼來源:create.class.php

示例10: initialize

 public function initialize()
 {
     $this->classKey = $this->getProperty('type');
     if (!$this->classKey) {
         return $this->modx->lexicon($this->objectType . '_type_err_ns');
     }
     return parent::initialize();
 }
開發者ID:ChrstnMgcn,項目名稱:revolution,代碼行數:8,代碼來源:addacl.class.php

示例11: initialize

 /**
  * {@inheritDoc}
  * @return boolean
  */
 public function initialize()
 {
     $this->context = $this->modx->getContext($this->getProperty('fk'));
     if (empty($this->context)) {
         return $this->modx->lexicon('setting_err_nf');
     }
     return parent::initialize();
 }
開發者ID:ChrstnMgcn,項目名稱:revolution,代碼行數:12,代碼來源:create.class.php

示例12: initialize

 public function initialize()
 {
     $this->setDefaultProperties(array("target_class" => "modResource"));
     if (!(int) $this->getProperty('target_id')) {
         return 'Не был указан ID целевого объекта';
     }
     if (!$this->getProperty('target_class')) {
         return 'Не был указан класс целевого объекта';
     }
     return parent::initialize();
 }
開發者ID:bendasvadim,項目名稱:NewsModxBox,代碼行數:11,代碼來源:create.class.php

示例13: initialize

 public function initialize()
 {
     $this->BillingProcessorsPath = MODX_CORE_PATH . 'components/billing/processors/';
     $this->setDefaultProperties(array('currency_id' => $this->modx->getOption('shopmodx.default_currency')));
     if (!$this->getProperty('paysystem_id')) {
         $error = "Не был получен ID платежной системы";
         $this->error($error);
         return $this->getResponseError($error);
     }
     $this->setProperties(array("allow_partial_payment" => $this->modx->getOption('shop.allow_partial_payment', null, false)));
     return parent::initialize();
 }
開發者ID:Tramp1357,項目名稱:wood,代碼行數:12,代碼來源:create.class.php

示例14: initialize

 /**
  * {@inheritDoc}
  * @return boolean
  */
 public function initialize()
 {
     $name = $this->getProperty('name');
     if (empty($name)) {
         return $this->modx->lexicon('bbbx.config_err_ns_name');
     }
     $configs = $this->getProperty('configs');
     if (empty($configs)) {
         return $this->modx->lexicon('bbbx.config_err_ns_configs');
     }
     $this->unsetProperty('action');
     return parent::initialize();
 }
開發者ID:virtudraft,項目名稱:bbbx,代碼行數:17,代碼來源:create.class.php

示例15: initialize

 public function initialize()
 {
     $this->xmlFiles = array('treeWithoutProducts.xml', 'stock.xml', 'filters.xml', 'catalogue.xml');
     $api_user = $this->modx->getOption('msgiftsrusynch_api_user', null, '');
     $api_password = $this->modx->getOption('msgiftsrusynch_api_password', null, '');
     if ($api_user == '' || $api_password == '') {
         return $this->modx->lexicon('msgiftsrusynch_item_err_api_login');
     }
     $this->url_gifts_api = "http://" . $api_user . ":" . $api_password . "@api2.gifts.ru/export/v2/catalogue/";
     $api_page_content = file_get_contents($this->url_gifts_api . $this->xmlFiles[0]);
     if (strstr($api_page_content, '<title>401</title>') || strstr($api_page_content, 'You can change')) {
         return $this->modx->lexicon('msgiftsrusynch_item_err_api_ip');
     }
     return parent::initialize();
 }
開發者ID:bendasvadim,項目名稱:msGiftsRuSynch,代碼行數:15,代碼來源:create.class.php


注:本文中的modObjectCreateProcessor::initialize方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。