36 $this->access = $DIC->access();
37 $this->glossary = $a_glossary;
38 $this->
user = $a_user;
49 return new self($a_glossary, $a_user);
60 if (!$this->access->checkAccessOfUser($this->user->getId(),
"write",
"", $this->glossary->getRefId())) {
64 if (!$this->access->checkAccessOfUser($this->user->getId(),
"read",
"", $a_source_glossary->
getRefId())) {
84 if (!$this->access->checkAccessOfUser($this->user->getId(),
"write",
"", $this->glossary->getRefId())) {
88 if (!$this->access->checkAccessOfUser($this->user->getId(),
"read",
"", $a_source_glossary->
getRefId())) {
93 foreach ($a_term_ids as $term_id) {
98 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