Exemple #1
0
	function __construct ($name, $options = array()) {
		
		// Block having a default value
		unset($this->default);
		unset($options['default']);
		
		// Call the default constructor
		parent::__construct($name, $options);
		
	}
Exemple #2
0
 /**
  * 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);
 }