Пример #1
0
 /**
  * Converts the value from complete_form data to the string value that is stored in the db.
  * @param mixed $value element from mod_feedback_complete_form::get_data() with the name $item->typ.'_'.$item->id
  * @return string
  */
 public function create_value($value)
 {
     if ($value === self::CURRENTTIMESTAMP) {
         return strval(time());
     }
     return parent::create_value($value);
 }