Exemplo n.º 1
0
 /**
  * Get name
  *
  * @return string
  */
 public function getName()
 {
     if ($this->subscription->getPublication() === null) {
         return '';
     }
     return $this->article->getName();
 }
Exemplo n.º 2
0
 /**
  * Get name
  *
  * @return string
  */
 public function getName()
 {
     if ($this->subscription->getPublication() === null) {
         return '';
     }
     foreach ($this->subscription->getPublication()->getIssues() as $issue) {
         if ($this->hasLanguage() && $issue->getLanguage() !== $this->language) {
             continue;
         }
         foreach ($issue->getSections() as $section) {
             if ($section->getNumber() == $this->sectionNumber) {
                 return $section->getName();
             }
         }
     }
     return '';
 }