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, bool $a_call_by_reference=true) | |
create (bool $a_upload=false) | |
read () | |
setVirtualMode (string $a_mode) | |
getVirtualMode () | |
isVirtual () | |
setPresentationMode (string $a_val) | |
getPresentationMode () | |
setSnippetLength (int $a_val) | |
Set definition snippet length (in overview) More... | |
getSnippetLength () | |
setOnline (bool $a_online) | |
getOnline () | |
setActiveGlossaryMenu (bool $a_act_glo_menu) | |
isActiveGlossaryMenu () | |
setShowTaxonomy (bool $a_val) | |
getShowTaxonomy () | |
setActiveFlashcards (bool $a_flash) | |
isActiveFlashcards () | |
setFlashcardsMode (string $a_flash) | |
getFlashcardsMode () | |
setAutoGlossaries (array $a_val) | |
addAutoGlossary (int $glo_id) | |
getAutoGlossaries () | |
removeAutoGlossary (int $a_glo_id) | |
update () | |
updateAutoGlossaries () | |
getGlossariesForCollection () | |
addGlossaryForCollection (int $glo_id) | |
removeGlossaryFromCollection (int $glo_id) | |
getTermList (string $searchterm="", string $a_letter="", string $a_def="", int $a_tax_node=0, bool $a_include_offline_childs=false, bool $a_add_amet_fields=false, ?array $a_amet_filter=null, bool $a_omit_virtual=false, bool $a_include_references=false) | |
getFirstLetters (int $a_tax_node=0) | |
getAllGlossaryIds (bool $a_include_offline_childs=false, bool $ids_are_ref_ids=false) | |
Get all glossary ids. More... | |
createExportDirectory (string $a_type="xml") | |
getExportDirectory (string $a_type="xml") | |
delete () | |
getTaxonomyId () | |
cloneObject (int $target_id, int $copy_id=0, bool $omit_tree=false) | |
removeOfflineGlossaries (array $a_glo_ids, bool $ids_are_ref_ids=false) | |
Remove offline glossaries from obj id array. More... | |
autoLinkGlossaryTerms (int $a_glo_ref_id) | |
Auto link glossary terms. More... | |
supportsLongTextQuery () | |
Is long text search supported. More... | |
![]() | |
getObjectProperties () | |
flushObjectProperties () | |
withReferences () | |
determines whether objects are referenced or not (got ref ids or not) More... | |
processAutoRating () | |
read () | |
getId () | |
setId (int $id) | |
setRefId (int $ref_id) | |
getRefId () | |
getType () | |
setType (string $type) | |
getPresentationTitle () | |
get presentation title Normally same as title Overwritten for sessions More... | |
getTitle () | |
getUntranslatedTitle () | |
Get untranslated object title WebDAV needs to access the untranslated title of an object. More... | |
setTitle (string $title) | |
getDescription () | |
setDescription (string $description) | |
getLongDescription () | |
get object long description (stored in object_description) More... | |
getImportId () | |
setImportId (string $import_id) | |
setOfflineStatus (bool $status) | |
getOfflineStatus () | |
supportsOfflineHandling () | |
getOwner () | |
getOwnerName () | |
get full name of object owner More... | |
setOwner (int $usr_id) | |
getCreateDate () | |
Get create date in YYYY-MM-DD HH-MM-SS format. More... | |
getLastUpdateDate () | |
Get last update date in YYYY-MM-DD HH-MM-SS format. More... | |
create () | |
note: title, description and type should be set when this function is called More... | |
update () | |
MDUpdateListener (string $element) | |
Metadata update listener. More... | |
createMetaData () | |
updateMetaData () | |
deleteMetaData () | |
updateOwner () | |
update owner of object in db More... | |
putInTree (int $parent_ref_id) | |
maybe this method should be in tree object!? More... | |
setPermissions (int $parent_ref_id) | |
setParentRolePermissions (int $parent_ref_id) | |
Initialize the permissions of parent roles (local roles of categories, global roles...) This method is overwritten in e.g. More... | |
createReference () | |
creates reference for object More... | |
countReferences () | |
delete () | |
delete object or referenced object (in the case of a referenced object, object data is only deleted if last reference is deleted) This function removes an object entirely from system!! More... | |
initDefaultRoles () | |
init default roles settings Purpose of this function is to create a local role folder and local roles, that are needed depending on the object type. More... | |
applyDidacticTemplate (int $tpl_id) | |
getXMLZip () | |
getHTMLDirectory () | |
appendCopyInfo (int $target_id, int $copy_id) | |
Prepend Copy info if object with same name exists in that container. More... | |
cloneDependencies (int $target_id, int $copy_id) | |
Clone object dependencies. More... | |
cloneMetaData (ilObject $target_obj) | |
Copy meta data. More... | |
selfOrParentWithRatingEnabled () | |
getPossibleSubObjects (bool $filter=true) | |
get all possible sub objects of this type the object can decide which types of sub objects are possible jut in time overwrite if the decision distinguish from standard model More... | |
Static Public Member Functions | |
static | _lookupOnline (int $a_id) |
static | lookupSnippetLength (int $a_id) |
static | lookupAutoGlossaries (int $a_id) |
static | getDeletionDependencies (int $obj_id) |
static | getAdvMDSubItemTitle (int $a_obj_id, string $a_sub_type, int $a_sub_id) |
![]() | |
static | _lookupObjIdByImportId (string $import_id) |
Get (latest) object id for an import id. More... | |
static | _lookupImportId (int $obj_id) |
static | _lookupOwnerName (int $owner_id) |
Lookup owner name for owner id. More... | |
static | _getIdForImportId (string $import_id) |
static | _getAllReferences (int $id) |
get all reference ids for object ID More... | |
static | _lookupTitle (int $obj_id) |
static | lookupOfflineStatus (int $obj_id) |
Lookup offline status using objectDataCache. More... | |
static | _lookupOwner (int $obj_id) |
Lookup owner user ID for object ID. More... | |
static | _getIdsForTitle (string $title, string $type='', bool $partial_match=false) |
static | _lookupDescription (int $obj_id) |
static | _lookupLastUpdate (int $obj_id, bool $formatted=false) |
static | _getLastUpdateOfObjects (array $obj_ids) |
static | _lookupObjId (int $ref_id) |
static | _setDeletedDate (int $ref_id, int $deleted_by) |
static | setDeletedDates (array $ref_ids, int $user_id) |
static | _resetDeletedDate (int $ref_id) |
static | _lookupDeletedDate (int $ref_id) |
static | _writeTitle (int $obj_id, string $title) |
write title to db (static) More... | |
static | _writeDescription (int $obj_id, string $desc) |
write description to db (static) More... | |
static | _writeImportId (int $obj_id, string $import_id) |
write import id to db (static) More... | |
static | _lookupType (int $id, bool $reference=false) |
static | _isInTrash (int $ref_id) |
static | _hasUntrashedReference (int $obj_id) |
checks whether an object has at least one reference that is not in trash More... | |
static | _lookupObjectId (int $ref_id) |
static | _getObjectsDataForType (string $type, bool $omit_trash=false) |
get all objects of a certain type More... | |
static | _exists (int $id, bool $reference=false, ?string $type=null) |
checks if an object exists in object_data More... | |
static | _getObjectsByType (string $obj_type="", ?int $owner=null) |
static | _prepareCloneSelection (array $ref_ids, string $new_type, bool $show_path=true) |
Prepare copy wizard object selection. More... | |
static | getIconForType (string $type) |
static | _getIcon (int $obj_id=0, string $size="big", string $type="", bool $offline=false) |
Get icon for repository item. More... | |
static | collectDeletionDependencies (array &$deps, int $ref_id, int $obj_id, string $type, int $depth=0) |
Collect deletion dependencies. More... | |
static | getDeletionDependencies (int $obj_id) |
Get deletion dependencies. More... | |
static | getLongDescriptions (array $obj_ids) |
static | getAllOwnedRepositoryObjects (int $user_id) |
static | fixMissingTitles ($type, array &$obj_title_map) |
Try to fix missing object titles. More... | |
static | _lookupCreationDate (int $obj_id) |
static | _getObjectTypeIdByTitle (string $type, ?\ilDBInterface $ilDB=null) |
Data Fields | |
array | $auto_glossaries = array() |
![]() | |
const | TITLE_LENGTH = 255 |
const | DESC_LENGTH = 128 |
const | LONG_DESC_LENGTH = 4000 |
const | TABLE_OBJECT_DATA = "object_data" |
array | $objectList |
string | $untranslatedTitle |
Static Protected Member Functions | |
static | lookup (int $a_id, string $a_property) |
Lookup glossary property. More... | |
Additional Inherited Members | |
![]() | |
doMDUpdateListener (string $a_element) | |
beforeMDUpdateListener (string $a_element) | |
doCreateMetaData () | |
beforeCreateMetaData () | |
doUpdateMetaData () | |
beforeUpdateMetaData () | |
doDeleteMetaData () | |
beforeDeleteMetaData () | |
handleAutoRating () | |
hasAutoRating () | |
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
Definition at line 22 of file class.ilObjGlossary.php.
ilObjGlossary::__construct | ( | int | $a_id = 0 , |
bool | $a_call_by_reference = true |
||
) |
Definition at line 44 of file class.ilObjGlossary.php.
References $DIC, ILIAS\GlobalScreen\Provider\__construct(), and ILIAS\Repository\user().
|
static |
Definition at line 176 of file class.ilObjGlossary.php.
References ilObject\$db, $DIC, $lm_set, $q, ilDBInterface\fetchAssoc(), ilDBInterface\query(), ilDBInterface\quote(), and ilUtil\yn2tf().
Referenced by ilRepositoryExplorer\isClickable().
ilObjGlossary::addAutoGlossary | ( | int | $glo_id | ) |
Definition at line 267 of file class.ilObjGlossary.php.
References ilObject\_lookupType().
Referenced by setAutoGlossaries().
ilObjGlossary::addGlossaryForCollection | ( | int | $glo_id | ) |
Definition at line 374 of file class.ilObjGlossary.php.
References ilObject\getId().
Referenced by ilObjGlossaryGUI\saveGlossaryForCollection().
ilObjGlossary::autoLinkGlossaryTerms | ( | int | $a_glo_ref_id | ) |
Auto link glossary terms.
Definition at line 670 of file class.ilObjGlossary.php.
References $c, $id, ilPCParagraph\autoLinkGlossariesPage(), ilObject\getRefId(), and ilGlossaryTerm\getTermList().
ilObjGlossary::cloneObject | ( | int | $target_id, |
int | $copy_id = 0 , |
||
bool | $omit_tree = false |
||
) |
Definition at line 544 of file class.ilObjGlossary.php.
References Vendor\Package\$a, ilGlossaryTerm\_copyTerm(), ilCopyWizardOptions\_getInstance(), ilObject\cloneMetaData(), ilTaxNodeAssignment\getAssignmentsOfItem(), getAutoGlossaries(), ilObject\getDescription(), getFlashcardsMode(), getGlossariesForCollection(), ilObject\getId(), getOnline(), getPresentationMode(), ilObject\getRefId(), getSnippetLength(), getTaxonomyId(), ilGlossaryTerm\getTermList(), getVirtualMode(), isActiveFlashcards(), null, and ilObjTaxonomy\saveUsage().
ilObjGlossary::create | ( | bool | $a_upload = false | ) |
Definition at line 61 of file class.ilObjGlossary.php.
References $id, ilObject\createMetaData(), ilObject\getId(), getVirtualMode(), setPresentationMode(), setSnippetLength(), and updateAutoGlossaries().
ilObjGlossary::createExportDirectory | ( | string | $a_type = "xml" | ) |
Definition at line 479 of file class.ilObjGlossary.php.
References ilExport\_createExportDirectory(), ilObject\getId(), and ilObject\getType().
ilObjGlossary::delete | ( | ) |
Definition at line 489 of file class.ilObjGlossary.php.
References $q, ilObject\deleteMetaData(), ilObject\getId(), getTermList(), and isVirtual().
|
static |
Implements ilAdvancedMetaDataSubItems.
Definition at line 653 of file class.ilObjGlossary.php.
References $DIC, ilObject\$lng, ilGlossaryTerm\_lookGlossaryTerm(), ilLanguage\loadLanguageModule(), and ilLanguage\txt().
ilObjGlossary::getAllGlossaryIds | ( | bool | $a_include_offline_childs = false , |
bool | $ids_are_ref_ids = false |
||
) |
Get all glossary ids.
Definition at line 436 of file class.ilObjGlossary.php.
References $DIC, ilObject\$tree, ilObject\_getAllReferences(), getGlossariesForCollection(), ilObject\getId(), ilObject\getRefId(), getVirtualMode(), isVirtual(), and removeOfflineGlossaries().
Referenced by getFirstLetters(), and getTermList().
ilObjGlossary::getAutoGlossaries | ( | ) |
Definition at line 278 of file class.ilObjGlossary.php.
References $auto_glossaries.
Referenced by cloneObject(), removeAutoGlossary(), and updateAutoGlossaries().
|
static |
Definition at line 518 of file class.ilObjGlossary.php.
References $DIC, ilObject\$lng, ilObjSAHSLearningModule\getScormModulesForGlossary(), ilLanguage\loadLanguageModule(), and ilLanguage\txt().
ilObjGlossary::getExportDirectory | ( | string | $a_type = "xml" | ) |
Definition at line 484 of file class.ilObjGlossary.php.
References ilExport\_getExportDirectory(), ilObject\getId(), and ilObject\getType().
ilObjGlossary::getFirstLetters | ( | int | $a_tax_node = 0 | ) |
Definition at line 424 of file class.ilObjGlossary.php.
References getAllGlossaryIds(), and ilGlossaryTerm\getFirstLetters().
ilObjGlossary::getFlashcardsMode | ( | ) |
Definition at line 250 of file class.ilObjGlossary.php.
References $flashcards_mode.
Referenced by cloneObject(), and update().
ilObjGlossary::getGlossariesForCollection | ( | ) |
Definition at line 360 of file class.ilObjGlossary.php.
References ILIAS\Repository\int().
Referenced by cloneObject(), and getAllGlossaryIds().
ilObjGlossary::getOnline | ( | ) |
Definition at line 171 of file class.ilObjGlossary.php.
References $online.
Referenced by cloneObject(), and update().
ilObjGlossary::getPresentationMode | ( | ) |
Definition at line 148 of file class.ilObjGlossary.php.
References $pres_mode.
Referenced by cloneObject(), and update().
ilObjGlossary::getShowTaxonomy | ( | ) |
Definition at line 230 of file class.ilObjGlossary.php.
References $show_tax.
Referenced by update().
ilObjGlossary::getSnippetLength | ( | ) |
Definition at line 159 of file class.ilObjGlossary.php.
Referenced by cloneObject(), and update().
ilObjGlossary::getTaxonomyId | ( | ) |
Definition at line 533 of file class.ilObjGlossary.php.
References ilObject\getId(), and ilObjTaxonomy\getUsageOfObject().
Referenced by cloneObject().
ilObjGlossary::getTermList | ( | string | $searchterm = "" , |
string | $a_letter = "" , |
||
string | $a_def = "" , |
||
int | $a_tax_node = 0 , |
||
bool | $a_include_offline_childs = false , |
||
bool | $a_add_amet_fields = false , |
||
?array | $a_amet_filter = null , |
||
bool | $a_omit_virtual = false , |
||
bool | $a_include_references = false |
||
) |
Definition at line 395 of file class.ilObjGlossary.php.
References getAllGlossaryIds(), ilObject\getRefId(), and ilGlossaryTerm\getTermList().
Referenced by delete(), and assQuestionGUI\outGlossarySelector().
ilObjGlossary::getVirtualMode | ( | ) |
Definition at line 133 of file class.ilObjGlossary.php.
References $virtual_mode.
Referenced by cloneObject(), create(), getAllGlossaryIds(), and update().
ilObjGlossary::isActiveFlashcards | ( | ) |
Definition at line 240 of file class.ilObjGlossary.php.
References $flashcards_active.
Referenced by cloneObject(), and update().
ilObjGlossary::isActiveGlossaryMenu | ( | ) |
Definition at line 220 of file class.ilObjGlossary.php.
References $glo_menu_active.
Referenced by update().
ilObjGlossary::isVirtual | ( | ) |
Definition at line 138 of file class.ilObjGlossary.php.
References $virtual.
Referenced by delete(), and getAllGlossaryIds().
|
staticprotected |
Lookup glossary property.
Definition at line 194 of file class.ilObjGlossary.php.
References ilObject\$db, $DIC, ilDBInterface\fetchAssoc(), ilDBInterface\query(), and ilDBInterface\quote().
|
static |
Definition at line 338 of file class.ilObjGlossary.php.
References ilObject\$db, $DIC, ilDBInterface\fetchAssoc(), ILIAS\Repository\int(), ilDBInterface\query(), and ilDBInterface\quote().
Referenced by ilGlossaryDefPage\beforePageContentUpdate().
|
static |
Definition at line 209 of file class.ilObjGlossary.php.
Referenced by ilGlossaryTerm\shortenShortText().
ilObjGlossary::read | ( | ) |
Definition at line 89 of file class.ilObjGlossary.php.
References $q, ilObject\getId(), setActiveFlashcards(), setActiveGlossaryMenu(), setAutoGlossaries(), setFlashcardsMode(), setOnline(), setPresentationMode(), setShowTaxonomy(), setSnippetLength(), setVirtualMode(), and ilUtil\yn2tf().
ilObjGlossary::removeAutoGlossary | ( | int | $a_glo_id | ) |
Definition at line 283 of file class.ilObjGlossary.php.
References getAutoGlossaries(), and setAutoGlossaries().
ilObjGlossary::removeGlossaryFromCollection | ( | int | $glo_id | ) |
Definition at line 386 of file class.ilObjGlossary.php.
ilObjGlossary::removeOfflineGlossaries | ( | array | $a_glo_ids, |
bool | $ids_are_ref_ids = false |
||
) |
Remove offline glossaries from obj id array.
Definition at line 620 of file class.ilObjGlossary.php.
References $id, ilObject\$ref_id, and ilObject\_lookupObjectId().
Referenced by getAllGlossaryIds().
ilObjGlossary::setActiveFlashcards | ( | bool | $a_flash | ) |
Definition at line 235 of file class.ilObjGlossary.php.
Referenced by read().
ilObjGlossary::setActiveGlossaryMenu | ( | bool | $a_act_glo_menu | ) |
Definition at line 215 of file class.ilObjGlossary.php.
Referenced by read().
ilObjGlossary::setAutoGlossaries | ( | array | $a_val | ) |
int[] | $a_val |
Definition at line 258 of file class.ilObjGlossary.php.
References addAutoGlossary().
Referenced by read(), and removeAutoGlossary().
ilObjGlossary::setFlashcardsMode | ( | string | $a_flash | ) |
Definition at line 245 of file class.ilObjGlossary.php.
Referenced by read().
ilObjGlossary::setOnline | ( | bool | $a_online | ) |
Definition at line 166 of file class.ilObjGlossary.php.
Referenced by read().
ilObjGlossary::setPresentationMode | ( | string | $a_val | ) |
Definition at line 143 of file class.ilObjGlossary.php.
Referenced by create(), and read().
ilObjGlossary::setShowTaxonomy | ( | bool | $a_val | ) |
Definition at line 225 of file class.ilObjGlossary.php.
Referenced by read().
ilObjGlossary::setSnippetLength | ( | int | $a_val | ) |
Set definition snippet length (in overview)
Definition at line 154 of file class.ilObjGlossary.php.
Referenced by create(), and read().
ilObjGlossary::setVirtualMode | ( | string | $a_mode | ) |
Definition at line 118 of file class.ilObjGlossary.php.
Referenced by read().
ilObjGlossary::supportsLongTextQuery | ( | ) |
Is long text search supported.
Definition at line 702 of file class.ilObjGlossary.php.
ilObjGlossary::update | ( | ) |
Definition at line 295 of file class.ilObjGlossary.php.
References getFlashcardsMode(), ilObject\getId(), getOnline(), getPresentationMode(), getShowTaxonomy(), getSnippetLength(), getVirtualMode(), isActiveFlashcards(), isActiveGlossaryMenu(), ilUtil\tf2yn(), updateAutoGlossaries(), and ilObject\updateMetaData().
ilObjGlossary::updateAutoGlossaries | ( | ) |
Definition at line 320 of file class.ilObjGlossary.php.
References getAutoGlossaries(), and ilObject\getId().
Referenced by create(), and update().
array ilObjGlossary::$auto_glossaries = array() |
Definition at line 40 of file class.ilObjGlossary.php.
Referenced by getAutoGlossaries().
|
protected |
Definition at line 25 of file class.ilObjGlossary.php.
|
protected |
Definition at line 27 of file class.ilObjGlossary.php.
|
protected |
Definition at line 37 of file class.ilObjGlossary.php.
Referenced by isActiveFlashcards().
|
protected |
Definition at line 38 of file class.ilObjGlossary.php.
Referenced by getFlashcardsMode().
|
protected |
Definition at line 31 of file class.ilObjGlossary.php.
Referenced by isActiveGlossaryMenu().
|
protected |
Definition at line 28 of file class.ilObjGlossary.php.
|
protected |
Definition at line 32 of file class.ilObjGlossary.php.
Referenced by getOnline().
|
protected |
Definition at line 26 of file class.ilObjGlossary.php.
|
protected |
Definition at line 34 of file class.ilObjGlossary.php.
Referenced by getPresentationMode().
|
protected |
Definition at line 29 of file class.ilObjGlossary.php.
Referenced by getShowTaxonomy().
|
protected |
Definition at line 33 of file class.ilObjGlossary.php.
|
protected |
Definition at line 30 of file class.ilObjGlossary.php.
|
protected |
Definition at line 24 of file class.ilObjGlossary.php.
|
protected |
Definition at line 39 of file class.ilObjGlossary.php.
|
protected |
Definition at line 41 of file class.ilObjGlossary.php.
|
protected |
Definition at line 35 of file class.ilObjGlossary.php.
Referenced by isVirtual().
|
protected |
Definition at line 36 of file class.ilObjGlossary.php.
Referenced by getVirtualMode().