/** * $possibleValues is an array $value => $description. */ public function __construct($name, $defaultValue = null, $possibleValues = null) { parent::__construct($name, $defaultValue); $this->fieldType = 'Select'; if (empty($possibleValues)) { $this->possibleValues = array(); } else { $this->possibleValues = $possibleValues; } if (!is_null($this->value) && !array_key_exists($this->value, $this->possibleValues)) { throw new CoreException('Default value out of range in select field \'' . $name . '\'.'); } }
public function __construct($name, $defaultValue = null) { parent::__construct($name, $defaultValue); $this->fieldType = 'Text'; }
public function __construct($name) { parent::__construct($name, null); $this->fieldType = 'Password'; }
public function getActionHTMLId($formId, $action) { return parent::getHTMLId($formId) . '_' . $action; }
public function setValue($value) { parent::setValue($value); }
public function __construct($name) { parent::__construct($name, null); $this->fieldType = 'Submit'; }