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 {
64 return;
65 }
66
67 if (!$this->access->checkAccessOfUser($this->user->getId(),
"read",
"", $a_source_glossary->
getRefId()))
68 {
69 return;
70 }
71
72 include_once("./Modules/Glossary/classes/class.ilGlossaryTerm.php");
74 {
75 return;
76 }
77
79 }
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 88 of file class.ilGlossaryAct.php.
89 {
90 if (!$this->access->checkAccessOfUser($this->user->getId(), "write", "", $this->glossary->getRefId()))
91 {
92 return;
93 }
94
95 if (!$this->access->checkAccessOfUser($this->user->getId(),
"read",
"", $a_source_glossary->
getRefId()))
96 {
97 return;
98 }
99
100 include_once("./Modules/Glossary/classes/class.ilGlossaryTerm.php");
101 include_once("./Modules/Glossary/classes/class.ilGlossaryTermReferences.php");
103 foreach ($a_term_ids as $term_id)
104 {
106 {
107 continue;
108 }
109
110 if ($this->glossary->getId() == $a_source_glossary->
getId())
111 {
112 continue;
113 }
114 $refs->addTerm($term_id);
115 }
116 $refs->update();
117 }
References ilGlossaryTerm\_lookGlossaryID(), ilObject\getId(), and ilObject\getRefId().
◆ $access
◆ $glossary
◆ $user
The documentation for this class was generated from the following file: