Beispiel #1
0
 public function __construct(IArea $parent, $config = array())
 {
     parent::__construct($parent, $config);
     $pv = new PatternValidator();
     $pv->setPattern('[0-9]{4}-[0-9]{2}-[0-9]{2}');
     $this->addValidator($pv);
 }
Beispiel #2
0
 public function __construct(IArea $parent, $config = array())
 {
     parent::__construct($parent, $config);
     $pv = new PatternValidator();
     $pv->setPattern('[0-9]{4}-[0-9]{2}-[0-9]{2}( |T)[0-9]{2}:[0-9]{2}(:[0-9]{2})?Z?(\\+|-)?([0-9]{2}:?[0-9]{2})?');
     $this->addValidator($pv);
 }