/** * __construct * * @param integer $id * @param KVDdom_IWriteSessie $sessie * @param string $term * @param KVDthes_Thesaurus $thesaurus * @param array $labels * @param array $notes */ public function __construct($id, KVDdom_IWriteSessie $sessie, $term = null, KVDthes_Thesaurus $thesaurus, array $labels = null, array $notes = null) { parent::__construct($id, $sessie); $this->term = is_null($term) ? $id : $term; if ($notes != null) { $this->loadNotes($notes); } $this->thesaurus = $thesaurus != null ? $thesaurus : KVDthes_Thesaurus::newNull(); $this->matches = new KVDthes_Matches(); $this->setLoadState(self::LS_CONCEPT); }
/** * doLoadThesaurus * * @return KVDthes_Thesaurus */ private function doLoadThesaurus() { return KVDthes_Thesaurus::newNull(); }
public function testNullThesaurus() { $nt = KVDthes_Thesaurus::newNull(); $this->assertTrue($nt->isNull()); }
/** * __construct * * @param integer $id * @param KVDdom_IWriteSessie $sessie * @param KVDthes_Thesaurus $thesaurus */ public function __construct($id, KVDdom_IWriteSessie $sessie, KVDthes_Thesaurus $thesaurus = null) { parent::__construct($id, $sessie); $this->matches = new KVDthes_Matches(); $this->thesaurus = $thesaurus != null ? $thesaurus : KVDthes_Thesaurus::newNull(); }