/** * Reads data for an event. * @param [String => Mixed] $opts * @return [String => Mixed] * @override Event */ public function read(array $opts) { return array_merge_recursive(parent::read($opts), ['object' => $this->readModule($opts), 'context' => ['contextActivities' => ['grouping' => [$this->readCourse($opts)]]]]); }
/** * Reads data for an event. * @param [String => Mixed] $opts * @return [String => Mixed] * @override Event */ public function read(array $opts) { return array_merge_recursive(parent::read($opts), ['object' => $this->readDiscussion($opts, 'discussion', 'http://id.tincanapi.com/activitytype/discussion'), 'context' => ['contextActivities' => ['grouping' => [$this->readCourse($opts, 'course', 'http://adlnet.gov/expapi/activities/course'), $this->readModule($opts)]]]]); }
/** * Reads data for an event. * @param [String => Mixed] $opts * @return [String => Mixed] * @override Event */ public function read(array $opts) { return array_merge(parent::read($opts), ['object' => $this->readCourse($opts)]); }