示例#1
0
 /**
  * __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);
 }
示例#2
0
 /**
  * __construct
  *
  * @param integer               $id
  * @param KVDdom_IWriteSessie   $sessie
  * @param string                $term
  * @param string                $qualifier
  * @param string                $language
  * @param string                $sortKey
  * @param array                 $notes
  * @param KVDthes_Thesaurus     $thesaurus
  * @return void
  */
 public function __construct($id, KVDdom_IWriteSessie $sessie, $term, KVDthes_TermType $type = null, $qualifier = null, $language = 'nl-BE', $sortKey = null, array $notes = null, KVDthes_Thesaurus $thesaurus = null)
 {
     parent::__construct($id, $sessie, $thesaurus);
     $this->term = $term;
     $this->type = is_null($type) ? KVDthes_TermType::newNull() : $type;
     $this->qualifier = $qualifier;
     $this->language = $language;
     $this->sortKey = $sortKey;
     if ($notes != null) {
         $this->loadNotes($notes);
     }
     $this->relations = new KVDthes_Relations();
     $this->setLoadState(self::LS_TERM);
 }