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


PHP Frontend::__get方法代碼示例

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


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

示例1: __get

 /**
  * Return an object property
  * @param string
  * @return mixed
  */
 public function __get($strKey)
 {
     if (isset($this->arrData[$strKey])) {
         return $this->arrData[$strKey];
     }
     return parent::__get($strKey);
 }
開發者ID:iCodr8,項目名稱:core,代碼行數:12,代碼來源:Module.php

示例2: __get

 /**
  * Return an object property
  * @param string $strKey
  * @return mixed
  */
 public function __get($strKey)
 {
     switch ($strKey) {
         case 'FdDcaKey':
             return $this->strFdDcaKey;
             break;
         case 'arrFFstorable':
             return $this->arrFFstorable;
             break;
         case 'arrMapTL_FFL':
             return $this->arrMapTL_FFL;
             break;
         case 'arrBaseFields':
             return $this->arrBaseFields;
             break;
         case 'arrStoringForms':
             return $this->arrStoringForms;
             break;
         case 'arrFormsDcaKey':
             return $this->arrFormsDcaKey;
             break;
         case 'arrMembers':
             return $this->getMembers();
             break;
         case 'arrUsers':
             return $this->getUsers();
             break;
         case 'arrMemberGroups':
             return $this->getMemberGroups();
             break;
         case 'arrUserGroups':
             return $this->getUserGroups();
             break;
         default:
             return parent::__get($strKey);
             break;
     }
 }
開發者ID:Jobu,項目名稱:core,代碼行數:43,代碼來源:Formdata.php

示例3: __get

 /**
  * @param string $key
  *
  * @return array|bool|mixed|null|string
  */
 public function __get($key)
 {
     switch ($key) {
         case 'toolbar':
             return $this->blnToolbar;
             break;
         case 'buttons':
             $style = $this->buttonStyle;
             $callback = function ($item) use($style, &$callback) {
                 if ($item['class'] == '') {
                     $item['class'] = $style;
                 }
                 if (isset($item['items'])) {
                     $item['items'] = new ArrayCallbackModify(new \ArrayIterator($item['items']), $callback);
                 }
                 return $item;
             };
             return new ArrayCallbackModify(new \ArrayIterator($this->arrButtons), $callback);
             break;
         case 'buttonStyle':
             if (!isset($this->arrConfiguration[$key]) || $this->arrConfiguration[$key] == '') {
                 return 'btn btn-default';
             }
             return $this->arrConfiguration[$key];
             // no break
         // no break
         default:
             if (isset($this->arrConfiguration[$key])) {
                 return $this->arrConfiguration[$key];
             }
             break;
     }
     return parent::__get($key);
 }
開發者ID:netzmacht,項目名稱:contao-bootstrap,代碼行數:39,代碼來源:Buttons.php

示例4: __get

 public function __get($strKey)
 {
     switch ($strKey) {
         case 'title':
             return standardize(\String::restoreBasicEntities(implode('-', $this->getEach('title'))));
         case 'addBootstrapPrint':
         case 'addFontAwesome':
             return max($this->getEach($strKey));
         case 'addElegantIcons':
             return max($this->getEach($strKey));
         case 'variablesSRC':
         case 'variablesOrderSRC':
             return $this->getEach($strKey);
         case 'ids':
             return $this->getEach('id');
             // must be id
         // must be id
         case 'lastUpdate':
             return max($this->getEach('tstamp'));
             // return max tstamp from css groups
     }
     if (isset($this->arrData[$strKey])) {
         return $this->arrData[$strKey];
     }
     return parent::__get($strKey);
 }
開發者ID:heimrichhannot,項目名稱:contao-extassets,代碼行數:26,代碼來源:ExtCssCombiner.php


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