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.
61 {
62 if (!$this->access->checkAccessOfUser($this->user->getId(), "write", "", $this->glossary->getRefId())) {
63 return;
64 }
65
66 if (!$this->access->checkAccessOfUser($this->user->getId(),
"read",
"", $a_source_glossary->
getRefId())) {
67 return;
68 }
69
70 include_once("./Modules/Glossary/classes/class.ilGlossaryTerm.php");
72 return;
73 }
74
76 }
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 85 of file class.ilGlossaryAct.php.
86 {
87 if (!$this->access->checkAccessOfUser($this->user->getId(), "write", "", $this->glossary->getRefId())) {
88 return;
89 }
90
91 if (!$this->access->checkAccessOfUser($this->user->getId(),
"read",
"", $a_source_glossary->
getRefId())) {
92 return;
93 }
94
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) {
100 continue;
101 }
102
103 if ($this->glossary->getId() == $a_source_glossary->
getId()) {
104 continue;
105 }
106 $refs->addTerm($term_id);
107 }
108 $refs->update();
109 }
References ilGlossaryTerm\_lookGlossaryID(), ilObject\getId(), and ilObject\getRefId().
◆ $access
◆ $glossary
◆ $user
The documentation for this class was generated from the following file: