當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。