本文整理汇总了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);
}
示例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;
}
}
示例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);
}
示例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);
}