/**
  * 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);
     }
 }
Example #2
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 'folder':
             $this->{$name} = (string) $value;
             break;
         default:
             parent::__set($name, $value);
     }
 }
Example #3
0
 public function __set($name, $value)
 {
     switch ($name) {
         case 'filter':
         case 'directory':
         case 'exclude':
             $this->{$name} = (string) $value;
             break;
         case 'hideNone':
             $value = (string) $value;
             $this->{$name} = $value === 'true' || $value === $name || $value === '1';
             break;
         default:
             parent::__set($name, $value);
     }
 }
Example #4
0
File: sql.php Project: 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 'keyField':
         case 'valueField':
         case 'translate':
         case 'query':
             $this->{$name} = (string) $value;
             break;
         default:
             parent::__set($name, $value);
     }
 }
 /**
  * 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 */
     }
 }
Example #6
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.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);
     }
 }
 /**
  * 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 */
     }
 }