ILIAS
trunk Revision v11.0_alpha-1831-g8615d53dadb
|
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_id=0) | |
read () | |
setId (int $a_id) | |
set glossary term id (= glossary item id) More... | |
getId () | |
setGlossary (ilObjGlossary $a_glossary) | |
setGlossaryId (int $a_glo_id) | |
getGlossaryId () | |
setTerm (string $a_term) | |
getTerm () | |
setLanguage (string $a_language) | |
getLanguage () | |
setImportId (string $a_import_id) | |
getImportId () | |
setShortText (string $a_text) | |
getShortText () | |
setShortTextDirty (int $a_val) | |
getShortTextDirty () | |
assignPageObject (ilGlossaryDefPage $a_page_object) | |
getPageObject () | |
create (bool $a_omit_page_creation=false) | |
delete () | |
delete glossary term More... | |
update () | |
shortenShortText (string $text) | |
Shorten short text. More... | |
updateShortText () | |
exportXML (ilXmlWriter $a_xml_writer, int $a_inst) | |
Static Public Member Functions | |
static | _getIdForImportId (string $a_import_id) |
static | _exists (int $a_id) |
checks whether a glossary term with specified id exists or not More... | |
static | setShortTextsDirty (int $a_glo_id) |
Set all short texts of glossary dirty (e.g. More... | |
static | setShortTextsDirtyGlobally () |
Set short texts dirty (for all glossaries) More... | |
static | _lookGlossaryID (int $term_id) |
get glossary id form term id More... | |
static | _lookGlossaryTerm (int $term_id) |
get glossary term More... | |
static | _lookLanguage (int $term_id) |
lookup term language More... | |
static | _lookShortText (int $term_id) |
get definition short text More... | |
static | _lookShortTextDirty (int $term_id) |
get definition short text dirty More... | |
static | getTermList (array $a_glo_ref_id, string $searchterm="", string $a_first_letter="", string $a_def="", int $a_tax_node=0, bool $a_add_amet_fields=false, ?array $a_amet_filter=null, bool $a_include_references=false) |
Get all terms for given set of glossary ids. More... | |
static | getFirstLetters (array $a_glo_id, int $a_tax_node=0) |
static | getNumberOfUsages (int $a_term_id) |
static | getUsages (int $a_term_id) |
static | _copyTerm (int $a_term_id, int $a_glossary_id) |
Copy a term to a glossary. More... | |
static | getTermsOfGlossary (int $a_glo_id) |
Data Fields | |
ilLanguage | $lng |
ilGlobalTemplateInterface | $tpl |
int | $id = 0 |
ilObjGlossary | $glossary |
string | $term = "" |
string | $language = "" |
int | $glo_id = 0 |
string | $import_id = "" |
string | $short_text = "" |
int | $short_text_dirty = 0 |
ilGlossaryDefPage | $page_object |
Protected Attributes | |
string | $type |
ilDBInterface | $db |
ilAppEventHandler | $event_handler |
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 terms
Definition at line 23 of file class.ilGlossaryTerm.php.
ilGlossaryTerm::__construct | ( | int | $a_id = 0 | ) |
Definition at line 40 of file class.ilGlossaryTerm.php.
References $DIC, $lng, $tpl, ILIAS\Repository\lng(), and read().
|
static |
Copy a term to a glossary.
Definition at line 641 of file class.ilGlossaryTerm.php.
References ilAdvancedMDRecord\_getSelectedRecordsByObject(), ilADTActiveRecordByType\cloneByPrimary(), ilADTFactory\getInstance(), and ilAdvancedMDFieldDefinition\getInstancesByRecordId().
Referenced by ilObjGlossary\cloneObject(), ILIAS\Glossary\Term\TermManager\copyTermFromOtherGlossary(), and ilObjGlossaryGUI\pasteTerms().
|
static |
checks whether a glossary term with specified id exists or not
Definition at line 109 of file class.ilGlossaryTerm.php.
References $DIC, $ilDB, $q, and ilInternalLink\_extractObjIdOfTarget().
Referenced by ilInternalLink\_exists(), ilCOPageHTMLExport\exportHTMLGlossaryTerms(), ilLinksTableGUI\fillRow(), and ilLMPresentationLinker\getLinkXML().
|
static |
Definition at line 78 of file class.ilGlossaryTerm.php.
References $DIC, $ilDB, $q, ilObject\_getAllReferences(), and ilObject\_hasUntrashedReference().
Referenced by ilInternalLink\_getIdForImportId().
|
static |
get glossary id form term id
Definition at line 373 of file class.ilGlossaryTerm.php.
Referenced by ilTermDefinitionEditorGUI\__construct(), ilGlossaryTermGUI\__construct(), ilObjGlossaryGUI\__construct(), ilObjGlossaryAccess\_checkGoto(), ilGlossaryTermGUI\_goto(), ILIAS\Glossary\Term\TermManager\copyTermFromOtherGlossary(), ilMediaPoolPageUsagesTableGUI\fillRow(), ilMediaObjectUsagesTableGUI\fillRow(), ILIAS\components\ILIAS\Glossary\Table\TermUsagesTable\getComponent(), ILIAS\components\ILIAS\Glossary\Table\TermUsagesTable\getDataRetrieval(), ILIAS\components\ILIAS\Glossary\Table\TermListTable\getDataRetrieval(), ilGlossaryTermPermission\getGlossaryIdForTerm(), ilObjMediaObject\getParentObjectIdForUsage(), ILIAS\components\ILIAS\Glossary\Table\TermListTable\handleTermForModal(), ilGlossaryPresentationGUI\initByRequest(), and ILIAS\Glossary\Term\TermManager\referenceTermsFromOtherGlossary().
|
static |
get glossary term
Definition at line 390 of file class.ilGlossaryTerm.php.
Referenced by ilLinksTableGUI\fillRow(), ilMediaPoolPageUsagesTableGUI\fillRow(), ilMediaObjectUsagesTableGUI\fillRow(), ilObjGlossary\getAdvMDSubItemTitle(), ILIAS\components\ILIAS\Glossary\Table\TermListTable\getComponent(), ILIAS\components\ILIAS\Glossary\Table\TermUsagesTable\getDataRetrieval(), ilObjGlossarySubItemListGUI\getHTML(), ilObjGlossaryGUI\getTemplate(), ilGlossaryFlashcardBoxGUI\getTermText(), ilLinkInputGUI\getTranslatedValue(), ilObjGlossaryGUI\putTermsIntoClipBoard(), and ilLMPresentationGUI\showPrintView().
|
static |
|
static |
get definition short text
Definition at line 424 of file class.ilGlossaryTerm.php.
Referenced by ILIAS\components\ILIAS\Glossary\Table\TermListTable\getDataRetrieval(), and ilPresentationTableGUI\getShortTextForTerm().
|
static |
get definition short text dirty
Definition at line 441 of file class.ilGlossaryTerm.php.
Referenced by ILIAS\components\ILIAS\Glossary\Table\TermListTable\getDataRetrieval(), and ilPresentationTableGUI\getShortTextForTerm().
ilGlossaryTerm::assignPageObject | ( | ilGlossaryDefPage | $a_page_object | ) |
Definition at line 212 of file class.ilGlossaryTerm.php.
ilGlossaryTerm::create | ( | bool | $a_omit_page_creation = false | ) |
Definition at line 222 of file class.ilGlossaryTerm.php.
References $db, $ilDB, getGlossaryId(), getId(), getShortText(), getShortTextDirty(), and setId().
Referenced by ilObjGlossaryGUI\addTerm().
ilGlossaryTerm::delete | ( | ) |
delete glossary term
Definition at line 251 of file class.ilGlossaryTerm.php.
References $db, $ilDB, ilGlossaryTermReferences\deleteReferencesOfTerm(), and getId().
ilGlossaryTerm::exportXML | ( | ilXmlWriter | $a_xml_writer, |
int | $a_inst | ||
) |
Definition at line 602 of file class.ilGlossaryTerm.php.
References getId(), getLanguage(), getTerm(), IL_INST_ID, ilXmlWriter\xmlElement(), ilXmlWriter\xmlEndTag(), and ilXmlWriter\xmlStartTag().
|
static |
Definition at line 561 of file class.ilGlossaryTerm.php.
References $DIC, $ilDB, $q, ilObjTaxonomy\getSubTreeItems(), and ilObjTaxonomy\getUsageOfObject().
Referenced by ilObjGlossary\getFirstLetters().
ilGlossaryTerm::getGlossaryId | ( | ) |
Definition at line 156 of file class.ilGlossaryTerm.php.
References $glo_id.
Referenced by create().
ilGlossaryTerm::getId | ( | ) |
Definition at line 138 of file class.ilGlossaryTerm.php.
References $id.
Referenced by ilObjGlossaryGUI\addTerm(), create(), delete(), exportXML(), read(), shortenShortText(), and update().
ilGlossaryTerm::getImportId | ( | ) |
ilGlossaryTerm::getLanguage | ( | ) |
Definition at line 177 of file class.ilGlossaryTerm.php.
References $language.
Referenced by exportXML().
|
static |
Definition at line 617 of file class.ilGlossaryTerm.php.
Referenced by ilTermDefinitionEditorGUI\__construct(), ILIAS\components\ILIAS\Glossary\Table\TermListTable\getDataRetrieval(), ilGlossaryTermGUI\getTabs(), and ILIAS\components\ILIAS\Glossary\Table\TermListTable\handleTermForModal().
ilGlossaryTerm::getPageObject | ( | ) |
Definition at line 217 of file class.ilGlossaryTerm.php.
References $page_object.
ilGlossaryTerm::getShortText | ( | ) |
Definition at line 197 of file class.ilGlossaryTerm.php.
References $short_text.
Referenced by create(), and update().
ilGlossaryTerm::getShortTextDirty | ( | ) |
Definition at line 207 of file class.ilGlossaryTerm.php.
References $short_text_dirty.
Referenced by create(), and update().
ilGlossaryTerm::getTerm | ( | ) |
Definition at line 166 of file class.ilGlossaryTerm.php.
References $term.
Referenced by exportXML().
|
static |
Get all terms for given set of glossary ids.
Definition at line 458 of file class.ilGlossaryTerm.php.
References $DIC, $ilDB, $q, 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 |
Definition at line 703 of file class.ilGlossaryTerm.php.
References $DIC, $ilDB, and ILIAS\Repository\int().
Referenced by ILIAS\MetaData\OERHarvester\Settings\Settings\SettingsGUI\edit().
|
static |
Definition at line 622 of file class.ilGlossaryTerm.php.
References $glo_id, ilInternalLink\_getSourcesOfTarget(), and ilGlossaryTermReferences\lookupReferencesOfTerm().
Referenced by ILIAS\components\ILIAS\Glossary\Table\TermUsagesTable\getDataRetrieval().
ilGlossaryTerm::read | ( | ) |
Definition at line 59 of file class.ilGlossaryTerm.php.
References $db, $ilDB, $q, getId(), setGlossaryId(), setImportId(), setLanguage(), setShortText(), setShortTextDirty(), and setTerm().
Referenced by __construct().
ilGlossaryTerm::setGlossary | ( | ilObjGlossary | $a_glossary | ) |
Definition at line 143 of file class.ilGlossaryTerm.php.
References ilObject\getId(), and setGlossaryId().
Referenced by ilObjGlossaryGUI\addTerm().
ilGlossaryTerm::setGlossaryId | ( | int | $a_glo_id | ) |
Definition at line 150 of file class.ilGlossaryTerm.php.
Referenced by read(), and setGlossary().
ilGlossaryTerm::setId | ( | int | $a_id | ) |
set glossary term id (= glossary item id)
Definition at line 133 of file class.ilGlossaryTerm.php.
Referenced by create().
ilGlossaryTerm::setImportId | ( | string | $a_import_id | ) |
Definition at line 182 of file class.ilGlossaryTerm.php.
Referenced by read().
ilGlossaryTerm::setLanguage | ( | string | $a_language | ) |
Definition at line 171 of file class.ilGlossaryTerm.php.
References ILIAS\UI\examples\Symbol\Glyph\Language\language().
Referenced by ilObjGlossaryGUI\addTerm(), and read().
ilGlossaryTerm::setShortText | ( | string | $a_text | ) |
Definition at line 192 of file class.ilGlossaryTerm.php.
References shortenShortText().
Referenced by read(), and updateShortText().
ilGlossaryTerm::setShortTextDirty | ( | int | $a_val | ) |
Definition at line 202 of file class.ilGlossaryTerm.php.
Referenced by read(), and updateShortText().
|
static |
Set all short texts of glossary dirty (e.g.
if length is changed in settings)
TODO: the new SettingsGUI doesn't use this, remove?
Definition at line 338 of file class.ilGlossaryTerm.php.
|
static |
Set short texts dirty (for all glossaries)
Definition at line 358 of file class.ilGlossaryTerm.php.
Referenced by ilObjAdvancedEditingGUI\initGeneralPageSettingsForm().
ilGlossaryTerm::setTerm | ( | string | $a_term | ) |
Definition at line 161 of file class.ilGlossaryTerm.php.
Referenced by ilObjGlossaryGUI\addTerm(), and read().
ilGlossaryTerm::shortenShortText | ( | string | $text | ) |
Shorten short text.
Definition at line 286 of file class.ilGlossaryTerm.php.
References getId(), ilObjGlossary\lookupSnippetLength(), and ilStr\shortenTextExtended().
Referenced by setShortText(), and updateShortText().
ilGlossaryTerm::update | ( | ) |
Definition at line 268 of file class.ilGlossaryTerm.php.
References $db, $ilDB, getId(), getShortText(), and getShortTextDirty().
Referenced by updateShortText().
ilGlossaryTerm::updateShortText | ( | ) |
Definition at line 321 of file class.ilGlossaryTerm.php.
References setShortText(), setShortTextDirty(), shortenShortText(), and update().
|
protected |
|
protected |
Definition at line 38 of file class.ilGlossaryTerm.php.
int ilGlossaryTerm::$glo_id = 0 |
Definition at line 33 of file class.ilGlossaryTerm.php.
Referenced by getGlossaryId(), and getUsages().
ilObjGlossary ilGlossaryTerm::$glossary |
Definition at line 30 of file class.ilGlossaryTerm.php.
int ilGlossaryTerm::$id = 0 |
Definition at line 29 of file class.ilGlossaryTerm.php.
Referenced by getId().
string ilGlossaryTerm::$import_id = "" |
Definition at line 34 of file class.ilGlossaryTerm.php.
Referenced by getImportId().
string ilGlossaryTerm::$language = "" |
Definition at line 32 of file class.ilGlossaryTerm.php.
Referenced by getLanguage().
ilLanguage ilGlossaryTerm::$lng |
Definition at line 27 of file class.ilGlossaryTerm.php.
Referenced by __construct().
ilGlossaryDefPage ilGlossaryTerm::$page_object |
Definition at line 37 of file class.ilGlossaryTerm.php.
Referenced by getPageObject().
string ilGlossaryTerm::$short_text = "" |
Definition at line 35 of file class.ilGlossaryTerm.php.
Referenced by getShortText().
int ilGlossaryTerm::$short_text_dirty = 0 |
Definition at line 36 of file class.ilGlossaryTerm.php.
Referenced by getShortTextDirty().
string ilGlossaryTerm::$term = "" |
Definition at line 31 of file class.ilGlossaryTerm.php.
Referenced by getTerm().
ilGlobalTemplateInterface ilGlossaryTerm::$tpl |
Definition at line 28 of file class.ilGlossaryTerm.php.
Referenced by __construct().
|
protected |
Definition at line 25 of file class.ilGlossaryTerm.php.