Example #1
0
 /**
  * Returns the list of actions allowed on this item in the edit mode
  *
  * @param stdClass $item
  * @param stdClass $feedback
  * @param cm_info $cm
  * @return action_menu_link[]
  */
 public function edit_actions($item, $feedback, $cm)
 {
     $actions = parent::edit_actions($item, $feedback, $cm);
     unset($actions['update']);
     return $actions;
 }
Example #2
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);
 }