ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
ilObjWiki Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

+ Inheritance diagram for ilObjWiki:
+ Collaboration diagram for ilObjWiki:

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...
 
- Public Member Functions inherited from ilObject
 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 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 Public Member Functions inherited from ilObject
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)
 

Protected Member Functions

 updateInternalLinksOnCopy (array $map)
 
- Protected Member Functions inherited from ilObject
 doMDUpdateListener (string $a_element)
 
 beforeMDUpdateListener (string $a_element)
 
 doCreateMetaData ()
 
 beforeCreateMetaData ()
 
 doUpdateMetaData ()
 
 beforeUpdateMetaData ()
 
 doDeleteMetaData ()
 
 beforeDeleteMetaData ()
 
 handleAutoRating ()
 
 hasAutoRating ()
 

Protected Attributes

ILIAS Notes Service $notes
 
ILIAS Wiki InternalDomainService $domain
 
bool $page_toc = false
 
int $style_id = 0
 
string $introduction = ""
 
string $shorttitle = ""
 
string $startpage = ""
 
bool $rating_categories = false
 
bool $rating_new_pages = false
 
bool $rating = false
 
bool $rating_block = false
 
bool $rating_overall = false
 
ilObjUser $user
 
bool $online = false
 
bool $public_notes = true
 
bool $empty_page_templ = true
 
bool $link_md_values = false
 
ilSetting $setting
 
ILIAS Style Content DomainService $content_style_service
 
- Protected Attributes inherited from ilObject
ilLogger $obj_log
 
ILIAS $ilias
 
ilObjectDefinition $obj_definition
 
ilDBInterface $db
 
ilLogger $log
 
ilErrorHandling $error
 
ilTree $tree
 
ilAppEventHandler $app_event_handler
 
ilRbacAdmin $rbac_admin
 
ilRbacReview $rbac_review
 
ilObjUser $user
 
ilLanguage $lng
 
LOMServices $lom_services
 
bool $call_by_reference
 
int $max_title = self::TITLE_LENGTH
 
int $max_desc = self::DESC_LENGTH
 
bool $add_dots = true
 
int $ref_id = null
 
string $type = ""
 
string $title = ""
 
string $desc = ""
 
string $long_desc = ""
 
int $owner = 0
 
string $create_date = ""
 
string $last_update = ""
 
string $import_id = ""
 
bool $register = false
 

Static Private Member Functions

static _lookup (int $a_wiki_id, string $a_field)
 Lookup a data field. More...
 

Additional Inherited Members

- Data Fields inherited from ilObject
const TITLE_LENGTH = 255
 
const DESC_LENGTH = 128
 
const LONG_DESC_LENGTH = 4000
 
const TABLE_OBJECT_DATA = "object_data"
 
array $objectList
 
string $untranslatedTitle
 

Detailed Description

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

Author
Alexander Killing killi.nosp@m.ng@l.nosp@m.eifos.nosp@m..de

Definition at line 24 of file class.ilObjWiki.php.

Constructor & Destructor Documentation

◆ __construct()

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().

49  {
50  global $DIC;
51 
52  $this->domain = $DIC->wiki()->internal()->domain();
53 
54  $this->db = $DIC->database();
55  $this->user = $DIC->user();
56  $this->type = "wiki";
57  $this->setting = $DIC->settings();
58  $this->notes = $DIC->notes();
59  parent::__construct($a_id, $a_call_by_reference);
60 
61  $this->content_style_service = $DIC
62  ->contentStyle()
63  ->domain();
64  }
global $DIC
Definition: shib_login.php:25
__construct(Container $dic, ilPlugin $plugin)
+ Here is the call graph for this function:

Member Function Documentation

◆ _lookup()

static ilObjWiki::_lookup ( int  $a_wiki_id,
string  $a_field 
)
staticprivate

Lookup a data field.

Returns
mixed

Definition at line 401 of file class.ilObjWiki.php.

References $DIC, and $ilDB.

402  {
403  global $DIC;
404 
405  $ilDB = $DIC->database();
406 
407  $query = "SELECT $a_field FROM il_wiki_data WHERE id = " .
408  $ilDB->quote($a_wiki_id, "integer");
409  $set = $ilDB->query($query);
410  $rec = $ilDB->fetchAssoc($set);
411  return $rec[$a_field] ?? null;
412  }
global $DIC
Definition: shib_login.php:25

◆ _lookupLinkMetadataValues()

static ilObjWiki::_lookupLinkMetadataValues ( int  $a_wiki_id)
static

Lookup whether metadata should be auto linked.

Definition at line 392 of file class.ilObjWiki.php.

392  : bool
393  {
394  return (bool) self::_lookup($a_wiki_id, "link_md_values");
395  }

◆ _lookupPageToc()

static ilObjWiki::_lookupPageToc ( int  $a_wiki_id)
static

Definition at line 486 of file class.ilObjWiki.php.

Referenced by ilWikiPageConfig\configureByObjectId().

488  : bool {
489  return (bool) self::_lookup($a_wiki_id, "page_toc");
490  }
+ Here is the caller graph for this function:

◆ _lookupPublicNotes()

static ilObjWiki::_lookupPublicNotes ( int  $a_wiki_id)
static

Lookup whether public notes are activated.

Definition at line 384 of file class.ilObjWiki.php.

Referenced by ilWikiPageGUI\addHeaderAction(), ilWikiPageGUI\getCommentsHTMLExport(), and ilWikiPageGUI\preview().

384  : bool
385  {
386  return (bool) self::_lookup($a_wiki_id, "public_notes");
387  }
+ Here is the caller graph for this function:

◆ _lookupRating()

static ilObjWiki::_lookupRating ( int  $a_wiki_id)
static

Lookup whether rating is activated.

Definition at line 360 of file class.ilObjWiki.php.

Referenced by ilWikiFunctionsBlockGUI\getLegacyContent(), and ilObjWikiGUI\renderSideBlock().

360  : bool
361  {
362  return (bool) self::_lookup($a_wiki_id, "rating");
363  }
+ Here is the caller graph for this function:

◆ _lookupRatingAsBlock()

static ilObjWiki::_lookupRatingAsBlock ( int  $a_wiki_id)
static

Lookup whether rating side block is activated.

Definition at line 376 of file class.ilObjWiki.php.

376  : bool
377  {
378  return (bool) self::_lookup($a_wiki_id, "rating_side");
379  }

◆ _lookupRatingCategories()

static ilObjWiki::_lookupRatingCategories ( int  $a_wiki_id)
static

Lookup whether rating categories are activated.

Definition at line 368 of file class.ilObjWiki.php.

Referenced by ilObjWikiGUI\renderSideBlock().

368  : bool
369  {
370  return (bool) self::_lookup($a_wiki_id, "rating_ext");
371  }
+ Here is the caller graph for this function:

◆ _lookupRatingOverall()

static ilObjWiki::_lookupRatingOverall ( int  $a_wiki_id)
static

Lookup whether rating is activated for whole object.

Definition at line 352 of file class.ilObjWiki.php.

Referenced by ilWikiPageGUI\addHeaderAction().

352  : bool
353  {
354  return (bool) self::_lookup($a_wiki_id, "rating_overall");
355  }
+ Here is the caller graph for this function:

◆ _lookupStartPage()

static ilObjWiki::_lookupStartPage ( int  $a_wiki_id)
static

Definition at line 414 of file class.ilObjWiki.php.

Referenced by ilObjWikiGUI\getGotoLink(), ilWikiFunctionsBlockGUI\getLegacyContent(), and ilWikiPage\rename().

414  : string
415  {
416  return (string) self::_lookup($a_wiki_id, "startpage");
417  }
+ Here is the caller graph for this function:

◆ _performSearch()

static ilObjWiki::_performSearch ( int  $a_wiki_id,
string  $a_searchterm 
)
static

Search in Wiki.

Definition at line 435 of file class.ilObjWiki.php.

References $r, and ilObjectSearchFactory\_getWikiContentSearchInstance().

Referenced by ilObjWikiGUI\performSearchObject(), and ilWikiPageGUI\searchWikiLinkAC().

438  : array {
439  // query parser
440  $query_parser = new ilQueryParser($a_searchterm);
441  $query_parser->setCombination("or");
442  $query_parser->parse();
443 
444  $search_result = new ilSearchResult();
445  if ($query_parser->validate()) {
446  $wiki_search = ilObjectSearchFactory::_getWikiContentSearchInstance($query_parser);
447  $wiki_search->setFilter(array('wpg'));
448  $r = $wiki_search->performSearch();
449  $search_result->mergeEntries($r);
450  }
451 
452  $entries = $search_result->getEntries();
453 
454  $found_pages = array();
455  foreach ($entries as $entry) {
456  if ($entry["obj_id"] == $a_wiki_id && is_array($entry["child"])) {
457  foreach ($entry["child"] as $child) {
458  $found_pages[] = array("page_id" => $child);
459  }
460  }
461  }
462  return $found_pages;
463  }
static _getWikiContentSearchInstance(ilQueryParser $query_parser)
$r
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ checkShortTitleAvailability()

static ilObjWiki::checkShortTitleAvailability ( string  $a_short_title)
static

Definition at line 328 of file class.ilObjWiki.php.

References $DIC, $ilDB, and $res.

330  : bool {
331  global $DIC;
332  $ilDB = $DIC->database();
333 
334  if ($a_short_title === "") {
335  return true;
336  }
337  $res = $ilDB->queryF(
338  "SELECT id FROM il_wiki_data WHERE short = %s",
339  array("text"),
340  array($a_short_title)
341  );
342  if ($ilDB->fetchAssoc($res)) {
343  return false;
344  }
345 
346  return true;
347  }
$res
Definition: ltiservices.php:69
global $DIC
Definition: shib_login.php:25

◆ cloneObject()

ilObjWiki::cloneObject ( int  $target_id,
int  $copy_id = 0,
bool  $omit_tree = false 
)

Definition at line 492 of file class.ilObjWiki.php.

References ilAdvancedMDValues\_cloneValues(), ilCopyWizardOptions\_getInstance(), ilContainer\_lookupContainerSetting(), ilContainer\_writeContainerSetting(), ilObjectServiceSettingsGUI\CUSTOM_METADATA, ilRatingCategory\getAllForObject(), ilWikiPage\getAllWikiPages(), ilObject\getId(), getIntroduction(), getOnline(), ilWikiPage\getPageIdForTitle(), getPageToc(), getPublicNotes(), getRatingAsBlock(), getRatingCategories(), getRatingForNewPages(), getRatingOverall(), getRatingPages(), ilObject\getRefId(), getShortTitle(), getStartPage(), ILIAS\Repository\int(), and updateInternalLinksOnCopy().

