本文整理汇总了PHP中JFormFieldGroupedList::__set方法的典型用法代码示例。如果您正苦于以下问题:PHP JFormFieldGroupedList::__set方法的具体用法?PHP JFormFieldGroupedList::__set怎么用?PHP JFormFieldGroupedList::__set使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类JFormFieldGroupedList
的用法示例。
在下文中一共展示了JFormFieldGroupedList::__set方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __set
/**
* Method to set certain otherwise inaccessible properties of the form field object.
*
* @param string $name The property name for which to the the value.
* @param mixed $value The value of the property.
*
* @return void
*
* @since 3.2
*/
public function __set($name, $value)
{
switch ($name) {
case 'keyField':
$this->keyField = (string) $value;
break;
default:
parent::__set($name, $value);
}
}
示例2: __set
/**
* Method to set certain otherwise inaccessible properties of the form field object.
*
* @param string $name The property name for which to the the value.
* @param mixed $value The value of the property.
*
* @return void
*
* @since 3.2
*/
public function __set($name, $value)
{
switch ($name) {
case 'clientName':
case 'template':
$this->{$name} = (string) $value;
break;
default:
parent::__set($name, $value);
}
}
示例3: __set
/**
* Method to set certain otherwise inaccessible properties of the form field object.
*
* @param string $name The property name for which to the the value.
* @param mixed $value The value of the property.
*
* @return void
*
* @since 3.2
*/
public function __set($name, $value)
{
switch ($name) {
case 'menuType':
$this->menuType = (string) $value;
break;
case 'language':
case 'published':
case 'disable':
$value = (string) $value;
$this->{$name} = $value ? explode(',', $value) : array();
break;
default:
parent::__set($name, $value);
}
}