ILIAS
trunk Revision v11.0_alpha-3011-gc6b235a2e85
|
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) | |
setOnline (bool $a_online) | |
getOnline () | |
setRatingOverall (bool $a_rating) | |
setRating (bool $a_rating) | |
getRatingOverall () | |
setRatingPages (bool $a_rating) | |
getRatingPages () | |
setRatingAsBlock (bool $a_rating) | |
getRatingAsBlock () | |
setRatingForNewPages (bool $a_rating) | |
getRatingForNewPages () | |
setRatingCategories (bool $a_rating) | |
getRatingCategories () | |
setPublicNotes (bool $a_val) | |
getPublicNotes () | |
setStartPage (string $a_startpage) | |
getStartPage () | |
setShortTitle (string $a_shorttitle) | |
getShortTitle () | |
setIntroduction (string $a_introduction) | |
getIntroduction () | |
setPageToc (bool $a_val) | |
getPageToc () | |
setEmptyPageTemplate (bool $a_val) | |
getEmptyPageTemplate () | |
setLinkMetadataValues (bool $a_val) | |
getLinkMetadataValues () | |
create (bool $a_prevent_start_page_creation=false) | |
update (bool $a_prevent_start_page_creation=false) | |
read () | |
delete () | |
delete object and all related data More... | |
isImportantPage (int $a_page_id) | |
cloneObject (int $target_id, int $copy_id=0, bool $omit_tree=false) | |
getTemplateSelectionOnCreation (string $lang="-") | |
Get template selection on creation? If more than one template (including empty page template) is activated -> return true. More... | |
createWikiPage (string $a_page_title, int $a_template_page=0) | |
Create new wiki page. More... | |
initUserHTMLExport (bool $with_comments=false) | |
startUserHTMLExport (bool $with_comments=false) | |
getUserHTMLExportProgress (bool $with_comments=false) | |
Get user html export progress. More... | |
deliverUserHTMLExport (bool $with_comments=false) | |
decorateAdvMDValue (string $a_value) | |
Decorate adv md value. More... | |
isCommentsExportPossible () | |
Is export possible. 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, int $new_obj_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 | checkShortTitleAvailability (string $a_short_title) |
static | _lookupRatingOverall (int $a_wiki_id) |
Lookup whether rating is activated for whole object. More... | |
static | _lookupRating (int $a_wiki_id) |
Lookup whether rating is activated. More... | |
static | _lookupRatingCategories (int $a_wiki_id) |
Lookup whether rating categories are activated. More... | |
static | _lookupRatingAsBlock (int $a_wiki_id) |
Lookup whether rating side block is activated. More... | |
static | _lookupPublicNotes (int $a_wiki_id) |
Lookup whether public notes are activated. More... | |
static | _lookupLinkMetadataValues (int $a_wiki_id) |
Lookup whether metadata should be auto linked. More... | |
static | _lookupStartPage (int $a_wiki_id) |
static | writeStartPage (int $a_id, string $a_name) |
static | _performSearch (int $a_wiki_id, string $a_searchterm) |
Search in Wiki. More... | |
static | _lookupPageToc (int $a_wiki_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) |
static | getAdvMDSubItemTitle (int $a_obj_id, string $a_sub_type, int $a_sub_id) |
Protected Member Functions | |
updateInternalLinksOnCopy (array $map) | |
![]() | |
doMDUpdateListener (string $a_element) | |
beforeMDUpdateListener (string $a_element) | |
doCreateMetaData () | |
beforeCreateMetaData () | |
doUpdateMetaData () | |
beforeUpdateMetaData () | |
doDeleteMetaData () | |
beforeDeleteMetaData () | |
handleAutoRating () | |
hasAutoRating () | |
Static Private Member Functions | |
static | _lookup (int $a_wiki_id, string $a_field) |
Lookup a data field. More... | |
Additional Inherited Members | |
![]() | |
const | TITLE_LENGTH = 255 |
const | DESC_LENGTH = 128 |
const | LONG_DESC_LENGTH = 4000 |
const | TABLE_OBJECT_DATA = "object_data" |
array | $objectList |
string | $untranslatedTitle |
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 Class ilObjWiki
Definition at line 24 of file class.ilObjWiki.php.
ilObjWiki::__construct | ( | int | $a_id = 0 , |
bool | $a_call_by_reference = true |
||
) |
Definition at line 46 of file class.ilObjWiki.php.
References $DIC, ILIAS\GlobalScreen\Provider\__construct(), and ILIAS\Repository\user().
|
staticprivate |
Lookup a data field.
Definition at line 407 of file class.ilObjWiki.php.
|
static |
Lookup whether metadata should be auto linked.
Definition at line 398 of file class.ilObjWiki.php.
|
static |
Definition at line 492 of file class.ilObjWiki.php.
Referenced by ilWikiPageConfig\configureByObjectId().
|
static |
Lookup whether public notes are activated.
Definition at line 390 of file class.ilObjWiki.php.
Referenced by ilWikiPageGUI\getCommentsHTMLExport(), and ilWikiPageGUI\preview().
|
static |
Lookup whether rating is activated.
Definition at line 366 of file class.ilObjWiki.php.
Referenced by ilWikiFunctionsBlockGUI\getLegacyContent().
|
static |
Lookup whether rating side block is activated.
Definition at line 382 of file class.ilObjWiki.php.
|
static |
Lookup whether rating categories are activated.
Definition at line 374 of file class.ilObjWiki.php.
|
static |
Lookup whether rating is activated for whole object.
Definition at line 358 of file class.ilObjWiki.php.
|
static |
Definition at line 420 of file class.ilObjWiki.php.
Referenced by ilObjWikiGUI\getGotoLink(), and ilWikiFunctionsBlockGUI\getLegacyContent().
|
static |
Search in Wiki.
Definition at line 441 of file class.ilObjWiki.php.
Referenced by ilObjWikiGUI\performSearchObject(), and ilWikiPageGUI\searchWikiLinkAC().
|
static |
Definition at line 334 of file class.ilObjWiki.php.
ilObjWiki::cloneObject | ( | int | $target_id, |
int | $copy_id = 0 , |
||
bool | $omit_tree = false |
||
) |
Definition at line 498 of file class.ilObjWiki.php.
References ilAdvancedMDValues\_cloneValues(), ilCopyWizardOptions\_getInstance(), ilContainer\_lookupContainerSetting(), ilContainer\_writeContainerSetting(), ilObjectServiceSettingsGUI\CUSTOM_METADATA, ilRatingCategory\getAllForObject(), ilWikiPage\getAllWikiPages(), ILIAS\Survey\Mode\getId(), and ilWikiPage\getPageIdForTitle().
ilObjWiki::create | ( | bool | $a_prevent_start_page_creation = false | ) |
Definition at line 203 of file class.ilObjWiki.php.
ilObjWiki::createWikiPage | ( | string | $a_page_title, |
int | $a_template_page = 0 |
||
) |
Create new wiki page.
Definition at line 633 of file class.ilObjWiki.php.
References ILIAS\Survey\Mode\getId(), and ilWikiPageTemplate\TYPE_NEW_PAGES.
ilObjWiki::decorateAdvMDValue | ( | string | $a_value | ) |
Decorate adv md value.
string | $a_value | value |
Definition at line 746 of file class.ilObjWiki.php.
References $url, ilWikiPage\_wikiPageExists(), ilObjWikiGUI\getGotoLink(), and ILIAS\Survey\Mode\getId().
ilObjWiki::delete | ( | ) |
delete object and all related data
Reimplemented from ilObject.
Definition at line 310 of file class.ilObjWiki.php.
References $ilDB, ilWikiPage\deleteAllPagesOfWiki(), ILIAS\Survey\Mode\getId(), ilNotification\removeForObject(), and ilNotification\TYPE_WIKI.
ilObjWiki::deliverUserHTMLExport | ( | bool | $with_comments = false | ) |
Definition at line 730 of file class.ilObjWiki.php.
|
static |
Implements ilAdvancedMetaDataSubItems.
Definition at line 680 of file class.ilObjWiki.php.
References $lng, and ilWikiPage\lookupTitle().
ilObjWiki::getEmptyPageTemplate | ( | ) |
Definition at line 188 of file class.ilObjWiki.php.
References $empty_page_templ.
ilObjWiki::getIntroduction | ( | ) |
Definition at line 168 of file class.ilObjWiki.php.
References $introduction.
ilObjWiki::getLinkMetadataValues | ( | ) |
Definition at line 198 of file class.ilObjWiki.php.
References $link_md_values.
ilObjWiki::getOnline | ( | ) |
ilObjWiki::getPageToc | ( | ) |
ilObjWiki::getPublicNotes | ( | ) |
Definition at line 138 of file class.ilObjWiki.php.
References $public_notes.
ilObjWiki::getRatingAsBlock | ( | ) |
Definition at line 108 of file class.ilObjWiki.php.
References $rating_block.
ilObjWiki::getRatingCategories | ( | ) |
Definition at line 128 of file class.ilObjWiki.php.
References $rating_categories.
ilObjWiki::getRatingForNewPages | ( | ) |
Definition at line 118 of file class.ilObjWiki.php.
References $rating_new_pages.
ilObjWiki::getRatingOverall | ( | ) |
ilObjWiki::getRatingPages | ( | ) |
ilObjWiki::getShortTitle | ( | ) |
Definition at line 158 of file class.ilObjWiki.php.
References $shorttitle.
ilObjWiki::getStartPage | ( | ) |
ilObjWiki::getTemplateSelectionOnCreation | ( | string | $lang = "-" | ) |
Get template selection on creation? If more than one template (including empty page template) is activated -> return true.
Definition at line 618 of file class.ilObjWiki.php.
References $lang, ILIAS\Survey\Mode\getId(), ILIAS\Repository\int(), and ilWikiPageTemplate\TYPE_NEW_PAGES.
ilObjWiki::getUserHTMLExportProgress | ( | bool | $with_comments = false | ) |
Get user html export progress.
Definition at line 720 of file class.ilObjWiki.php.
ilObjWiki::initUserHTMLExport | ( | bool | $with_comments = false | ) |
Definition at line 696 of file class.ilObjWiki.php.
ilObjWiki::isCommentsExportPossible | ( | ) |
Is export possible.
Definition at line 759 of file class.ilObjWiki.php.
References ilSetting\get(), and ilPrivacySettings\getInstance().
ilObjWiki::isImportantPage | ( | int | $a_page_id | ) |
Definition at line 471 of file class.ilObjWiki.php.
ilObjWiki::read | ( | ) |
Reimplemented from ilObject.
Definition at line 279 of file class.ilObjWiki.php.
References $ilDB, and ILIAS\Survey\Mode\getId().
ilObjWiki::setEmptyPageTemplate | ( | bool | $a_val | ) |
Definition at line 183 of file class.ilObjWiki.php.
ilObjWiki::setIntroduction | ( | string | $a_introduction | ) |
Definition at line 163 of file class.ilObjWiki.php.
ilObjWiki::setLinkMetadataValues | ( | bool | $a_val | ) |
Definition at line 193 of file class.ilObjWiki.php.
ilObjWiki::setOnline | ( | bool | $a_online | ) |
Definition at line 66 of file class.ilObjWiki.php.
ilObjWiki::setPageToc | ( | bool | $a_val | ) |
Definition at line 173 of file class.ilObjWiki.php.
ilObjWiki::setPublicNotes | ( | bool | $a_val | ) |
Definition at line 133 of file class.ilObjWiki.php.
ilObjWiki::setRating | ( | bool | $a_rating | ) |
Definition at line 82 of file class.ilObjWiki.php.
References setRatingOverall().
ilObjWiki::setRatingAsBlock | ( | bool | $a_rating | ) |
Definition at line 103 of file class.ilObjWiki.php.
ilObjWiki::setRatingCategories | ( | bool | $a_rating | ) |
Definition at line 123 of file class.ilObjWiki.php.
ilObjWiki::setRatingForNewPages | ( | bool | $a_rating | ) |
Definition at line 113 of file class.ilObjWiki.php.
ilObjWiki::setRatingOverall | ( | bool | $a_rating | ) |
Definition at line 77 of file class.ilObjWiki.php.
Referenced by setRating().
ilObjWiki::setRatingPages | ( | bool | $a_rating | ) |
Definition at line 93 of file class.ilObjWiki.php.
ilObjWiki::setShortTitle | ( | string | $a_shorttitle | ) |
Definition at line 153 of file class.ilObjWiki.php.
ilObjWiki::setStartPage | ( | string | $a_startpage | ) |
Definition at line 143 of file class.ilObjWiki.php.
References ilWikiUtil\makeDbTitle().
ilObjWiki::startUserHTMLExport | ( | bool | $with_comments = false | ) |
Definition at line 706 of file class.ilObjWiki.php.
ilObjWiki::update | ( | bool | $a_prevent_start_page_creation = false | ) |
Definition at line 236 of file class.ilObjWiki.php.
|
protected |
Definition at line 593 of file class.ilObjWiki.php.
References ilInternalLink\_getTargetsOfSource().
|
static |
Definition at line 425 of file class.ilObjWiki.php.
References $DIC, $ilDB, and ilWikiUtil\makeDbTitle().
|
protected |
Definition at line 44 of file class.ilObjWiki.php.
|
protected |
Definition at line 27 of file class.ilObjWiki.php.
|
protected |
Definition at line 41 of file class.ilObjWiki.php.
Referenced by getEmptyPageTemplate().
|
protected |
Definition at line 30 of file class.ilObjWiki.php.
Referenced by getIntroduction().
|
protected |
Definition at line 42 of file class.ilObjWiki.php.
Referenced by getLinkMetadataValues().
|
protected |
Definition at line 26 of file class.ilObjWiki.php.
|
protected |
Definition at line 39 of file class.ilObjWiki.php.
Referenced by getOnline().
|
protected |
Definition at line 28 of file class.ilObjWiki.php.
Referenced by getPageToc().
|
protected |
Definition at line 40 of file class.ilObjWiki.php.
Referenced by getPublicNotes().
|
protected |
Definition at line 35 of file class.ilObjWiki.php.
Referenced by getRatingPages().
|
protected |
Definition at line 36 of file class.ilObjWiki.php.
Referenced by getRatingAsBlock().
|
protected |
Definition at line 33 of file class.ilObjWiki.php.
Referenced by getRatingCategories().
|
protected |
Definition at line 34 of file class.ilObjWiki.php.
Referenced by getRatingForNewPages().
|
protected |
Definition at line 37 of file class.ilObjWiki.php.
Referenced by getRatingOverall().
|
protected |
Definition at line 43 of file class.ilObjWiki.php.
|
protected |
Definition at line 31 of file class.ilObjWiki.php.
Referenced by getShortTitle().
|
protected |
Definition at line 32 of file class.ilObjWiki.php.
Referenced by getStartPage().
|
protected |
Definition at line 29 of file class.ilObjWiki.php.
|
protected |
Definition at line 38 of file class.ilObjWiki.php.