Ejemplo n.º 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'));
     }
 }
Ejemplo n.º 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';
     }
 }