当前位置: 首页>>代码示例>>PHP>>正文


PHP JFormFieldList::__set方法代码示例

本文整理汇总了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);
     }
 }
开发者ID:joomla-projects,项目名称:media-manager-improvement,代码行数:20,代码来源:checkboxes.php

示例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);
     }
 }
开发者ID:WineWorld,项目名称:joomlatrialcmbg,代码行数:20,代码来源:plugins.php

示例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);
     }
 }
开发者ID:grlf,项目名称:eyedock,代码行数:23,代码来源:sql.php

示例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 */
     }
 }
开发者ID:fields-and-filters,项目名称:fields-and-filters,代码行数:32,代码来源:fieldsandfiltersstates.php

示例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);
     }
 }
开发者ID:adjaika,项目名称:J3Base,代码行数:22,代码来源:categoryedit.php

示例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 */
     }
 }
开发者ID:fields-and-filters,项目名称:fields-and-filters,代码行数:41,代码来源:fieldsandfiltersfields.php


注:本文中的JFormFieldList::__set方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。