/** * @ignore * * @param array $opts * * @return CharField */ public static function CharField($opts = []) { return CharField::createObject($opts); }
public function __construct($config = []) { // max_length=254 to be compliant with RFCs 3696 and 5321 $config['maxLength'] = ArrayHelper::getValue($config, 'maxLength', 254); parent::__construct($config); }