コード例 #1
0
ファイル: moduleposition.php プロジェクト: klas/joomla-cms
 /**
  * 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 'clientId':
             $this->clientId = (string) $value;
             break;
         default:
             parent::__set($name, $value);
     }
 }
コード例 #2
0
ファイル: text.php プロジェクト: carcam/lib_fields
 /**
  * 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 'conditionalOn':
             $this->name = (string) $value;
             break;
         default:
             parent::__set($name, $value);
     }
 }