getPodcastById( $this->attributes['podcast_id'] ); } public function getEpisode() { if (empty($this->attributes['episode_id'])) { return null; } else { return (new EpisodeModel())->getEpisodeById( $this->attributes['podcast_id'], $this->attributes['episode_id'] ); } } public function getPerson() { return (new PersonModel())->getPersonById( $this->attributes['person_id'] ); } public function getGroupLabel() { if (empty($this->attributes['person_group'])) { return null; } else { return lang( "PersonsTaxonomy.persons.{$this->attributes['person_group']}.label" ); } } public function getRoleLabel() { if ( empty($this->attributes['person_group']) || empty($this->attributes['person_role']) ) { return null; } else { return lang( "PersonsTaxonomy.persons.{$this->attributes['person_group']}.roles.{$this->attributes['person_role']}.label" ); } } }