public function get_data() { $data = parent::get_data(); if ($data) { $data->title = ''; $data->description = ''; if ($this->title) { $data->title = $this->title; } if ($this->description) { $data->description = $this->description; } } return $data; }
public function get_data() { $data = parent::get_data(); return $data; }
/** * Used to reformat the data from the editor component * * @return stdClass */ public function get_data() { $data = parent::get_data(); if ($data !== null && $this->courseselector) { $data->selectedcourses = $this->courseselector->get_selected_courses(); } return $data; }
public function get_data() { $data = parent::get_data(); if ($data) { $data->title = ''; $data->description = ''; if ($this->title) { $data->title = $this->title; } if ($this->description) { $data->description = $this->description; } if ($this->courseselector) { $data->selectedcourses = $this->courseselector->get_selected_courses(); } } return $data; }