예제 #1
0
 /**
  * Return the editor to edit a single value
  *
  * @param string $name the form name where this has to be stored
  * @param string $rawvalue the current value
  * @return string html
  */
 public function valueEditor($name, $rawvalue)
 {
     if ($this->config['prefilltoday'] && !$rawvalue) {
         $rawvalue = date('Y-m-d H:i:s');
     }
     return parent::valueEditor($name, $rawvalue);
 }