Glossary actor class.
More...
Glossary actor class.
- Author
- Alex Killing alex..nosp@m.kill.nosp@m.ing@g.nosp@m.mx.d.nosp@m.e
- Version
- $Id$
Definition at line 12 of file class.ilGlossaryAct.php.
◆ __construct()
◆ copyTerm()
ilGlossaryAct::copyTerm |
( |
ilObjGlossary |
$a_source_glossary, |
|
|
|
$a_term_id |
|
) |
| |
Copy term.
- Parameters
-
Definition at line 60 of file class.ilGlossaryAct.php.
References ilGlossaryTerm\_copyTerm(), ilGlossaryTerm\_lookGlossaryID(), ilObject\getId(), and ilObject\getRefId().
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");
getId()
get object id public
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
◆ getInstance()
◆ referenceTerms()
ilGlossaryAct::referenceTerms |
( |
ilObjGlossary |
$a_source_glossary, |
|
|
|
$a_term_ids |
|
) |
| |
Reference a term of another glossary in current glossary.
- Parameters
-
Definition at line 85 of file class.ilGlossaryAct.php.
References ilGlossaryTerm\_lookGlossaryID(), ilGlossaryTermReferences\addTerm(), ilObject\getId(), and ilObject\getRefId().
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()) {
addTerm($a_term_id)
Add term.
getId()
get object id public
static _lookGlossaryID($term_id)
get glossary id form term id
getRefId()
get reference id public
◆ $access
◆ $glossary
◆ $user
The documentation for this class was generated from the following file: