FRED™  3.0
FRED™: Framework for Rapid and Easy Development
Date.php
Go to the documentation of this file.
1 <?php
2 
4 
5 class Date extends \Rsi\Fred\Controller\Widget{
6 
7  const PLACEHOLDER = 'placeholder';
8 
9  public $placeholder = null;
10 
11  public function convert($value){
12  return $this->local->convertDate($value);
13  }
14 
15  public function format($value){
16  return $this->local->formatDate($value);
17  }
18 
19  public function checkFormat($value,$index = null){
20  return preg_match('/^\\d{4}-\\d{2}-\\d{2}$/',$value);
21  }
22 
23 }
checkFormat($value, $index=null)
Definition: Date.php:19