/** * create meta data entry */ function createMetaData() { include_once 'Services/MetaData/classes/class.ilMDCreator.php'; global $ilUser; $glo_id = ilGlossaryTerm::_lookGlossaryID($this->getTermId()); $lang = ilGlossaryTerm::_lookLanguage($this->getTermId()); $md_creator = new ilMDCreator($glo_id, $this->getId(), $this->getType()); $md_creator->setTitle($this->getTitle()); $md_creator->setTitleLanguage($lang); $md_creator->setDescription($this->getDescription()); $md_creator->setDescriptionLanguage($lang); $md_creator->setKeywordLanguage($lang); $md_creator->setLanguage($lang); //echo "-".$this->getTitle()."-"; exit; $md_creator->create(); return true; }