Lines Matching refs:rawvalue
41 * @param string $rawvalue the current value
46 public function valueEditor($name, $rawvalue, $htmlID)
48 if ($this->config['prefilltoday'] && !$rawvalue) {
49 $rawvalue = date('Y-m-d');
54 'value' => $rawvalue,
69 * @param string|int $rawvalue
73 public function validate($rawvalue)
75 $rawvalue = parent::validate($rawvalue);
76 [$rawvalue] = explode(' ', $rawvalue, 2); // strip off time if there is any
78 [$year, $month, $day] = explode('-', $rawvalue, 3);
82 if ($this->config['pastonly'] && strtotime($rawvalue) > time()) {
85 if ($this->config['futureonly'] && strtotime($rawvalue) < time()) {