38 $this->access = $DIC->access();
39 $this->glossary = $a_glossary;
40 $this->
user = $a_user;
51 return new self($a_glossary, $a_user);
62 if (!$this->access->checkAccessOfUser($this->user->getId(),
"write",
"", $this->glossary->getRefId())) {
66 if (!$this->access->checkAccessOfUser($this->user->getId(),
"read",
"", $a_source_glossary->
getRefId())) {
70 include_once(
"./Modules/Glossary/classes/class.ilGlossaryTerm.php");
87 if (!$this->access->checkAccessOfUser($this->user->getId(),
"write",
"", $this->glossary->getRefId())) {
91 if (!$this->access->checkAccessOfUser($this->user->getId(),
"read",
"", $a_source_glossary->
getRefId())) {
95 include_once(
"./Modules/Glossary/classes/class.ilGlossaryTerm.php");
96 include_once(
"./Modules/Glossary/classes/class.ilGlossaryTermReferences.php");
98 foreach ($a_term_ids as $term_id) {
103 if ($this->glossary->getId() == $a_source_glossary->
getId()) {
__construct(ilObjGlossary $a_glossary, ilObjUser $a_user)
ilGlossaryAct constructor.
referenceTerms(ilObjGlossary $a_source_glossary, $a_term_ids)
Reference a term of another glossary in current glossary.
addTerm($a_term_id)
Add term.
static getInstance(ilObjGlossary $a_glossary, ilObjUser $a_user)
Get instance.
getId()
get object id public
copyTerm(ilObjGlossary $a_source_glossary, $a_term_id)
Copy term.
static _lookGlossaryID($term_id)
get glossary id form term id
static _copyTerm($a_term_id, $a_glossary_id)
Copy a term to a glossary.
getRefId()
get reference id public