ILIAS
eassessment Revision 61809
|
Class ilObjGlossary. More...
Public Member Functions | |
ilObjGlossary ($a_id=0, $a_call_by_reference=true) | |
Constructor public. | |
create ($a_upload=false) | |
create glossary object | |
read () | |
read data of content object | |
getDescription () | |
get description of glossary object | |
setDescription ($a_description) | |
set description of glossary object | |
setVirtualMode ($a_mode) | |
set glossary type (virtual: fixed/level/subtree, normal:none) | |
getVirtualMode () | |
get glossary type (normal or virtual) | |
isVirtual () | |
returns true if glossary type is virtual (any mode) | |
getTitle () | |
get title of glossary object | |
setTitle ($a_title) | |
set title of glossary object | |
setPresentationMode ($a_val) | |
Set presentation mode. | |
getPresentationMode () | |
Get presentation mode. | |
setSnippetLength ($a_val) | |
Set snippet length. | |
getSnippetLength () | |
Get snippet length. | |
setOnline ($a_online) | |
getOnline () | |
_lookupOnline ($a_id) | |
check wether content object is online | |
setActiveGlossaryMenu ($a_act_glo_menu) | |
isActiveGlossaryMenu () | |
setActiveDownloads ($a_down) | |
isActiveDownloads () | |
update () | |
update object | |
getTermList ($searchterm="", $a_letter="", $a_def="") | |
Get term list. | |
getFirstLetters () | |
Get term list. | |
getAllGlossaryIds () | |
Get all glossary ids. | |
createImportDirectory () | |
creates data directory for import files (data_dir/glo_data/glo_<id>/import, depending on data directory that is set in ILIAS setup/ini) | |
getImportDirectory () | |
get import directory of glossary | |
createExportDirectory ($a_type="xml") | |
Creates export directory. | |
getExportDirectory ($a_type="xml") | |
Get export directory of glossary. | |
getExportFiles () | |
Get export files. | |
setPublicExportFile ($a_type, $a_file) | |
specify public export file for type | |
getPublicExportFile ($a_type) | |
get public export file | |
exportHTML ($a_target_dir, $log) | |
export html package | |
exportHTMLGlossaryTerms (&$a_glo_gui, $a_target_dir) | |
export glossary terms | |
exportHTMLMOB ($a_target_dir, &$a_glo_gui, $a_mob_id) | |
export media object to html | |
exportHTMLFile ($a_target_dir, $a_file_id) | |
export file object | |
exportXML (&$a_xml_writer, $a_inst, $a_target_dir, &$expLog) | |
export object to xml (see ilias_co.dtd) | |
exportXMLGlossaryItems (&$a_xml_writer, $a_inst, &$expLog) | |
export page objects to xml (see ilias_co.dtd) | |
exportXMLMetaData (&$a_xml_writer) | |
export content objects meta data to xml (see ilias_co.dtd) | |
exportXMLMediaObjects (&$a_xml_writer, $a_inst, $a_target_dir, &$expLog) | |
export media objects to xml (see ilias_co.dtd) | |
exportFileItems ($a_target_dir, &$expLog) | |
export files of file itmes | |
modifyExportIdentifier ($a_tag, $a_param, $a_value) | |
delete () | |
delete glossary and all related data | |
notify ($a_event, $a_ref_id, $a_parent_non_rbac_id, $a_node_id, $a_params=0) | |
notifys an object about an event occured Based on the event happend, each object may decide how it reacts. | |
getXMLZip () | |
Get zipped xml file for glossary. | |
Public Member Functions inherited from ilObject | |
ilObject ($a_id=0, $a_reference=true) | |
Constructor public. | |
withReferences () | |
determines wehter objects are referenced or not (got ref ids or not) | |
read ($a_force_db=false) | |
read object data from db into object | |
getId () | |
get object id public | |
setId ($a_id) | |
set object id public | |
setRefId ($a_id) | |
set reference id public | |
getRefId () | |
get reference id public | |
getType () | |
get object type public | |
setType ($a_type) | |
set object type public | |
getPresentationTitle () | |
get presentation title Normally same as title Overwritten for sessions | |
getUntranslatedTitle () | |
get untranslated object title public | |
getLongDescription () | |
get object long description (stored in object_description) | |
getImportId () | |
get import id | |
setImportId ($a_import_id) | |
set import id | |
_lookupObjIdByImportId ($a_import_id) | |
getOwner () | |
get object owner | |
getOwnerName () | |
_lookupOwnerName ($a_owner_id) | |
lookup owner name for owner id | |
setOwner ($a_owner) | |
set object owner | |
getCreateDate () | |
get create date public | |
getLastUpdateDate () | |
get last update date public | |
getDiskUsage () | |
Gets the disk usage of the object in bytes. | |
setObjDataRecord ($a_record) | |
set object_data record (note: this method should only be called from the ilObjectFactory class) | |
create () | |
create | |
MDUpdateListener ($a_element) | |
Meta data update listener. | |
createMetaData () | |
create meta data entry | |
updateMetaData () | |
update meta data entry | |
deleteMetaData () | |
delete meta data entry | |
updateOwner () | |
update owner of object in db | |
_getIdForImportId ($a_import_id) | |
get current object id for import id (static) | |
_lookupOwner ($a_id) | |
lookup object owner | |
_lookupDescription ($a_id) | |
lookup object description | |
_lookupLastUpdate ($a_id, $a_as_string=false) | |
lookup last update | |
_getLastUpdateOfObjects ($a_objs) | |
Get last update for a set of media objects. | |
_setDeletedDate ($a_ref_id) | |
only called in ilTree::saveSubTree | |
_resetDeletedDate ($a_ref_id) | |
only called in ilObjectGUI::insertSavedNodes | |
_lookupDeletedDate ($a_ref_id) | |
only called in ilObjectGUI::insertSavedNodes | |
_writeTitle ($a_obj_id, $a_title) | |
write title to db (static) | |
_writeDescription ($a_obj_id, $a_desc) | |
write description to db (static) | |
_writeImportId ($a_obj_id, $a_import_id) | |
write import id to db (static) | |
_isInTrash ($a_ref_id) | |
checks wether object is in trash | |
_hasUntrashedReference ($a_obj_id) | |
checks wether an object has at least one reference that is not in trash | |
_lookupObjectId ($a_ref_id) | |
lookup object id | |
_getObjectsDataForType ($a_type, $a_omit_trash=false) | |
get all objects of a certain type | |
putInTree ($a_parent_ref) | |
maybe this method should be in tree object!? | |
setPermissions ($a_parent_ref) | |
set permissions of object | |
createReference () | |
creates reference for object | |
countReferences () | |
count references of object | |
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 If you want to setup default local roles you MUST overwrite this method in derived object classes (see ilObjForum for an example) public | |
createRoleFolder () | |
creates a local role folder | |
setRegisterMode ($a_bool) | |
isUserRegistered ($a_user_id=0) | |
requireRegistration () | |
getHTMLDirectory () | |
cloneObject ($a_target_id, $a_copy_id=0) | |
Clone object permissions, put in tree ... | |
appendCopyInfo ($a_target_id, $a_copy_id) | |
Prepend Copy info if object with same name exists in that container. | |
cloneDependencies ($a_target_id, $a_copy_id) | |
Clone object dependencies. | |
cloneMetaData ($target_obj) | |
Copy meta data. |
Static Public Member Functions | |
static | lookupSnippetLength ($a_id) |
Lookup snippet length. | |
static | getDeletionDependencies ($a_obj_id) |
Get deletion dependencies. | |
Static Public Member Functions inherited from ilObject | |
static | _getAllReferences ($a_id) |
get all reference ids of object | |
static | _lookupTitle ($a_id) |
lookup object title | |
static | _getIdsForTitle ($title, $type= '', $partialmatch=false) |
static | _lookupObjId ($a_id) |
static | _lookupType ($a_id, $a_reference=false) |
lookup object type | |
_exists ($a_id, $a_reference=false) | |
checks if an object exists in object_data | |
static | _getObjectsByType ($a_obj_type="", $a_owner="") |
Get objects by type. | |
static | _prepareCloneSelection ($a_ref_ids, $new_type) |
Prepare copy wizard object selection. | |
static | _getIcon ($a_obj_id="", $a_size="big", $a_type="", $a_offline=false) |
Get icon for repository item. | |
static | collectDeletionDependencies (&$deps, $a_ref_id, $a_obj_id, $a_type, $a_depth=0) |
Collect deletion dependencies. |
Static Protected Member Functions | |
static | lookup ($a_id, $a_property) |
Lookup glossary property. |
Additional Inherited Members | |
Data Fields inherited from ilObject | |
const | TITLE_LENGTH = 128 |
max length of object title | |
$ilias | |
$lng | |
$id | |
$ref_id | |
$type | |
$title | |
$untranslatedTitle | |
$desc | |
$long_desc | |
$owner | |
$create_date | |
$last_update | |
$import_id | |
$register = false | |
$referenced | |
$objectList | |
$max_title | |
$max_desc | |
$add_dots | |
$obj_data_record | |
object_data record |
Class ilObjGlossary.
Definition at line 19 of file class.ilObjGlossary.php.
ilObjGlossary::_lookupOnline | ( | $a_id | ) |
check wether content object is online
Definition at line 212 of file class.ilObjGlossary.php.
References $ilDB, and ilUtil\yn2tf().
Referenced by ilRepositoryExplorer\isClickable().
ilObjGlossary::create | ( | $a_upload = false | ) |
create glossary object
Definition at line 35 of file class.ilObjGlossary.php.
References $ilDB, ilObject\create(), ilObject\createMetaData(), getVirtualMode(), setPresentationMode(), and setSnippetLength().
ilObjGlossary::createExportDirectory | ( | $a_type = "xml" | ) |
Creates export directory.
Definition at line 417 of file class.ilObjGlossary.php.
References ilExport\_createExportDirectory(), ilObject\getId(), and ilObject\getType().
ilObjGlossary::createImportDirectory | ( | ) |
creates data directory for import files (data_dir/glo_data/glo_<id>/import, depending on data directory that is set in ILIAS setup/ini)
Definition at line 378 of file class.ilObjGlossary.php.
References ilUtil\getDataDir(), ilObject\getId(), and ilUtil\makeDir().
ilObjGlossary::delete | ( | ) |
delete glossary and all related data
this method has been tested on may 9th 2004 meta data, terms, definitions, definition meta data and definition pages have been deleted correctly as desired
public
Reimplemented from ilObject.
Definition at line 918 of file class.ilObjGlossary.php.
References $ilDB, ilObject\deleteMetaData(), ilObject\getId(), getTermList(), and isVirtual().
ilObjGlossary::exportFileItems | ( | $a_target_dir, | |
& | $expLog | ||
) |
export files of file itmes
Definition at line 877 of file class.ilObjGlossary.php.
Referenced by exportXML().
ilObjGlossary::exportHTML | ( | $a_target_dir, | |
$log | |||
) |
export html package
Definition at line 467 of file class.ilObjGlossary.php.
References $_GET, $file, ilObject\$ilias, $tpl, ilUtil\delDir(), exportHTMLFile(), exportHTMLGlossaryTerms(), exportHTMLMOB(), getExportDirectory(), ilObject\getId(), ilUtil\getImagePath(), ilUtil\getStyleSheetLocation(), ilObjStyleSheet\getSyntaxStylePath(), ilObject\getType(), ilUtil\makeDir(), and ilUtil\zip().
ilObjGlossary::exportHTMLFile | ( | $a_target_dir, | |
$a_file_id | |||
) |
export file object
Definition at line 700 of file class.ilObjGlossary.php.
References ilUtil\makeDir().
Referenced by exportHTML().
ilObjGlossary::exportHTMLGlossaryTerms | ( | & | $a_glo_gui, |
$a_target_dir | |||
) |
export glossary terms
Definition at line 566 of file class.ilObjGlossary.php.
References $_GET, $file, ilObjFile\_getFilesOfObject(), ilObjMediaObject\_getMobsOfObject(), ilGlossaryDefinition\getDefinitionList(), getTermList(), and getTitle().
Referenced by exportHTML().
ilObjGlossary::exportHTMLMOB | ( | $a_target_dir, | |
& | $a_glo_gui, | ||
$a_mob_id | |||
) |
export media object to html
Definition at line 642 of file class.ilObjGlossary.php.
References $_GET, $file, $tpl, ilUtil\getWebspaceDir(), ilUtil\makeDir(), and ilUtil\rCopy().
Referenced by exportHTML().
ilObjGlossary::exportXML | ( | & | $a_xml_writer, |
$a_inst, | |||
$a_target_dir, | |||
& | $expLog | ||
) |
export object to xml (see ilias_co.dtd)
object | $a_xml_writer | ilXmlWriter object that receives the xml data |
Definition at line 721 of file class.ilObjGlossary.php.
References $ilBench, exportFileItems(), exportXMLGlossaryItems(), exportXMLMediaObjects(), exportXMLMetaData(), ilGlossaryDefinition\getDefinitionList(), and getTermList().
ilObjGlossary::exportXMLGlossaryItems | ( | & | $a_xml_writer, |
$a_inst, | |||
& | $expLog | ||
) |
export page objects to xml (see ilias_co.dtd)
object | $a_xml_writer | ilXmlWriter object that receives the xml data |
Definition at line 792 of file class.ilObjGlossary.php.
References $ilBench, exportXMLMetaData(), and getTermList().
Referenced by exportXML().
ilObjGlossary::exportXMLMediaObjects | ( | & | $a_xml_writer, |
$a_inst, | |||
$a_target_dir, | |||
& | $expLog | ||
) |
export media objects to xml (see ilias_co.dtd)
object | $a_xml_writer | ilXmlWriter object that receives the xml data |
Definition at line 859 of file class.ilObjGlossary.php.
Referenced by exportXML().
ilObjGlossary::exportXMLMetaData | ( | & | $a_xml_writer | ) |
export content objects meta data to xml (see ilias_co.dtd)
object | $a_xml_writer | ilXmlWriter object that receives the xml data |
Definition at line 844 of file class.ilObjGlossary.php.
References ilObject\getId(), and ilObject\getType().
Referenced by exportXML(), and exportXMLGlossaryItems().
ilObjGlossary::getAllGlossaryIds | ( | ) |
Get all glossary ids.
@return |
Definition at line 324 of file class.ilObjGlossary.php.
References ilObject\getId(), ilObject\getRefId(), getVirtualMode(), and isVirtual().
Referenced by getFirstLetters(), and getTermList().
|
static |
Get deletion dependencies.
Reimplemented from ilObject.
Definition at line 1032 of file class.ilObjGlossary.php.
References ilObject\$lng, and ilObjSAHSLearningModule\getScormModulesForGlossary().
ilObjGlossary::getDescription | ( | ) |
get description of glossary object
Reimplemented from ilObject.
Definition at line 89 of file class.ilObjGlossary.php.
ilObjGlossary::getExportDirectory | ( | $a_type = "xml" | ) |
Get export directory of glossary.
Definition at line 426 of file class.ilObjGlossary.php.
References ilExport\_getExportDirectory(), ilObject\getId(), and ilObject\getType().
Referenced by exportHTML().
ilObjGlossary::getExportFiles | ( | ) |
Get export files.
Definition at line 435 of file class.ilObjGlossary.php.
References ilExport\_getExportFiles(), ilObject\getId(), and ilObject\getType().
ilObjGlossary::getFirstLetters | ( | ) |
Get term list.
Definition at line 311 of file class.ilObjGlossary.php.
References getAllGlossaryIds().
ilObjGlossary::getImportDirectory | ( | ) |
get import directory of glossary
Definition at line 407 of file class.ilObjGlossary.php.
References ilUtil\getDataDir().
ilObjGlossary::getOnline | ( | ) |
Definition at line 204 of file class.ilObjGlossary.php.
ilObjGlossary::getPresentationMode | ( | ) |
Get presentation mode.
Definition at line 174 of file class.ilObjGlossary.php.
Referenced by update().
ilObjGlossary::getPublicExportFile | ( | $a_type | ) |
get public export file
string | $a_type | type ("xml" / "html") |
Definition at line 459 of file class.ilObjGlossary.php.
Referenced by update().
ilObjGlossary::getSnippetLength | ( | ) |
Get snippet length.
Definition at line 194 of file class.ilObjGlossary.php.
Referenced by update().
ilObjGlossary::getTermList | ( | $searchterm = "" , |
|
$a_letter = "" , |
|||
$a_def = "" |
|||
) |
Get term list.
Definition at line 300 of file class.ilObjGlossary.php.
References getAllGlossaryIds().
Referenced by delete(), exportHTMLGlossaryTerms(), exportXML(), and exportXMLGlossaryItems().
ilObjGlossary::getTitle | ( | ) |
get title of glossary object
Reimplemented from ilObject.
Definition at line 145 of file class.ilObjGlossary.php.
Referenced by exportHTMLGlossaryTerms().
ilObjGlossary::getVirtualMode | ( | ) |
get glossary type (normal or virtual)
Definition at line 127 of file class.ilObjGlossary.php.
Referenced by create(), getAllGlossaryIds(), and update().
ilObjGlossary::getXMLZip | ( | ) |
Get zipped xml file for glossary.
Reimplemented from ilObject.
Definition at line 1021 of file class.ilObjGlossary.php.
ilObjGlossary::ilObjGlossary | ( | $a_id = 0 , |
|
$a_call_by_reference = true |
|||
) |
Constructor public.
Definition at line 26 of file class.ilObjGlossary.php.
References ilObject\ilObject().
ilObjGlossary::isActiveDownloads | ( | ) |
Definition at line 268 of file class.ilObjGlossary.php.
Referenced by update().
ilObjGlossary::isActiveGlossaryMenu | ( | ) |
Definition at line 258 of file class.ilObjGlossary.php.
Referenced by update().
ilObjGlossary::isVirtual | ( | ) |
returns true if glossary type is virtual (any mode)
Definition at line 135 of file class.ilObjGlossary.php.
Referenced by delete(), and getAllGlossaryIds().
|
staticprotected |
Lookup glossary property.
int | glossary id |
string | property |
Definition at line 230 of file class.ilObjGlossary.php.
References $ilDB.
Referenced by lookupSnippetLength().
|
static |
Lookup snippet length.
int | glossary id |
Definition at line 247 of file class.ilObjGlossary.php.
References lookup().
Referenced by ilGlossaryDefinition\shortenShortText().
ilObjGlossary::modifyExportIdentifier | ( | $a_tag, | |
$a_param, | |||
$a_value | |||
) |
Definition at line 895 of file class.ilObjGlossary.php.
References ilObject\getId().
ilObjGlossary::notify | ( | $a_event, | |
$a_ref_id, | |||
$a_parent_non_rbac_id, | |||
$a_node_id, | |||
$a_params = 0 |
|||
) |
notifys an object about an event occured Based on the event happend, each object may decide how it reacts.
public
string | event |
integer | reference id of object where the event occured |
array | passes optional paramters if required |
Reimplemented from ilObject.
Definition at line 964 of file class.ilObjGlossary.php.
References $_GET, and ilObject\getType().
ilObjGlossary::read | ( | ) |
read data of content object
Definition at line 63 of file class.ilObjGlossary.php.
References $ilDB, ilObject\getId(), setActiveDownloads(), setActiveGlossaryMenu(), setOnline(), setPresentationMode(), setPublicExportFile(), setSnippetLength(), setVirtualMode(), and ilUtil\yn2tf().
ilObjGlossary::setActiveDownloads | ( | $a_down | ) |
Definition at line 263 of file class.ilObjGlossary.php.
Referenced by read().
ilObjGlossary::setActiveGlossaryMenu | ( | $a_act_glo_menu | ) |
Definition at line 253 of file class.ilObjGlossary.php.
Referenced by read().
ilObjGlossary::setDescription | ( | $a_description | ) |
set description of glossary object
Reimplemented from ilObject.
Definition at line 97 of file class.ilObjGlossary.php.
ilObjGlossary::setOnline | ( | $a_online | ) |
Definition at line 199 of file class.ilObjGlossary.php.
Referenced by read().
ilObjGlossary::setPresentationMode | ( | $a_val | ) |
Set presentation mode.
string | presentation mode |
Definition at line 164 of file class.ilObjGlossary.php.
Referenced by create(), and read().
ilObjGlossary::setPublicExportFile | ( | $a_type, | |
$a_file | |||
) |
specify public export file for type
string | $a_type | type ("xml" / "html") |
string | $a_file | file name |
Definition at line 447 of file class.ilObjGlossary.php.
Referenced by read().
ilObjGlossary::setSnippetLength | ( | $a_val | ) |
Set snippet length.
int | snippet length |
Definition at line 184 of file class.ilObjGlossary.php.
Referenced by create(), and read().
ilObjGlossary::setTitle | ( | $a_title | ) |
set title of glossary object
Reimplemented from ilObject.
Definition at line 153 of file class.ilObjGlossary.php.
ilObjGlossary::setVirtualMode | ( | $a_mode | ) |
set glossary type (virtual: fixed/level/subtree, normal:none)
Definition at line 106 of file class.ilObjGlossary.php.
Referenced by read().
ilObjGlossary::update | ( | ) |
update object
Reimplemented from ilObject.
Definition at line 276 of file class.ilObjGlossary.php.
References $ilDB, ilObject\getId(), getPresentationMode(), getPublicExportFile(), getSnippetLength(), getVirtualMode(), isActiveDownloads(), isActiveGlossaryMenu(), ilUtil\tf2yn(), and ilObject\updateMetaData().