function __construct ($name, $options = array()) { // Block having a default value unset($this->default); unset($options['default']); // Call the default constructor parent::__construct($name, $options); }
/** * Constructor, parses charfield specific options * @var string $name * @var string $maxLenght * @var string $autoSource */ public function __construct($model, $name, $maxLength, $autoSource) { parent::__construct($model, $name, $maxLength); $this->setSourceField($autoSource); }