492  : ?ilObject
493  {
494  $new_obj = parent::cloneObject($target_id, $copy_id, $omit_tree);
495 
496  // Custom meta data activation is stored in a container setting
498  $new_obj->getId(),
501  $this->getId(),
503  0
504  )
505  );
506 
507  //copy online status if object is not the root copy object
508  $cp_options = ilCopyWizardOptions::_getInstance($copy_id);
509 
510  if (!$cp_options->isRootNode($this->getRefId())) {
511  $new_obj->setOnline($this->getOnline());
512  }
513 
514  //$new_obj->setTitle($this->getTitle()); // see #20074
515  $new_obj->setStartPage($this->getStartPage());
516  $new_obj->setShortTitle($this->getShortTitle());
517  $new_obj->setRatingOverall($this->getRatingOverall());
518  $new_obj->setRatingPages($this->getRatingPages());
519  $new_obj->setRatingAsBlock($this->getRatingAsBlock());
520  $new_obj->setRatingForNewPages($this->getRatingForNewPages());
521  $new_obj->setRatingCategories($this->getRatingCategories());
522  $new_obj->setPublicNotes($this->getPublicNotes());
523  $new_obj->setIntroduction($this->getIntroduction());
524  $new_obj->setPageToc($this->getPageToc());
525  $new_obj->update();
526  $this->content_style_service
527  ->styleForRefId($this->getRefId())
528  ->cloneTo($new_obj->getId());
529 
530  // copy content
531  $pages = ilWikiPage::getAllWikiPages($this->getId());
532  if (count($pages) > 0) {
533  // if we have any pages, delete the start page first
534  $pg_id = ilWikiPage::getPageIdForTitle($new_obj->getId(), $new_obj->getStartPage());
535  $start_page = new ilWikiPage($pg_id);
536  $start_page->delete();
537  }
538  $map = array();
539  foreach ($pages as $p) {
540  $page = new ilWikiPage($p["id"]);
541  $page->setWikiRefId($this->getRefId());
542  $new_page = new ilWikiPage();
543  $new_page->setWikiRefId($new_obj->getRefId());
544  $new_page->setTitle($page->getTitle());
545  $new_page->setWikiId($new_obj->getId());
546  $new_page->setTitle($page->getTitle());
547  $new_page->setBlocked($page->getBlocked());
548  $new_page->setRating($page->getRating());
549  $new_page->hideAdvancedMetadata($page->isAdvancedMetadataHidden());
550  $new_page->create();
551 
552  $page->copy($new_page->getId(), "", 0, true);
553  //$new_page->setXMLContent($page->copyXMLContent(true));
554  //$new_page->buildDom(true);
555  //$new_page->update();
556  $map[$p["id"]] = $new_page->getId();
557 
559  $copy_id,
560  $this->getId(),
561  $new_obj->getId(),
562  "wpg",
563  (int) $p["id"],
564  $new_page->getId(),
565  );
566  }
567 
568  // copy important pages
569  $imp_pages_manager = $this->domain->importantPage($this->getRefId());
570  $imp_pages_manager->cloneTo($new_obj->getId(), $map);
571  $this->updateInternalLinksOnCopy($map);
572 
573  // copy rating categories
574  foreach (ilRatingCategory::getAllForObject($this->getId()) as $rc) {
575  $new_rc = new ilRatingCategory();
576  $new_rc->setParentId($new_obj->getId());
577  $new_rc->setTitle((string) $rc["title"]);
578  $new_rc->setDescription((string) $rc["description"]);
579  $new_rc->save();
580  }
581 
582  return $new_obj;
583  }
updateInternalLinksOnCopy(array $map)
static _lookupContainerSetting(int $a_id, string $a_keyword, string $a_default_value=null)
static getAllForObject(int $a_parent_obj_id)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static _writeContainerSetting(int $a_id, string $a_keyword, string $a_value)
static _cloneValues(int $copy_id, int $a_source_id, int $a_target_id, ?string $a_sub_type=null, ?int $a_source_sub_id=null, ?int $a_target_sub_id=null)
Clone Advanced Meta Data.
static getPageIdForTitle(int $a_wiki_id, string $a_title, string $lang="-")
Get wiki page object for id and title.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static _getInstance(int $a_copy_id)
static getAllWikiPages(int $a_wiki_id, string $lang="-")
+ Here is the call graph for this function:

◆ create()

ilObjWiki::create ( bool  $a_prevent_start_page_creation = false)

Definition at line 203 of file class.ilObjWiki.php.

References ilObject\$db, $id, $ilDB, getEmptyPageTemplate(), ilObject\getId(), getIntroduction(), getOnline(), getPublicNotes(), getRatingPages(), getShortTitle(), and getStartPage().

205  : int {
206  $ilDB = $this->db;
207 
208  $id = parent::create();
209 
210  $ilDB->insert("il_wiki_data", array(
211  "id" => array("integer", $this->getId()),
212  "is_online" => array("integer", (int) $this->getOnline()),
213  "startpage" => array("text", $this->getStartPage()),
214  "short" => array("text", $this->getShortTitle()),
215  "rating" => array("integer", (int) $this->getRatingPages()),
216  "public_notes" => array("integer", (int) $this->getPublicNotes()),
217  "introduction" => array("clob", $this->getIntroduction()),
218  "empty_page_templ" => array("integer", (int) $this->getEmptyPageTemplate()),
219  ));
220 
221  // create start page
222  if ($this->getStartPage() !== "" && !$a_prevent_start_page_creation) {
223  $start_page = new ilWikiPage();
224  $start_page->setWikiId($this->getId());
225  $start_page->setTitle($this->getStartPage());
226  $start_page->create();
227  }
228 
229  $this->notes->domain()->activateComments($this->getId(), $this->getPublicNotes());
230 
231  return $id;
232  }
ilDBInterface $db
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:24
+ Here is the call graph for this function:

