Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

is_part_of:Array #487

Closed
Superjamp opened this issue May 30, 2021 · 0 comments
Closed

is_part_of:Array #487

Superjamp opened this issue May 30, 2021 · 0 comments
Assignees
Milestone

Comments

@Superjamp
Copy link
Collaborator

Superjamp commented May 30, 2021

OCSeminarSeries::getSeries returns array
ApiEventsClient::getEpisodes expects string

$oc_events = ApiEventsClient::create($this->getCourseID());
$events = $oc_events->getEpisodes(OCSeminarSeries::getSeries($this->getCourseID()));

public static function getSeries($course_id)
{
$return = [];
foreach (self::findBySeminar_id($course_id) as $series) {
if (self::checkSeries($course_id, $series['series_id'])) {
$return[] = $series;
}
}
return $return;
}

/**
* getEpisodes() - retrieves episode metadata for a given series identifier
* from connected Opencast
*
* @param string series_id Identifier for a Series
*
* @return array response of episodes
*/
public function getEpisodes($series_id, $refresh = false)

would expect:

$oc_series = OCSeminarSeries::getSeries($this->getCourseID());
$events = $oc_events->getEpisodes($oc_series[0]['series_id']);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants