本文整理匯總了PHP中ezcBaseOptions::__get方法的典型用法代碼示例。如果您正苦於以下問題:PHP ezcBaseOptions::__get方法的具體用法?PHP ezcBaseOptions::__get怎麽用?PHP ezcBaseOptions::__get使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類ezcBaseOptions
的用法示例。
在下文中一共展示了ezcBaseOptions::__get方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: __get
/**
* __get
*
* @param mixed $propertyName
* @throws ezcBasePropertyNotFoundException
* If a the value for the property options is not an instance of
* @return mixed
* @ignore
*/
public function __get($propertyName)
{
switch ($propertyName) {
case 'textShadowColor':
// Use inverted font color if false
if ($this->properties['textShadowColor'] === false) {
$this->properties['textShadowColor'] = $this->properties['color']->invert();
}
return $this->properties['textShadowColor'];
case 'path':
if ($this->pathChecked === false) {
// Enforce call of path check
$this->__set('path', $this->properties['path']);
}
// No break to use parent return
// No break to use parent return
default:
return parent::__get($propertyName);
}
}
示例2: __get
/**
* __get
*
* @param mixed $propertyName
* @throws ezcBasePropertyNotFoundException
* If a the value for the property options is not an instance of
* @return mixed
* @ignore
*/
public function __get($propertyName)
{
switch ($propertyName) {
case 'font':
// Clone font configuration when requested for this element
if (!$this->fontCloned) {
$this->properties['font'] = clone $this->properties['font'];
$this->properties['fontCloned'] = true;
}
return $this->properties['font'];
default:
return parent::__get($propertyName);
}
}