Glossary actor class.
More...
◆ __construct()
◆ copyTerm()
ilGlossaryAct::copyTerm |
( |
ilObjGlossary |
$a_source_glossary, |
|
|
|
$a_term_id |
|
) |
| |
Copy term.
- Parameters
-
Definition at line 58 of file class.ilGlossaryAct.php.
59 {
60 if (!$this->access->checkAccessOfUser($this->user->getId(), "write", "", $this->glossary->getRefId())) {
61 return;
62 }
63
64 if (!$this->access->checkAccessOfUser($this->user->getId(),
"read",
"", $a_source_glossary->
getRefId())) {
65 return;
66 }
67
69 return;
70 }
71
73 }
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 @access public
getId()
get object id @access public
References ilGlossaryTerm\_copyTerm(), ilGlossaryTerm\_lookGlossaryID(), ilObject\getId(), and ilObject\getRefId().
◆ getInstance()
◆ referenceTerms()
ilGlossaryAct::referenceTerms |
( |
ilObjGlossary |
$a_source_glossary, |
|
|
|
$a_term_ids |
|
) |
| |
Reference a term of another glossary in current glossary.
- Parameters
-
Definition at line 82 of file class.ilGlossaryAct.php.
83 {
84 if (!$this->access->checkAccessOfUser($this->user->getId(), "write", "", $this->glossary->getRefId())) {
85 return;
86 }
87
88 if (!$this->access->checkAccessOfUser($this->user->getId(),
"read",
"", $a_source_glossary->
getRefId())) {
89 return;
90 }
91
93 foreach ($a_term_ids as $term_id) {
95 continue;
96 }
97
98 if ($this->glossary->getId() == $a_source_glossary->
getId()) {
99 continue;
100 }
101 $refs->addTerm($term_id);
102 }
103 $refs->update();
104 }
References ilGlossaryTerm\_lookGlossaryID(), ilObject\getId(), and ilObject\getRefId().
◆ $access
◆ $glossary
◆ $user
The documentation for this class was generated from the following file: