本文整理汇总了PHP中JFormFieldList::__set方法的典型用法代码示例。如果您正苦于以下问题:PHP JFormFieldList::__set方法的具体用法?PHP JFormFieldList::__set怎么用?PHP JFormFieldList::__set使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类JFormFieldList
的用法示例。
在下文中一共展示了JFormFieldList::__set方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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 'checkedOptions':
$this->checkedOptions = (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 'folder':
$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 'keyField':
case 'valueField':
case 'translate':
case 'query':
$this->{$name} = (string) $value;
break;
default:
parent::__set($name, $value);
}
}
示例4: __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 1.2.0 && J3.2
*/
public function __set($name, $value)
{
switch ($name) {
case 'exclude':
$value = (string) $value;
$this->{$name} = array_map('trim', explode(',', $value));
break;
/* @deprecated >= J3.2 */
/* @deprecated >= J3.2 */
case 'class':
// Removes spaces from left & right and extra spaces from middle
$value = preg_replace('/\\s+/', ' ', trim((string) $value));
$this->{$name} = (string) $value;
break;
default:
if (FieldsandfiltersFactory::isVersion('>=', 3.2)) {
parent::__set($name, $value);
}
break;
/* @end deprecated >= J3.2 */
}
}
示例5: __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.6
*/
public function __set($name, $value)
{
$value = (string) $value;
switch ($name) {
case 'allowAdd':
$value = (string) $value;
$this->{$name} = $value === 'true' || $value === $name || $value === '1';
break;
default:
parent::__set($name, $value);
}
}
示例6: __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 1.2.0 && J3.2
*/
public function __set($name, $value)
{
switch ($name) {
case 'inputType':
case 'context':
$this->{$name} = (string) $value;
break;
case 'checked':
case 'modes':
$value = (string) $value;
$this->{$name} = array_map('trim', explode(',', $value));
break;
case 'states':
$this->{$name} = explode(',', (string) $value);
JArrayHelper::toInteger($this->{$name});
break;
/* @deprecated >= J3.2 */
/* @deprecated >= J3.2 */
case 'class':
// Removes spaces from left & right and extra spaces from middle
$value = preg_replace('/\\s+/', ' ', trim((string) $value));
$this->{$name} = (string) $value;
break;
default:
if (FieldsandfiltersFactory::isVersion('>=', 3.2)) {
parent::__set($name, $value);
}
break;
/* @end deprecated >= J3.2 */
}
}