Пример #1
0
 /**
  * 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)]]]]);
 }
Пример #2
0
 /**
  * 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)]]]]);
 }
Пример #3
0
 /**
  * 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)]);
 }