◆ createWikiPage()

ilObjWiki::createWikiPage ( string  $a_page_title,
int  $a_template_page = 0 
)

Create new wiki page.

Definition at line 625 of file class.ilObjWiki.php.

References ilAdvancedMDValues\_cloneValues(), getEmptyPageTemplate(), ilObject\getId(), getRatingForNewPages(), getRatingPages(), ilObject\getRefId(), ilWikiUtil\makeDbTitle(), and ilWikiPageTemplate\TYPE_NEW_PAGES.

628  : ilWikiPage {
629  // check if template has to be used
630  if ($a_template_page === 0) {
631  if (!$this->getEmptyPageTemplate()) {
632  $wt = new ilWikiPageTemplate($this->getId());
633  $ts = $wt->getAllInfo(ilWikiPageTemplate::TYPE_NEW_PAGES);
634  if (count($ts) === 1) {
635  $t = current($ts);
636  $a_template_page = $t["wpage_id"];
637  }
638  }
639  }
640 
641  // create the page
642  $page = new ilWikiPage();
643  $page->setWikiId($this->getId());
644  $page->setTitle(ilWikiUtil::makeDbTitle($a_page_title));
645  if ($this->getRatingPages() && $this->getRatingForNewPages()) {
646  $page->setRating(true);
647  }
648 
649  // needed for notification
650  $page->setWikiRefId($this->getRefId());
651  $page->create();
652 
653  // copy template into new page
654  if ($a_template_page > 0) {
655  $orig = new ilWikiPage($a_template_page);
656  $orig->copy($page->getId());
657 
658  // #15718
660  0,
661  $this->getId(),
662  $this->getId(),
663  "wpg",
664  $a_template_page,
665  $page->getId()
666  );
667  }
668 
669  return $page;
670  }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static _cloneValues(int $copy_id, int $a_source_id, int $a_target_id, ?string $a_sub_type=null, ?int $a_source_sub_id=null, ?int $a_target_sub_id=null)
Clone Advanced Meta Data.
static makeDbTitle(string $a_par)
+ Here is the call graph for this function:

◆ decorateAdvMDValue()

ilObjWiki::decorateAdvMDValue ( string  $a_value)

Decorate adv md value.

Parameters
string$a_valuevalue
Returns
string decorated value (includes HTML)

Definition at line 738 of file class.ilObjWiki.php.

References $url, ilWikiPage\_wikiPageExists(), ilObjWikiGUI\getGotoLink(), ilObject\getId(), and ilObject\getRefId().

738  : string
739  {
740  if (ilWikiPage::_wikiPageExists($this->getId(), $a_value)) {
741  $url = ilObjWikiGUI::getGotoLink($this->getRefId(), $a_value);
742  return "<a href='" . $url . "'>" . $a_value . "</a>";
743  }
744 
745  return $a_value;
746  }
$url
Definition: shib_logout.php:63
static getGotoLink(int $a_ref_id, string $a_page="", string $lang="-")
static _wikiPageExists(int $a_wiki_id, string $a_title, string $lang="-")
+ Here is the call graph for this function:

◆ delete()

ilObjWiki::delete ( )

delete object and all related data

Definition at line 306 of file class.ilObjWiki.php.

References ilObject\$db, $ilDB, ilWikiPage\deleteAllPagesOfWiki(), ilObject\getId(), ilNotification\removeForObject(), and ilNotification\TYPE_WIKI.

306  : bool
307  {
308  $ilDB = $this->db;
309 
310  // always call parent delete function first!!
311  if (!parent::delete()) {
312  return false;
313  }
314 
315  // delete record of table il_wiki_data
316  $query = "DELETE FROM il_wiki_data" .
317  " WHERE id = " . $ilDB->quote($this->getId(), "integer");
318  $ilDB->manipulate($query);
319 
320  // remove all notifications
322 
324 
325  return true;
326  }
ilDBInterface $db
static deleteAllPagesOfWiki(int $a_wiki_id)
static removeForObject(int $type, int $id)
Remove all notifications for given object.
+ Here is the call graph for this function:

◆ deliverUserHTMLExport()

ilObjWiki::deliverUserHTMLExport ( bool  $with_comments = false)

Definition at line 722 of file class.ilObjWiki.php.

References ilObject\$db, $ilDB, and $user.

724  : void {
725  $ilDB = $this->db;
726  $ilUser = $this->user;
727 
728  $user_export = new ilWikiUserHTMLExport($this, $ilDB, $ilUser, $with_comments);
729  $user_export->deliverFile();
730  }
Class manages user html export.
ilObjUser $user
ilDBInterface $db

◆ getAdvMDSubItemTitle()

static ilObjWiki::getAdvMDSubItemTitle ( int  $a_obj_id,
string  $a_sub_type,
int  $a_sub_id 
)
static

Implements ilAdvancedMetaDataSubItems.

Definition at line 672 of file class.ilObjWiki.php.

References $DIC, ilObject\$lng, ilLanguage\loadLanguageModule(), ilWikiPage\lookupTitle(), and ilLanguage\txt().

676  : string {
677  global $DIC;
678 
679  $lng = $DIC->language();
680 
681  if ($a_sub_type === "wpg") {
682  $lng->loadLanguageModule("wiki");
683  return $lng->txt("wiki_wpg") . ' "' . ilWikiPage::lookupTitle($a_sub_id) . '"';
684  }
685  return "";
686  }
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
static lookupTitle(int $a_page_id, string $lang="-")
loadLanguageModule(string $a_module)
Load language module.
ilLanguage $lng
global $DIC
Definition: shib_login.php:25
+ Here is the call graph for this function:

◆ getEmptyPageTemplate()

ilObjWiki::getEmptyPageTemplate ( )

Definition at line 188 of file class.ilObjWiki.php.

References $empty_page_templ.

Referenced by create(), createWikiPage(), getTemplateSelectionOnCreation(), and update().

188  : bool
189  {
191  }
bool $empty_page_templ
+ Here is the caller graph for this function:

◆ getIntroduction()

ilObjWiki::getIntroduction ( )

Definition at line 168 of file class.ilObjWiki.php.

References $introduction.

Referenced by cloneObject(), create(), and update().

168  : string
169  {
170  return $this->introduction;
171  }
string $introduction
+ Here is the caller graph for this function:

◆ getLinkMetadataValues()

ilObjWiki::getLinkMetadataValues ( )

Definition at line 198 of file class.ilObjWiki.php.

References $link_md_values.

Referenced by update().

198  : bool
199  {
200  return $this->link_md_values;
201  }
bool $link_md_values
+ Here is the caller graph for this function:

◆ getOnline()

ilObjWiki::getOnline ( )

Definition at line 71 of file class.ilObjWiki.php.

References $online.

Referenced by cloneObject(), create(), and update().

71  : bool
72  {
73  return $this->online;
74  }
+ Here is the caller graph for this function:

◆ getPageToc()

ilObjWiki::getPageToc ( )

Definition at line 178 of file class.ilObjWiki.php.

References $page_toc.

Referenced by cloneObject(), and update().

178  : bool
179  {
180  return $this->page_toc;
181  }
+ Here is the caller graph for this function:

◆ getPublicNotes()

ilObjWiki::getPublicNotes ( )

Definition at line 138 of file class.ilObjWiki.php.

References $public_notes.

Referenced by cloneObject(), create(), isCommentsExportPossible(), and update().

138  : bool
139  {
140  return $this->public_notes;
141  }
bool $public_notes
+ Here is the caller graph for this function:

◆ getRatingAsBlock()

ilObjWiki::getRatingAsBlock ( )

Definition at line 108 of file class.ilObjWiki.php.

References $rating_block.

Referenced by cloneObject(), and update().

108  : bool
109  {
110  return $this->rating_block;
111  }
bool $rating_block
+ Here is the caller graph for this function:

◆ getRatingCategories()

ilObjWiki::getRatingCategories ( )

Definition at line 128 of file class.ilObjWiki.php.

References $rating_categories.

Referenced by cloneObject(), and update().

128  : bool
129  {
131  }
bool $rating_categories
+ Here is the caller graph for this function:

◆ getRatingForNewPages()

ilObjWiki::getRatingForNewPages ( )

Definition at line 118 of file class.ilObjWiki.php.

References $rating_new_pages.

Referenced by cloneObject(), createWikiPage(), and update().

118  : bool
119  {
121  }
bool $rating_new_pages
+ Here is the caller graph for this function:

◆ getRatingOverall()

ilObjWiki::getRatingOverall ( )

Definition at line 87 of file class.ilObjWiki.php.

References $rating_overall.

Referenced by cloneObject(), and update().

87  : bool
88  {
89  return $this->rating_overall;
90  }
bool $rating_overall
+ Here is the caller graph for this function:

◆ getRatingPages()

ilObjWiki::getRatingPages ( )

Definition at line 98 of file class.ilObjWiki.php.

References $rating.

Referenced by cloneObject(), create(), createWikiPage(), and update().

98  : bool
99  {
100  return $this->rating;
101  }
+ Here is the caller graph for this function:

◆ getShortTitle()

ilObjWiki::getShortTitle ( )

Definition at line 158 of file class.ilObjWiki.php.

References $shorttitle.

Referenced by cloneObject(), create(), and update().

158  : string
159  {
160  return $this->shorttitle;
161  }
string $shorttitle
+ Here is the caller graph for this function:

◆ getStartPage()

ilObjWiki::getStartPage ( )

Definition at line 148 of file class.ilObjWiki.php.

References $startpage.

Referenced by cloneObject(), create(), and update().

148  : string
149  {
150  return $this->startpage;
151  }
string $startpage
+ Here is the caller graph for this function:

◆ getTemplateSelectionOnCreation()

ilObjWiki::getTemplateSelectionOnCreation ( string  $lang = "-")

Get template selection on creation? If more than one template (including empty page template) is activated -> return true.

Returns
bool true, if manual template selection needed

Definition at line 610 of file class.ilObjWiki.php.

References getEmptyPageTemplate(), ilObject\getId(), ILIAS\Repository\int(), and ilWikiPageTemplate\TYPE_NEW_PAGES.

610  : bool
611  {
612  $num = (int) $this->getEmptyPageTemplate();
613  $wt = new ilWikiPageTemplate($this->getId());
614  $ts = $wt->getAllInfo(ilWikiPageTemplate::TYPE_NEW_PAGES, $lang);
615  $num += count($ts);
616  if ($num > 1) {
617  return true;
618  }
619  return false;
620  }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
+ Here is the call graph for this function:

◆ getUserHTMLExportProgress()

ilObjWiki::getUserHTMLExportProgress ( bool  $with_comments = false)

Get user html export progress.

Returns
array progress info

Definition at line 712 of file class.ilObjWiki.php.

References ilObject\$db, $ilDB, and $user.

714  : array {
715  $ilDB = $this->db;
716  $ilUser = $this->user;
717 
718  $user_export = new ilWikiUserHTMLExport($this, $ilDB, $ilUser, $with_comments);
719  return $user_export->getProgress();
720  }
Class manages user html export.
ilObjUser $user
ilDBInterface $db

◆ initUserHTMLExport()

ilObjWiki::initUserHTMLExport ( bool  $with_comments = false)

Definition at line 688 of file class.ilObjWiki.php.

References ilObject\$db, $ilDB, and $user.

690  : void {
691  $ilDB = $this->db;
692  $ilUser = $this->user;
693 
694  $user_export = new ilWikiUserHTMLExport($this, $ilDB, $ilUser, $with_comments);
695  $user_export->initUserHTMLExport();
696  }
Class manages user html export.
ilObjUser $user
ilDBInterface $db

◆ isCommentsExportPossible()

ilObjWiki::isCommentsExportPossible ( )

Is export possible.

Definition at line 751 of file class.ilObjWiki.php.

References $setting, ilSetting\get(), ilPrivacySettings\getInstance(), and getPublicNotes().

751  : bool
752  {
754  $privacy = ilPrivacySettings::getInstance();
755  if ($setting->get("disable_comments")) {
756  return false;
757  }
758 
759  if (!$this->getPublicNotes()) {
760  return false;
761  }
762  if (!$privacy->enabledCommentsExport()) {
763  return false;
764  }
765  return true;
766  }
get(string $a_keyword, ?string $a_default_value=null)
get setting
ilSetting $setting
+ Here is the call graph for this function:

◆ isImportantPage()

ilObjWiki::isImportantPage ( int  $a_page_id)

Definition at line 465 of file class.ilObjWiki.php.

References ilObject\$db, and $ilDB.

467  : bool {
468  $ilDB = $this->db;
469 
470  $set = $ilDB->query(
471  "SELECT * FROM il_wiki_imp_pages WHERE " .
472  " wiki_id = " . $ilDB->quote($this->getId(), "integer") . " AND " .
473  " page_id = " . $ilDB->quote($a_page_id, "integer")
474  );
475  if ($ilDB->fetchAssoc($set)) {
476  return true;
477  }
478  return false;
479  }
ilDBInterface $db

◆ read()

ilObjWiki::read ( )

Definition at line 275 of file class.ilObjWiki.php.

References ilObject\$db, $ilDB, ilObject\getId(), setEmptyPageTemplate(), setIntroduction(), setLinkMetadataValues(), setOnline(), setPageToc(), setPublicNotes(), setRatingAsBlock(), setRatingCategories(), setRatingForNewPages(), setRatingOverall(), setRatingPages(), setShortTitle(), and setStartPage().

275  : void
276  {
277  $ilDB = $this->db;
278 
279  parent::read();
280 
281  $query = "SELECT * FROM il_wiki_data WHERE id = " .
282  $ilDB->quote($this->getId(), "integer");
283  $set = $ilDB->query($query);
284  $rec = $ilDB->fetchAssoc($set);
285 
286  $this->setOnline((bool) $rec["is_online"]);
287  $this->setStartPage((string) $rec["startpage"]);
288  $this->setShortTitle((string) $rec["short"]);
289  $this->setRatingOverall((bool) $rec["rating_overall"]);
290  $this->setRatingPages((bool) $rec["rating"]);
291  $this->setRatingAsBlock((bool) $rec["rating_side"]);
292  $this->setRatingForNewPages((bool) $rec["rating_new"]);
293  $this->setRatingCategories((bool) $rec["rating_ext"]);
294  //$this->setPublicNotes((bool) $rec["public_notes"]);
295  $this->setIntroduction((string) $rec["introduction"]);
296  $this->setPageToc((bool) $rec["page_toc"]);
297  $this->setEmptyPageTemplate((bool) $rec["empty_page_templ"]);
298  $this->setLinkMetadataValues((bool) $rec["link_md_values"]);
299  $this->setPublicNotes($this->notes->domain()->commentsActive($this->getId()));
300  }
setOnline(bool $a_online)
setStartPage(string $a_startpage)
setPageToc(bool $a_val)
setRatingOverall(bool $a_rating)
setRatingAsBlock(bool $a_rating)
setLinkMetadataValues(bool $a_val)
setRatingCategories(bool $a_rating)
setPublicNotes(bool $a_val)
ilDBInterface $db
setEmptyPageTemplate(bool $a_val)
setRatingForNewPages(bool $a_rating)
setIntroduction(string $a_introduction)
setShortTitle(string $a_shorttitle)
setRatingPages(bool $a_rating)
+ Here is the call graph for this function:

◆ setEmptyPageTemplate()

ilObjWiki::setEmptyPageTemplate ( bool  $a_val)

Definition at line 183 of file class.ilObjWiki.php.

Referenced by read().

183  : void
184  {
185  $this->empty_page_templ = $a_val;
186  }
+ Here is the caller graph for this function:

◆ setIntroduction()

ilObjWiki::setIntroduction ( string  $a_introduction)

Definition at line 163 of file class.ilObjWiki.php.

Referenced by read().

163  : void
164  {
165  $this->introduction = $a_introduction;
166  }
+ Here is the caller graph for this function:

◆ setLinkMetadataValues()

ilObjWiki::setLinkMetadataValues ( bool  $a_val)

Definition at line 193 of file class.ilObjWiki.php.

Referenced by read().

