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


PHP JFormField::__set方法代码示例

本文整理汇总了PHP中JFormField::__set方法的典型用法代码示例。如果您正苦于以下问题:PHP JFormField::__set方法的具体用法?PHP JFormField::__set怎么用?PHP JFormField::__set使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在JFormField的用法示例。


在下文中一共展示了JFormField::__set方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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:WineWorld,项目名称:joomlatrialcmbg,代码行数: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 'contentType':
             $this->contentType = (string) $value;
             break;
         default:
             parent::__set($name, $value);
     }
 }
开发者ID:klas,项目名称:joomla-cms,代码行数:20,代码来源:ordering.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 'accept':
             $this->{$accept} = (string) $value;
             break;
         default:
             parent::__set($name, $value);
     }
 }
开发者ID:akshayxhtmljunkies,项目名称:brownglock,代码行数:20,代码来源:file.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   3.2
  */
 public function __set($name, $value)
 {
     switch ($name) {
         case 'rows':
         case 'columns':
             $this->{$name} = (int) $value;
             break;
         default:
             parent::__set($name, $value);
     }
 }
开发者ID:smhnaji,项目名称:sdnet,代码行数:21,代码来源:textarea.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.2
  */
 public function __set($name, $value)
 {
     switch ($name) {
         case 'descriptionfield':
         case 'flagfield':
             $this->{$name} = (string) $value;
             break;
         default:
             parent::__set($name, $value);
     }
 }
开发者ID:7thZoneTechnology,项目名称:citybranding,代码行数:21,代码来源:step.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   3.2
  */
 public function __set($name, $value)
 {
     switch ($name) {
         case 'checked':
             $value = (string) $value;
             $this->{$name} = $value == 'true' || $value == $name || $value == '1';
             break;
         default:
             parent::__set($name, $value);
     }
 }
开发者ID:WineWorld,项目名称:joomlatrialcmbg,代码行数:21,代码来源:checkbox.php

示例7: __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 'step':
         case 'min':
         case 'max':
             $this->{$name} = (double) $value;
             break;
         default:
             parent::__set($name, $value);
     }
 }
开发者ID:N6REJ,项目名称:joomla-cms,代码行数:22,代码来源:number.php

示例8: __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 'imagedir':
         case 'userstate':
         case 'side':
             $this->{$name} = (string) $value;
             break;
         default:
             parent::__set($name, $value);
     }
 }
开发者ID:Ricardolau,项目名称:imc,代码行数:22,代码来源:multiphoto.php

示例9: __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 'maxlength':
             $value = (int) $value;
         case 'format':
         case 'filter':
             $this->{$name} = (string) $value;
             break;
         default:
             parent::__set($name, $value);
     }
 }
开发者ID:ITPrism,项目名称:CrowdfundingDistribution,代码行数:23,代码来源:cfcalendar.php

示例10: __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 'latitudefield':
         case 'longitudefield':
         case 'width':
         case 'height':
         case 'lat':
         case 'lng':
         case 'zoom':
         case 'icon':
         case 'mapOnly':
             $this->{$name} = (string) $value;
             break;
         default:
             parent::__set($name, $value);
     }
 }
开发者ID:Ricardolau,项目名称:imc,代码行数:28,代码来源:gmap.php

示例11: __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) {
         /* @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;
         case 'size':
             $this->{$name} = (int) $value;
             break;
         default:
             if (FieldsandfiltersFactory::isVersion('>=', 3.2)) {
                 parent::__set($name, $value);
             }
             break;
             /* @end deprecated >= J3.2 */
     }
 }
开发者ID:fields-and-filters,项目名称:fields-and-filters,代码行数:30,代码来源:fieldsandfiltersextensions.php

示例12: __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)
 {
     $value = (string) $value;
     switch ($name) {
         case 'maxLength':
         case 'threshold':
             $this->{$name} = $value;
             break;
         case 'meter':
             $this->meter = $value === 'true' || $value === $name || $value === '1';
             break;
         default:
             parent::__set($name, $value);
     }
 }
开发者ID:deenison,项目名称:joomla-cms,代码行数:25,代码来源:password.php

示例13: __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.0.0
  */
 public function __set($name, $value)
 {
     switch ($name) {
         case 'firstdayofweek':
             $value = (int) $value;
         case 'format':
         case 'language':
             $this->{$name} = (string) $value;
             break;
         default:
             parent::__set($name, $value);
     }
 }
开发者ID:rdeutz,项目名称:babioon-event,代码行数:23,代码来源:calendar.php

示例14: __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 'maxLength':
             $this->maxLength = (int) $value;
             break;
         case 'dirname':
             $value = (string) $value;
             $value = $value == $name || $value == 'true' || $value == '1';
         case 'inputmode':
             $this->name = (string) $value;
             break;
         default:
             if (method_exists('JFormField', '__set')) {
                 parent::__set($name, $value);
             }
     }
 }
开发者ID:knigherrant,项目名称:decopatio,代码行数:28,代码来源:text.php

示例15: __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)
 {
     switch ($name) {
         case 'formsource':
             $this->formsource = (string) $value;
             // Add root path if we have a path to XML file
             if (strrpos($this->formsource, '.xml') === strlen($this->formsource) - 4) {
                 $this->formsource = JPath::clean(JPATH_ROOT . '/' . $this->formsource);
             }
             break;
         case 'min':
             $this->min = (int) $value;
             break;
         case 'max':
             if ($value) {
                 $this->max = max(1, (int) $value);
             }
             break;
         case 'groupByFieldset':
             if ($value !== null) {
                 $value = (string) $value;
                 $this->groupByFieldset = !($value === 'false' || $value === 'off' || $value === '0');
             }
             break;
         case 'layout':
             $this->layout = (string) $value;
             // Make sure the layout is not empty.
             if (!$this->layout) {
                 // Set default value depend from "multiple" mode
                 $this->layout = !$this->multiple ? 'joomla.form.field.subform.default' : 'joomla.form.field.subform.repeatable';
             }
             break;
         case 'buttons':
             if (!$this->multiple) {
                 $this->buttons = array();
                 break;
             }
             if ($value && !is_array($value)) {
                 $value = explode(',', (string) $value);
                 $value = array_fill_keys(array_filter($value), true);
             }
             if ($value) {
                 $value = array_merge(array('add' => false, 'remove' => false, 'move' => false), $value);
                 $this->buttons = $value;
             }
             break;
         default:
             parent::__set($name, $value);
     }
 }
开发者ID:joomla-projects,项目名称:media-manager-improvement,代码行数:60,代码来源:subform.php


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