コード例 #1
0
 /**
  * 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
0
ファイル: templatestyle.php プロジェクト: 01J/skazkipronebo
 /**
  * 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
0
ファイル: menuitem.php プロジェクト: grlf/eyedock
 /**
  * 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);
     }
 }