193  : void
194  {
195  $this->link_md_values = $a_val;
196  }
+ Here is the caller graph for this function:

◆ setOnline()

ilObjWiki::setOnline ( bool  $a_online)

Definition at line 66 of file class.ilObjWiki.php.

Referenced by read().

66  : void
67  {
68  $this->online = $a_online;
69  }
+ Here is the caller graph for this function:

◆ setPageToc()

ilObjWiki::setPageToc ( bool  $a_val)

Definition at line 173 of file class.ilObjWiki.php.

Referenced by read().

173  : void
174  {
175  $this->page_toc = $a_val;
176  }
+ Here is the caller graph for this function:

◆ setPublicNotes()

ilObjWiki::setPublicNotes ( bool  $a_val)

Definition at line 133 of file class.ilObjWiki.php.

Referenced by read().

133  : void
134  {
135  $this->public_notes = $a_val;
136  }
+ Here is the caller graph for this function:

◆ setRating()

ilObjWiki::setRating ( bool  $a_rating)

Definition at line 82 of file class.ilObjWiki.php.

References setRatingOverall().

82  : void // this is called by ilObject->handleAutoRating
83  {
84  $this->setRatingOverall($a_rating);
85  }
setRatingOverall(bool $a_rating)
+ Here is the call graph for this function:

◆ setRatingAsBlock()

ilObjWiki::setRatingAsBlock ( bool  $a_rating)

Definition at line 103 of file class.ilObjWiki.php.

Referenced by read().

103  : void
104  {
105  $this->rating_block = $a_rating;
106  }
+ Here is the caller graph for this function:

◆ setRatingCategories()

ilObjWiki::setRatingCategories ( bool  $a_rating)

Definition at line 123 of file class.ilObjWiki.php.

Referenced by read().

123  : void
124  {
125  $this->rating_categories = $a_rating;
126  }
+ Here is the caller graph for this function:

◆ setRatingForNewPages()

ilObjWiki::setRatingForNewPages ( bool  $a_rating)

Definition at line 113 of file class.ilObjWiki.php.

Referenced by read().

113  : void
114  {
115  $this->rating_new_pages = $a_rating;
116  }
+ Here is the caller graph for this function:

◆ setRatingOverall()

ilObjWiki::setRatingOverall ( bool  $a_rating)

Definition at line 77 of file class.ilObjWiki.php.

Referenced by read(), and setRating().

77  : void
78  {
79  $this->rating_overall = $a_rating;
80  }
+ Here is the caller graph for this function:

◆ setRatingPages()

ilObjWiki::setRatingPages ( bool  $a_rating)

Definition at line 93 of file class.ilObjWiki.php.

Referenced by read().

93  : void
94  {
95  $this->rating = $a_rating;
96  }
+ Here is the caller graph for this function:

◆ setShortTitle()

ilObjWiki::setShortTitle ( string  $a_shorttitle)

Definition at line 153 of file class.ilObjWiki.php.

Referenced by read().

153  : void
154  {
155  $this->shorttitle = $a_shorttitle;
156  }
+ Here is the caller graph for this function:

◆ setStartPage()

ilObjWiki::setStartPage ( string  $a_startpage)

Definition at line 143 of file class.ilObjWiki.php.

References ilWikiUtil\makeDbTitle().

Referenced by read().

143  : void
144  {
145  $this->startpage = ilWikiUtil::makeDbTitle($a_startpage);
146  }
static makeDbTitle(string $a_par)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ startUserHTMLExport()

ilObjWiki::startUserHTMLExport ( bool  $with_comments = false)

Definition at line 698 of file class.ilObjWiki.php.

References ilObject\$db, $ilDB, and $user.

700  : void {
701  $ilDB = $this->db;
702  $ilUser = $this->user;
703 
704  $user_export = new ilWikiUserHTMLExport($this, $ilDB, $ilUser, $with_comments);
705  $user_export->startUserHTMLExport();
706  }
Class manages user html export.
ilObjUser $user
ilDBInterface $db

◆ update()

ilObjWiki::update ( bool  $a_prevent_start_page_creation = false)

Definition at line 234 of file class.ilObjWiki.php.

References ilObject\$db, $ilDB, ilWikiPage\exists(), getEmptyPageTemplate(), ilObject\getId(), getIntroduction(), getLinkMetadataValues(), getOnline(), getPageToc(), getPublicNotes(), getRatingAsBlock(), getRatingCategories(), getRatingForNewPages(), getRatingOverall(), getRatingPages(), ilObject\getRefId(), getShortTitle(), and getStartPage().

236  : bool {
237  $ilDB = $this->db;
238 
239  if (!parent::update()) {
240  return false;
241  }
242 
243  $ilDB->update("il_wiki_data", array(
244  "is_online" => array("integer", $this->getOnline()),
245  "startpage" => array("text", $this->getStartPage()),
246  "short" => array("text", $this->getShortTitle()),
247  "rating_overall" => array("integer", $this->getRatingOverall()),
248  "rating" => array("integer", $this->getRatingPages()),
249  "rating_side" => array("integer", $this->getRatingAsBlock()), // #13455
250  "rating_new" => array("integer", $this->getRatingForNewPages()),
251  "rating_ext" => array("integer", $this->getRatingCategories()),
252  "public_notes" => array("integer", $this->getPublicNotes()),
253  "introduction" => array("clob", $this->getIntroduction()),
254  "page_toc" => array("integer", $this->getPageToc()),
255  "link_md_values" => array("integer", $this->getLinkMetadataValues()),
256  "empty_page_templ" => array("integer", $this->getEmptyPageTemplate())
257  ), array(
258  "id" => array("integer", $this->getId())
259  ));
260 
261  // check whether start page exists
262  if (!ilWikiPage::exists($this->getId(), $this->getStartPage())
263  && !$a_prevent_start_page_creation) {
264  $start_page = new ilWikiPage();
265  $start_page->setWikiId($this->getId());
266  $start_page->setTitle($this->getStartPage());
267  $start_page->setWikiRefId($this->getRefId());
268  $start_page->create();
269  }
270  $this->notes->domain()->activateComments($this->getId(), $this->getPublicNotes());
271 
272  return true;
273  }
static exists(int $a_wiki_id, string $a_title, string $lang="-")
Checks whether a page with given title exists.
ilDBInterface $db
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
+ Here is the call graph for this function:

