Skip to content

Instantly share code, notes, and snippets.

@objectivehtml
Created March 3, 2014 15:18
Show Gist options
  • Select an option

  • Save objectivehtml/9327155 to your computer and use it in GitHub Desktop.

Select an option

Save objectivehtml/9327155 to your computer and use it in GitHub Desktop.
public function class_students()
{
if(!$course = Course::findByUrlTitle($this->param('course_url_title')))
{
return ChannelEntriesParser::noResults();
}
if(!$students = $course->students())
{
return ChannelEntriesParser::noResults();
}
return $students->entries();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment