ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Glossary term reference. More...
Public Member Functions | |
__construct ($a_glo_id=0) | |
__construct More... | |
setGlossaryId ($a_val) | |
Set glossary id. More... | |
getGlossaryId () | |
Get glossary id. More... | |
setTerms ($a_val) | |
Set terms. More... | |
getTerms () | |
Get terms. More... | |
addTerm ($a_term_id) | |
Add term. More... | |
deleteTerm ($a_term_id) | |
Delete term. More... | |
read () | |
Read. More... | |
update () | |
Update. More... | |
delete () | |
Delete references (of glossary) More... | |
Static Public Member Functions | |
static | deleteReferencesOfTerm ($a_term_id) |
Delete all references of a term. More... | |
static | hasReferences ($a_glossary_id) |
Check if a glossary uses references. More... | |
static | isReferenced ($a_glo_id, $a_term_id) |
Is a term referenced by one or multiple glossaries. More... | |
static | lookupReferencesOfTerm ($a_term_id) |
Lookup references of a term. More... | |
Protected Attributes | |
$glo_id | |
$terms = array() | |
$db | |
Glossary term reference.
Definition at line 12 of file class.ilGlossaryTermReferences.php.
ilGlossaryTermReferences::__construct | ( | $a_glo_id = 0 | ) |
__construct
int | $a_glo_id | glossary id |
Definition at line 34 of file class.ilGlossaryTermReferences.php.
References $DIC, read(), and setGlossaryId().
ilGlossaryTermReferences::addTerm | ( | $a_term_id | ) |
Add term.
int | term id |
Definition at line 91 of file class.ilGlossaryTermReferences.php.
Referenced by ilObjGlossaryGUI\pasteTerms(), read(), and ilGlossaryAct\referenceTerms().
ilGlossaryTermReferences::delete | ( | ) |
Delete references (of glossary)
Definition at line 146 of file class.ilGlossaryTermReferences.php.
|
static |
Delete all references of a term.
int | $a_term_id | term id |
Definition at line 159 of file class.ilGlossaryTermReferences.php.
Referenced by ilGlossaryTerm\delete().
ilGlossaryTermReferences::deleteTerm | ( | $a_term_id | ) |
Delete term.
$a_term_id |
Definition at line 103 of file class.ilGlossaryTermReferences.php.
Referenced by ilObjGlossaryGUI\deleteTerms().
ilGlossaryTermReferences::getGlossaryId | ( | ) |
Get glossary id.
Definition at line 61 of file class.ilGlossaryTermReferences.php.
References $glo_id.
Referenced by update().
ilGlossaryTermReferences::getTerms | ( | ) |
Get terms.
Definition at line 81 of file class.ilGlossaryTermReferences.php.
References $terms.
Referenced by update().
|
static |
Check if a glossary uses references.
int | $a_glossary_id |
Definition at line 177 of file class.ilGlossaryTermReferences.php.
Referenced by ilTermListTableGUI\showGlossaryColumn().
|
static |
Is a term referenced by one or multiple glossaries.
int|int[] | $a_glo_id | |
int | $a_term_id |
Definition at line 198 of file class.ilGlossaryTermReferences.php.
References $db, $DIC, and array.
Referenced by ilGlossaryPresentationGUI\__construct(), ilObjGlossaryGUI\__construct(), ilObjGlossaryGUI\confirmTermDeletion(), ilObjGlossaryGUI\deleteTerms(), and ilTermListTableGUI\fillRow().
|
static |
Lookup references of a term.
int | $a_term_id | term id |
Definition at line 223 of file class.ilGlossaryTermReferences.php.
References $db, $DIC, and array.
Referenced by ilGlossaryTerm\getUsages().
ilGlossaryTermReferences::read | ( | ) |
Read.
Definition at line 116 of file class.ilGlossaryTermReferences.php.
References addTerm().
Referenced by __construct().
ilGlossaryTermReferences::setGlossaryId | ( | $a_val | ) |
Set glossary id.
int | $a_val | glossary id |
Definition at line 51 of file class.ilGlossaryTermReferences.php.
Referenced by __construct().
ilGlossaryTermReferences::setTerms | ( | $a_val | ) |
Set terms.
int[] | $a_val term ids |
Definition at line 71 of file class.ilGlossaryTermReferences.php.
ilGlossaryTermReferences::update | ( | ) |
Update.
Definition at line 128 of file class.ilGlossaryTermReferences.php.
References $t, array, getGlossaryId(), and getTerms().
|
protected |
Definition at line 27 of file class.ilGlossaryTermReferences.php.
Referenced by deleteReferencesOfTerm(), hasReferences(), isReferenced(), and lookupReferencesOfTerm().
|
protected |
Definition at line 17 of file class.ilGlossaryTermReferences.php.
Referenced by getGlossaryId().
|
protected |
Definition at line 22 of file class.ilGlossaryTermReferences.php.
Referenced by getTerms().