◆ updateInternalLinksOnCopy()

ilObjWiki::updateInternalLinksOnCopy ( array  $map)
protected

Definition at line 585 of file class.ilObjWiki.php.

References ilInternalLink\_getTargetsOfSource().

Referenced by cloneObject().

585  : void
586  {
587  foreach ($map as $old_page_id => $new_page_id) {
588  // get links with targets inside the wiki
590  "wpg:pg",
591  $old_page_id,
592  "-"
593  );
594  foreach ($targets as $t) {
595  if ((int) $t["inst"] === 0 && in_array($t["type"], ["wpag", "wpage"]) && isset($map[(int) $t["id"]])) {
596  $new_page = new ilWikiPage($new_page_id);
597  if ($new_page->moveIntLinks([$t["id"] => $map[(int) $t["id"]]])) {
598  $new_page->update(true, true);
599  }
600  }
601  }
602  }
603  }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ writeStartPage()

static ilObjWiki::writeStartPage ( int  $a_id,
string  $a_name 
)
static

Definition at line 419 of file class.ilObjWiki.php.

References $DIC, $ilDB, and ilWikiUtil\makeDbTitle().

Referenced by ilWikiPage\rename().

419  : void
420  {
421  global $DIC;
422 
423  $ilDB = $DIC->database();
424 
425  $ilDB->manipulate(
426  "UPDATE il_wiki_data SET " .
427  " startpage = " . $ilDB->quote(ilWikiUtil::makeDbTitle($a_name), "text") .
428  " WHERE id = " . $ilDB->quote($a_id, "integer")
429  );
430  }
global $DIC
Definition: shib_login.php:25
static makeDbTitle(string $a_par)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Field Documentation

◆ $content_style_service

ILIAS Style Content DomainService ilObjWiki::$content_style_service
protected

Definition at line 44 of file class.ilObjWiki.php.

◆ $domain

ILIAS Wiki InternalDomainService ilObjWiki::$domain
protected

Definition at line 27 of file class.ilObjWiki.php.

◆ $empty_page_templ

bool ilObjWiki::$empty_page_templ = true
protected

Definition at line 41 of file class.ilObjWiki.php.

Referenced by getEmptyPageTemplate().

◆ $introduction

string ilObjWiki::$introduction = ""
protected

Definition at line 30 of file class.ilObjWiki.php.

Referenced by getIntroduction().

◆ $link_md_values

bool ilObjWiki::$link_md_values = false
protected

Definition at line 42 of file class.ilObjWiki.php.

Referenced by getLinkMetadataValues().

◆ $notes

ILIAS Notes Service ilObjWiki::$notes
protected

Definition at line 26 of file class.ilObjWiki.php.

◆ $online

bool ilObjWiki::$online = false
protected

Definition at line 39 of file class.ilObjWiki.php.

Referenced by getOnline().

◆ $page_toc

bool ilObjWiki::$page_toc = false
protected

Definition at line 28 of file class.ilObjWiki.php.

Referenced by getPageToc().

◆ $public_notes

bool ilObjWiki::$public_notes = true
protected

Definition at line 40 of file class.ilObjWiki.php.

Referenced by getPublicNotes().

◆ $rating

bool ilObjWiki::$rating = false
protected

Definition at line 35 of file class.ilObjWiki.php.

Referenced by getRatingPages().

◆ $rating_block

bool ilObjWiki::$rating_block = false
protected

Definition at line 36 of file class.ilObjWiki.php.

Referenced by getRatingAsBlock().

◆ $rating_categories

bool ilObjWiki::$rating_categories = false
protected

Definition at line 33 of file class.ilObjWiki.php.

Referenced by getRatingCategories().

◆ $rating_new_pages

bool ilObjWiki::$rating_new_pages = false
protected

Definition at line 34 of file class.ilObjWiki.php.

Referenced by getRatingForNewPages().

◆ $rating_overall

bool ilObjWiki::$rating_overall = false
protected

Definition at line 37 of file class.ilObjWiki.php.

Referenced by getRatingOverall().

◆ $setting

ilSetting ilObjWiki::$setting
protected

Definition at line 43 of file class.ilObjWiki.php.

Referenced by isCommentsExportPossible().

◆ $shorttitle

string ilObjWiki::$shorttitle = ""
protected

Definition at line 31 of file class.ilObjWiki.php.

Referenced by getShortTitle().

◆ $startpage

string ilObjWiki::$startpage = ""
protected

Definition at line 32 of file class.ilObjWiki.php.

Referenced by getStartPage().

◆ $style_id

int ilObjWiki::$style_id = 0
protected

Definition at line 29 of file class.ilObjWiki.php.

◆ $user

ilObjUser ilObjWiki::$user
protected

The documentation for this class was generated from the following file: