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