ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Class ilGlossaryTerm. More...
Public Member Functions | |
__construct ($a_id=0) | |
Constructor public. More... | |
read () | |
read glossary term data More... | |
setId ($a_id) | |
set glossary term id (= glossary item id) More... | |
getId () | |
get term id (= glossary item id) More... | |
setGlossary (&$a_glossary) | |
set glossary object More... | |
setGlossaryId ($a_glo_id) | |
set glossary id More... | |
getGlossaryId () | |
get glossary id More... | |
setTerm ($a_term) | |
set term More... | |
getTerm () | |
get term More... | |
setLanguage ($a_language) | |
set language More... | |
getLanguage () | |
get language More... | |
setImportId ($a_import_id) | |
set import id More... | |
getImportId () | |
get import id More... | |
create () | |
create new glossary term More... | |
delete () | |
delete glossary term (and all its definition objects) More... | |
update () | |
update glossary term More... | |
exportXML (&$a_xml_writer, $a_inst) | |
export xml More... | |
Static Public Member Functions | |
static | _getIdForImportId ($a_import_id) |
get current term id for import id (static) More... | |
static | _exists ($a_id) |
checks wether a glossary term with specified id exists or not More... | |
static | _lookGlossaryID ($term_id) |
get glossary id form term id More... | |
static | _lookGlossaryTerm ($term_id) |
get glossary term More... | |
static | _lookLanguage ($term_id) |
lookup term language More... | |
static | getTermList ( $a_glo_ref_id, $searchterm="", $a_first_letter="", $a_def="", $a_tax_node=0, $a_add_amet_fields=false, array $a_amet_filter=null, $a_include_references=false) |
Get all terms for given set of glossary ids. More... | |
static | getFirstLetters ($a_glo_id, $a_tax_node=0) |
Get all terms for given set of glossary ids. More... | |
static | getNumberOfUsages ($a_term_id) |
Get number of usages. More... | |
static | getUsages ($a_term_id) |
Get number of usages. More... | |
static | _copyTerm ($a_term_id, $a_glossary_id) |
Copy a term to a glossary. More... | |
static | getTermsOfGlossary ($a_glo_id) |
Get terms of glossary. More... | |
Data Fields | |
$lng | |
$tpl | |
$id | |
$glossary | |
$term | |
$language | |
$glo_id | |
$import_id | |
Protected Attributes | |
$db | |
ilGlossaryTerm::__construct | ( | $a_id = 0 | ) |
|
static |
Copy a term to a glossary.
Definition at line 583 of file class.ilGlossaryTerm.php.
References $def, ilAdvancedMDRecord\_getSelectedRecordsByObject(), ilADTActiveRecordByType\cloneByPrimary(), ilMD\cloneMD(), ilGlossaryDefinition\getDefinitionList(), ilADTFactory\getInstance(), and ilAdvancedMDFieldDefinition\getInstancesByRecordId().
Referenced by ilObjGlossary\cloneObject(), ilGlossaryAct\copyTerm(), ilObjGlossaryGUI\pasteTerms(), and ilSCORM2004Page\performAutomaticModifications().
|
static |
checks wether a glossary term with specified id exists or not
int | $id | id |
Definition at line 110 of file class.ilGlossaryTerm.php.
References $DIC, $ilDB, and ilInternalLink\_extractObjIdOfTarget().
Referenced by ilInternalLink\_exists(), and ilLinksTableGUI\fillRow().
|
static |
get current term id for import id (static)
int | $a_import_id | import id |
Definition at line 76 of file class.ilGlossaryTerm.php.
References $DIC, $glo_id, $ilDB, ilObject\_getAllReferences(), ilObject\_hasUntrashedReference(), and _lookGlossaryID().
Referenced by ilInternalLink\_getIdForImportId().
|
static |
get glossary id form term id
Definition at line 310 of file class.ilGlossaryTerm.php.
References $DIC, $ilDB, and $query.
Referenced by ilTermDefinitionEditorGUI\__construct(), ilGlossaryTermGUI\__construct(), ilGlossaryPresentationGUI\__construct(), ilObjGlossaryGUI\__construct(), ilObjGlossaryAccess\_checkGoto(), _getIdForImportId(), ilGlossaryTermGUI\_goto(), ilObjGlossaryGUI\addDefinition(), ilObjGlossaryGUI\confirmTermDeletion(), ilGlossaryAct\copyTerm(), ilGlossaryDefinition\createMetaData(), ilGlossaryDefinition\deleteMetaData(), ilGlossaryDefinition\exportXMLMetaData(), ilTermListTableGUI\fillRow(), ilGlossaryTermPermission\getGlossaryIdForTerm(), ilGlossaryPresentationGUI\getLinkXML(), ilObjMediaObject\getParentObjectIdForUsage(), ilGlossaryDefinition\MDUpdateListener(), ilSCORM2004Page\performAutomaticModifications(), ilGlossaryAct\referenceTerms(), ilGlossaryPresentationGUI\showDefinitionTabs(), and ilGlossaryDefinition\updateMetaData().
|
static |
get glossary term
Definition at line 327 of file class.ilGlossaryTerm.php.
References $DIC, $ilDB, and $query.
Referenced by SurveyQuestion\addInternalLink(), ilObjGlossaryGUI\copyTerms(), ilObjContentObject\exportHTMLGlossaryTerms(), ilTermUsagesTableGUI\fillRow(), ilLinksTableGUI\fillRow(), ilMediaPoolPageUsagesTableGUI\fillRow(), ilMediaObjectUsagesTableGUI\fillRow(), ilObjGlossary\getAdvMDSubItemTitle(), ilSCORM2004Asset\getGlossaryTermIds(), ilObjGlossarySubItemListGUI\getHTML(), ilObjGlossaryGUI\getTemplate(), ilLinkInputGUI\getTranslatedValue(), ilObjGlossaryGUI\referenceTerms(), SurveyQuestion\setMaterial(), and ilLMPresentationGUI\showPrintView().
|
static |
lookup term language
Definition at line 344 of file class.ilGlossaryTerm.php.
References $DIC, $ilDB, and $query.
Referenced by ilGlossaryDefinition\createMetaData().
ilGlossaryTerm::create | ( | ) |
create new glossary term
Definition at line 250 of file class.ilGlossaryTerm.php.
References $db, $ilDB, getImportId(), and setId().
ilGlossaryTerm::delete | ( | ) |
delete glossary term (and all its definition objects)
Definition at line 270 of file class.ilGlossaryTerm.php.
References $db, $def, $ilDB, ilGlossaryTermReferences\deleteReferencesOfTerm(), ilGlossaryDefinition\getDefinitionList(), and getId().
ilGlossaryTerm::exportXML | ( | & | $a_xml_writer, |
$a_inst | |||
) |
export xml
Definition at line 523 of file class.ilGlossaryTerm.php.
References $def, ilGlossaryDefinition\getDefinitionList(), getId(), getLanguage(), and getTerm().
|
static |
Get all terms for given set of glossary ids.
integer/array | array of glossary ids for meta glossaries |
string | searchstring |
string | first letter |
Definition at line 479 of file class.ilGlossaryTerm.php.
References $DIC, $i, $ilDB, $in, ilObjTaxonomy\getSubTreeItems(), and ilObjTaxonomy\getUsageOfObject().
Referenced by ilObjGlossary\getFirstLetters().
ilGlossaryTerm::getGlossaryId | ( | ) |
get glossary id
Definition at line 181 of file class.ilGlossaryTerm.php.
References $glo_id.
ilGlossaryTerm::getId | ( | ) |
get term id (= glossary item id)
Definition at line 148 of file class.ilGlossaryTerm.php.
References $id.
Referenced by delete(), exportXML(), and update().
ilGlossaryTerm::getImportId | ( | ) |
get import id
Definition at line 241 of file class.ilGlossaryTerm.php.
References $import_id.
Referenced by create().
ilGlossaryTerm::getLanguage | ( | ) |
get language
Definition at line 223 of file class.ilGlossaryTerm.php.
References $language.
Referenced by exportXML().
|
static |
Get number of usages.
int | term id |
Definition at line 549 of file class.ilGlossaryTerm.php.
References getUsages().
Referenced by ilObjGlossaryGUI\confirmDefinitionDeletion(), ilObjGlossaryGUI\confirmTermDeletion(), ilTermDefinitionEditorGUI\executeCommand(), ilTermListTableGUI\fillRow(), and ilGlossaryTermGUI\getTabs().
ilGlossaryTerm::getTerm | ( | ) |
get term
Definition at line 203 of file class.ilGlossaryTerm.php.
References $term.
Referenced by exportXML().
|
static |
Get all terms for given set of glossary ids.
integer/array | array of glossary ids for meta glossaries |
string | searchstring |
string | first letter |
Definition at line 366 of file class.ilGlossaryTerm.php.
References $DIC, $i, $id, $ilDB, $in, ilObject\_lookupObjectId(), ilObjTaxonomy\getSubTreeItems(), ilObjTaxonomy\getUsageOfObject(), and ilAdvancedMDValues\queryForRecords().
Referenced by ilPCParagraph\autoLinkGlossaries(), ilObjGlossary\autoLinkGlossaryTerms(), ilObjContentObject\autoLinkGlossaryTerms(), ilObjGlossary\cloneObject(), ilObjGlossary\getTermList(), and ilGlossaryExporter\getXmlExportTailDependencies().
|
static |
Get terms of glossary.
Definition at line 679 of file class.ilGlossaryTerm.php.
Referenced by ilGlossaryDefinition\setShortTextsDirty().
|
static |
Get number of usages.
int | term id |
Definition at line 560 of file class.ilGlossaryTerm.php.
References $glo_id, ilInternalLink\_getSourcesOfTarget(), and ilGlossaryTermReferences\lookupReferencesOfTerm().
Referenced by ilTermUsagesTableGUI\getItems(), and getNumberOfUsages().
ilGlossaryTerm::read | ( | ) |
read glossary term data
Definition at line 54 of file class.ilGlossaryTerm.php.
References $db, $ilDB, setGlossaryId(), setImportId(), setLanguage(), and setTerm().
Referenced by __construct().
ilGlossaryTerm::setGlossary | ( | & | $a_glossary | ) |
set glossary object
object | $a_glossary | glossary object |
Definition at line 158 of file class.ilGlossaryTerm.php.
References setGlossaryId().
ilGlossaryTerm::setGlossaryId | ( | $a_glo_id | ) |
set glossary id
int | $a_glo_id | glossary id |
Definition at line 170 of file class.ilGlossaryTerm.php.
Referenced by read(), and setGlossary().
ilGlossaryTerm::setId | ( | $a_id | ) |
set glossary term id (= glossary item id)
int | $a_id | glossary term id |
Definition at line 137 of file class.ilGlossaryTerm.php.
Referenced by create().
ilGlossaryTerm::setImportId | ( | $a_import_id | ) |
set import id
Definition at line 232 of file class.ilGlossaryTerm.php.
Referenced by read().
ilGlossaryTerm::setLanguage | ( | $a_language | ) |
set language
string | $a_language | two letter language code |
Definition at line 214 of file class.ilGlossaryTerm.php.
Referenced by read().
ilGlossaryTerm::setTerm | ( | $a_term | ) |
set term
string | $a_term | term |
Definition at line 192 of file class.ilGlossaryTerm.php.
Referenced by read().
ilGlossaryTerm::update | ( | ) |
update glossary term
Definition at line 294 of file class.ilGlossaryTerm.php.
References $db, $ilDB, and getId().
|
protected |
ilGlossaryTerm::$glo_id |
Definition at line 26 of file class.ilGlossaryTerm.php.
Referenced by _getIdForImportId(), getGlossaryId(), and getUsages().
ilGlossaryTerm::$glossary |
Definition at line 23 of file class.ilGlossaryTerm.php.
ilGlossaryTerm::$id |
Definition at line 22 of file class.ilGlossaryTerm.php.
Referenced by getId(), and getTermList().
ilGlossaryTerm::$import_id |
Definition at line 27 of file class.ilGlossaryTerm.php.
Referenced by getImportId().
ilGlossaryTerm::$language |
Definition at line 25 of file class.ilGlossaryTerm.php.
Referenced by getLanguage().
ilGlossaryTerm::$lng |
Definition at line 19 of file class.ilGlossaryTerm.php.
Referenced by __construct().
ilGlossaryTerm::$term |
Definition at line 24 of file class.ilGlossaryTerm.php.
Referenced by getTerm().
ilGlossaryTerm::$tpl |
Definition at line 20 of file class.ilGlossaryTerm.php.
Referenced by __construct().