コード例 #1
0
ファイル: LP21Curriculum.php プロジェクト: educach/dsb-client
 /**
  * {@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'));
     }
 }
コード例 #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';
     }
 }