ILIAS
release_8 Revision v8.19-1-g4e8f2f9140c
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
Public Member Functions | |
__construct (int $a_glo_id=0) | |
setGlossaryId (int $a_val) | |
getGlossaryId () | |
setTerms (array $a_val) | |
getTerms () | |
addTerm (int $a_term_id) | |
deleteTerm (int $a_term_id) | |
read () | |
update () | |
delete () | |
Delete references (of glossary) More... | |
Static Public Member Functions | |
static | deleteReferencesOfTerm (int $a_term_id) |
Delete all references of a term. More... | |
static | hasReferences (int $a_glossary_id) |
Check if a glossary uses references. More... | |
static | isReferenced (array $a_glo_id, int $a_term_id) |
Is a term referenced by a set of glossaries. More... | |
static | lookupReferencesOfTerm (int $a_term_id) |
Protected Attributes | |
int | $glo_id |
array | $terms = array() |
ilDBInterface | $db |
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.
If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Glossary term reference
Definition at line 23 of file class.ilGlossaryTermReferences.php.
ilGlossaryTermReferences::__construct | ( | int | $a_glo_id = 0 | ) |
Definition at line 30 of file class.ilGlossaryTermReferences.php.
References $DIC, read(), and setGlossaryId().
ilGlossaryTermReferences::addTerm | ( | int | $a_term_id | ) |
Definition at line 68 of file class.ilGlossaryTermReferences.php.
Referenced by ilObjGlossaryGUI\pasteTerms(), and read().
ilGlossaryTermReferences::delete | ( | ) |
Delete references (of glossary)
Definition at line 111 of file class.ilGlossaryTermReferences.php.
|
static |
Delete all references of a term.
Definition at line 122 of file class.ilGlossaryTermReferences.php.
References $DIC, ilDBInterface\manipulate(), and ilDBInterface\quote().
Referenced by ilGlossaryTerm\delete().
ilGlossaryTermReferences::deleteTerm | ( | int | $a_term_id | ) |
Definition at line 75 of file class.ilGlossaryTermReferences.php.
Referenced by ilObjGlossaryGUI\deleteTerms().
ilGlossaryTermReferences::getGlossaryId | ( | ) |
Definition at line 47 of file class.ilGlossaryTermReferences.php.
References $glo_id.
Referenced by update().
ilGlossaryTermReferences::getTerms | ( | ) |
Definition at line 63 of file class.ilGlossaryTermReferences.php.
References $terms.
Referenced by update().
|
static |
Check if a glossary uses references.
Definition at line 137 of file class.ilGlossaryTermReferences.php.
References $DIC, ilDBInterface\fetchAssoc(), ilDBInterface\query(), and ilDBInterface\quote().
Referenced by ilTermListTableGUI\showGlossaryColumn().
|
static |
Is a term referenced by a set of glossaries.
int[] | $a_glo_id glossary ids | |
int | $a_term_id |
Definition at line 158 of file class.ilGlossaryTermReferences.php.
References $DIC, ilDBInterface\fetchAssoc(), ilDBInterface\in(), ilDBInterface\query(), and ilDBInterface\quote().
Referenced by ilObjGlossaryGUI\__construct(), ilObjGlossaryGUI\confirmTermDeletion(), ilObjGlossaryGUI\deleteTerms(), ilTermListTableGUI\fillRow(), and ilGlossaryPresentationGUI\initByRequest().
|
static |
int | $a_term_id | term id |
Definition at line 180 of file class.ilGlossaryTermReferences.php.
References $DIC, ilDBInterface\fetchAssoc(), ilDBInterface\query(), and ilDBInterface\quote().
Referenced by ilGlossaryTerm\getUsages().
ilGlossaryTermReferences::read | ( | ) |
Definition at line 84 of file class.ilGlossaryTermReferences.php.
References addTerm().
Referenced by __construct().
ilGlossaryTermReferences::setGlossaryId | ( | int | $a_val | ) |
Definition at line 42 of file class.ilGlossaryTermReferences.php.
Referenced by __construct().
ilGlossaryTermReferences::setTerms | ( | array | $a_val | ) |
int[] | $a_val term ids |
Definition at line 55 of file class.ilGlossaryTermReferences.php.
ilGlossaryTermReferences::update | ( | ) |
Definition at line 93 of file class.ilGlossaryTermReferences.php.
References getGlossaryId(), and getTerms().
|
protected |
Definition at line 28 of file class.ilGlossaryTermReferences.php.
|
protected |
Definition at line 25 of file class.ilGlossaryTermReferences.php.
Referenced by getGlossaryId().
|
protected |
Definition at line 27 of file class.ilGlossaryTermReferences.php.
Referenced by getTerms().