Lines Matching refs:rawvalue
39 * @param string $rawvalue the current value
44 public function valueEditor($name, $rawvalue, $htmlID)
46 if ($this->config['prefilltoday'] && !$rawvalue) {
47 $rawvalue = date('Y-m-d\TH:i');
49 $rawvalue = str_replace(' ', 'T', $rawvalue);
52 'value' => $rawvalue,
67 * @param string|array $rawvalue
71 public function validate($rawvalue)
73 $rawvalue = trim($rawvalue);
74 [$date, $time] = array_pad(preg_split('/[ |T]/', $rawvalue, 2), 2, '');
82 if ($this->config['pastonly'] && strtotime($rawvalue) > time()) {
85 if ($this->config['futureonly'] && strtotime($rawvalue) < time()) {