Beispiel #1
0
 /**
  * {@inheritdoc}
  */
 protected function taxonIsDiscipline($taxon)
 {
     // First check the parent implementation. If it is false, use a legacy
     // method.
     if (parent::taxonIsDiscipline($taxon)) {
         return true;
     } else {
         return in_array($this->getTermType($taxon['id']), array('fachbereich', 'fach', 'kompetenzbereich', 'handlungs_themenaspekt'));
     }
 }
Beispiel #2
0
 /**
  * {@inheritdoc}
  */
 protected function taxonIsDiscipline($taxon)
 {
     // First check the parent implementation. If it is false, use a legacy
     // method.
     if (parent::taxonIsDiscipline($taxon)) {
         return true;
     } else {
         return $this->getTermType($taxon['id']) === 'discipline';
     }
 }