/** * Returns the instructors as a list of EPInstructor objects. * * @since 0.1 * * @return array of EPInstructor */ public function getInstructors() { if ($this->instructors === false) { $this->instructors = array(); foreach ($this->getField('instructors') as $userId) { $this->instructors[] = EPInstructor::newFromUserId($userId); } } return $this->instructors; }