ILIAS  trunk Revision v11.0_alpha-1753-gb21ca8c4367
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
class.ilObjWiki.php
Go to the documentation of this file.
1 <?php
2 
25 {
26  protected \ILIAS\Notes\Service $notes;
27  protected \ILIAS\Wiki\InternalDomainService $domain;
28  protected bool $page_toc = false;
29  protected int $style_id = 0;
30  protected string $introduction = "";
31  protected string $shorttitle = "";
32  protected string $startpage = "";
33  protected bool $rating_categories = false;
34  protected bool $rating_new_pages = false;
35  protected bool $rating = false;
36  protected bool $rating_block = false;
37  protected bool $rating_overall = false;
38  protected ilObjUser $user;
39  protected bool $online = false;
40  protected bool $public_notes = true;
41  protected bool $empty_page_templ = true;
42  protected bool $link_md_values = false;
43  protected ilSetting $setting;
44  protected \ILIAS\Style\Content\DomainService $content_style_service;
45 
46  public function __construct(
47  int $a_id = 0,
48  bool $a_call_by_reference = true
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  }
65 
66  public function setOnline(bool $a_online): void
67  {
68  $this->online = $a_online;
69  }
70 
71  public function getOnline(): bool
72  {
73  return $this->online;
74  }
75 
76  // Set Enable Rating For Object.
77  public function setRatingOverall(bool $a_rating): void
78  {
79  $this->rating_overall = $a_rating;
80  }
81 
82  public function getRatingOverall(): bool
83  {
84  return $this->rating_overall;
85  }
86 
87  // Set Enable Rating.
88  public function setRating(bool $a_rating): void
89  {
90  $this->rating = $a_rating;
91  }
92 
93  public function getRating(): bool
94  {
95  return $this->rating;
96  }
97 
98  public function setRatingAsBlock(bool $a_rating): void
99  {
100  $this->rating_block = $a_rating;
101  }
102 
103  public function getRatingAsBlock(): bool
104  {
105  return $this->rating_block;
106  }
107 
108  public function setRatingForNewPages(bool $a_rating): void
109  {
110  $this->rating_new_pages = $a_rating;
111  }
112 
113  public function getRatingForNewPages(): bool
114  {
116  }
117 
118  public function setRatingCategories(bool $a_rating): void
119  {
120  $this->rating_categories = $a_rating;
121  }
122 
123  public function getRatingCategories(): bool
124  {
126  }
127 
128  public function setPublicNotes(bool $a_val): void
129  {
130  $this->public_notes = $a_val;
131  }
132 
133  public function getPublicNotes(): bool
134  {
135  return $this->public_notes;
136  }
137 
138  public function setStartPage(string $a_startpage): void
139  {
140  $this->startpage = ilWikiUtil::makeDbTitle($a_startpage);
141  }
142 
143  public function getStartPage(): string
144  {
145  return $this->startpage;
146  }
147 
148  public function setShortTitle(string $a_shorttitle): void
149  {
150  $this->shorttitle = $a_shorttitle;
151  }
152 
153  public function getShortTitle(): string
154  {
155  return $this->shorttitle;
156  }
157 
158  public function setIntroduction(string $a_introduction): void
159  {
160  $this->introduction = $a_introduction;
161  }
162 
163  public function getIntroduction(): string
164  {
165  return $this->introduction;
166  }
167 
168  public function setPageToc(bool $a_val): void
169  {
170  $this->page_toc = $a_val;
171  }
172 
173  public function getPageToc(): bool
174  {
175  return $this->page_toc;
176  }
177 
178  public function setEmptyPageTemplate(bool $a_val): void
179  {
180  $this->empty_page_templ = $a_val;
181  }
182 
183  public function getEmptyPageTemplate(): bool
184  {
186  }
187 
188  public function setLinkMetadataValues(bool $a_val): void
189  {
190  $this->link_md_values = $a_val;
191  }
192 
193  public function getLinkMetadataValues(): bool
194  {
195  return $this->link_md_values;
196  }
197 
198  public function create(
199  bool $a_prevent_start_page_creation = false
200  ): int {
201  $ilDB = $this->db;
202 
203  $id = parent::create();
204 
205  $ilDB->insert("il_wiki_data", array(
206  "id" => array("integer", $this->getId()),
207  "is_online" => array("integer", (int) $this->getOnline()),
208  "startpage" => array("text", $this->getStartPage()),
209  "short" => array("text", $this->getShortTitle()),
210  "rating" => array("integer", (int) $this->getRating()),
211  "public_notes" => array("integer", (int) $this->getPublicNotes()),
212  "introduction" => array("clob", $this->getIntroduction()),
213  "empty_page_templ" => array("integer", (int) $this->getEmptyPageTemplate()),
214  ));
215 
216  // create start page
217  if ($this->getStartPage() !== "" && !$a_prevent_start_page_creation) {
218  $start_page = new ilWikiPage();
219  $start_page->setWikiId($this->getId());
220  $start_page->setTitle($this->getStartPage());
221  $start_page->create();
222  }
223 
224  $this->notes->domain()->activateComments($this->getId(), $this->getPublicNotes());
225 
226  return $id;
227  }
228 
229  public function update(
230  bool $a_prevent_start_page_creation = false
231  ): bool {
232  $ilDB = $this->db;
233 
234  if (!parent::update()) {
235  return false;
236  }
237 
238  $ilDB->update("il_wiki_data", array(
239  "is_online" => array("integer", $this->getOnline()),
240  "startpage" => array("text", $this->getStartPage()),
241  "short" => array("text", $this->getShortTitle()),
242  "rating_overall" => array("integer", $this->getRatingOverall()),
243  "rating" => array("integer", $this->getRating()),
244  "rating_side" => array("integer", $this->getRatingAsBlock()), // #13455
245  "rating_new" => array("integer", $this->getRatingForNewPages()),
246  "rating_ext" => array("integer", $this->getRatingCategories()),
247  "public_notes" => array("integer", $this->getPublicNotes()),
248  "introduction" => array("clob", $this->getIntroduction()),
249  "page_toc" => array("integer", $this->getPageToc()),
250  "link_md_values" => array("integer", $this->getLinkMetadataValues()),
251  "empty_page_templ" => array("integer", $this->getEmptyPageTemplate())
252  ), array(
253  "id" => array("integer", $this->getId())
254  ));
255 
256  // check whether start page exists
257  if (!ilWikiPage::exists($this->getId(), $this->getStartPage())
258  && !$a_prevent_start_page_creation) {
259  $start_page = new ilWikiPage();
260  $start_page->setWikiId($this->getId());
261  $start_page->setTitle($this->getStartPage());
262  $start_page->setWikiRefId($this->getRefId());
263  $start_page->create();
264  }
265 
266  $this->notes->domain()->activateComments($this->getId(), $this->getPublicNotes());
267 
268  return true;
269  }
270 
271  public function read(): void
272  {
273  $ilDB = $this->db;
274 
275  parent::read();
276 
277  $query = "SELECT * FROM il_wiki_data WHERE id = " .
278  $ilDB->quote($this->getId(), "integer");
279  $set = $ilDB->query($query);
280  $rec = $ilDB->fetchAssoc($set);
281 
282  $this->setOnline((bool) $rec["is_online"]);
283  $this->setStartPage((string) $rec["startpage"]);
284  $this->setShortTitle((string) $rec["short"]);
285  $this->setRatingOverall((bool) $rec["rating_overall"]);
286  $this->setRating((bool) $rec["rating"]);
287  $this->setRatingAsBlock((bool) $rec["rating_side"]);
288  $this->setRatingForNewPages((bool) $rec["rating_new"]);
289  $this->setRatingCategories((bool) $rec["rating_ext"]);
290  //$this->setPublicNotes((bool) $rec["public_notes"]);
291  $this->setIntroduction((string) $rec["introduction"]);
292  $this->setPageToc((bool) $rec["page_toc"]);
293  $this->setEmptyPageTemplate((bool) $rec["empty_page_templ"]);
294  $this->setLinkMetadataValues((bool) $rec["link_md_values"]);
295  $this->setPublicNotes($this->notes->domain()->commentsActive($this->getId()));
296  }
297 
298 
302  public function delete(): bool
303  {
304  $ilDB = $this->db;
305 
306  // always call parent delete function first!!
307  if (!parent::delete()) {
308  return false;
309  }
310 
311  // delete record of table il_wiki_data
312  $query = "DELETE FROM il_wiki_data" .
313  " WHERE id = " . $ilDB->quote($this->getId(), "integer");
314  $ilDB->manipulate($query);
315 
316  // remove all notifications
318 
320 
321  return true;
322  }
323 
324  public static function checkShortTitleAvailability(
325  string $a_short_title
326  ): bool {
327  global $DIC;
328  $ilDB = $DIC->database();
329 
330  if ($a_short_title === "") {
331  return true;
332  }
333  $res = $ilDB->queryF(
334  "SELECT id FROM il_wiki_data WHERE short = %s",
335  array("text"),
336  array($a_short_title)
337  );
338  if ($ilDB->fetchAssoc($res)) {
339  return false;
340  }
341 
342  return true;
343  }
344 
348  public static function _lookupRatingOverall(int $a_wiki_id): bool
349  {
350  return (bool) self::_lookup($a_wiki_id, "rating_overall");
351  }
352 
356  public static function _lookupRating(int $a_wiki_id): bool
357  {
358  return (bool) self::_lookup($a_wiki_id, "rating");
359  }
360 
364  public static function _lookupRatingCategories(int $a_wiki_id): bool
365  {
366  return (bool) self::_lookup($a_wiki_id, "rating_ext");
367  }
368 
372  public static function _lookupRatingAsBlock(int $a_wiki_id): bool
373  {
374  return (bool) self::_lookup($a_wiki_id, "rating_side");
375  }
376 
380  public static function _lookupPublicNotes(int $a_wiki_id): bool
381  {
382  return (bool) self::_lookup($a_wiki_id, "public_notes");
383  }
384 
388  public static function _lookupLinkMetadataValues(int $a_wiki_id): bool
389  {
390  return (bool) self::_lookup($a_wiki_id, "link_md_values");
391  }
392 
397  private static function _lookup(int $a_wiki_id, string $a_field)
398  {
399  global $DIC;
400 
401  $ilDB = $DIC->database();
402 
403  $query = "SELECT $a_field FROM il_wiki_data WHERE id = " .
404  $ilDB->quote($a_wiki_id, "integer");
405  $set = $ilDB->query($query);
406  $rec = $ilDB->fetchAssoc($set);
407  return $rec[$a_field] ?? null;
408  }
409 
410  public static function _lookupStartPage(int $a_wiki_id): string
411  {
412  return (string) self::_lookup($a_wiki_id, "startpage");
413  }
414 
415  public static function writeStartPage(int $a_id, string $a_name): void
416  {
417  global $DIC;
418 
419  $ilDB = $DIC->database();
420 
421  $ilDB->manipulate(
422  "UPDATE il_wiki_data SET " .
423  " startpage = " . $ilDB->quote(ilWikiUtil::makeDbTitle($a_name), "text") .
424  " WHERE id = " . $ilDB->quote($a_id, "integer")
425  );
426  }
427 
431  public static function _performSearch(
432  int $a_wiki_id,
433  string $a_searchterm
434  ): array {
435  // query parser
436  $query_parser = new ilQueryParser($a_searchterm);
437  $query_parser->setCombination("or");
438  $query_parser->parse();
439 
440  $search_result = new ilSearchResult();
441  if ($query_parser->validate()) {
442  $wiki_search = ilObjectSearchFactory::_getWikiContentSearchInstance($query_parser);
443  $wiki_search->setFilter(array('wpg'));
444  $r = $wiki_search->performSearch();
445  $search_result->mergeEntries($r);
446  }
447 
448  $entries = $search_result->getEntries();
449 
450  $found_pages = array();
451  foreach ($entries as $entry) {
452  if ($entry["obj_id"] == $a_wiki_id && is_array($entry["child"])) {
453  foreach ($entry["child"] as $child) {
454  $found_pages[] = array("page_id" => $child);
455  }
456  }
457  }
458  return $found_pages;
459  }
460 
461  public function isImportantPage(
462  int $a_page_id
463  ): bool {
464  $ilDB = $this->db;
465 
466  $set = $ilDB->query(
467  "SELECT * FROM il_wiki_imp_pages WHERE " .
468  " wiki_id = " . $ilDB->quote($this->getId(), "integer") . " AND " .
469  " page_id = " . $ilDB->quote($a_page_id, "integer")
470  );
471  if ($ilDB->fetchAssoc($set)) {
472  return true;
473  }
474  return false;
475  }
476 
477 
478  //
479  // Page TOC
480  //
481 
482  public static function _lookupPageToc(
483  int $a_wiki_id
484  ): bool {
485  return (bool) self::_lookup($a_wiki_id, "page_toc");
486  }
487 
488  public function cloneObject(int $target_id, int $copy_id = 0, bool $omit_tree = false): ?ilObject
489  {
490  $new_obj = parent::cloneObject($target_id, $copy_id, $omit_tree);
491 
492  // Custom meta data activation is stored in a container setting
494  $new_obj->getId(),
497  $this->getId(),
499  0
500  )
501  );
502 
503  //copy online status if object is not the root copy object
504  $cp_options = ilCopyWizardOptions::_getInstance($copy_id);
505 
506  if (!$cp_options->isRootNode($this->getRefId())) {
507  $new_obj->setOnline($this->getOnline());
508  }
509 
510  //$new_obj->setTitle($this->getTitle()); // see #20074
511  $new_obj->setStartPage($this->getStartPage());
512  $new_obj->setShortTitle($this->getShortTitle());
513  $new_obj->setRatingOverall($this->getRatingOverall());
514  $new_obj->setRating($this->getRating());
515  $new_obj->setRatingAsBlock($this->getRatingAsBlock());
516  $new_obj->setRatingForNewPages($this->getRatingForNewPages());
517  $new_obj->setRatingCategories($this->getRatingCategories());
518  $new_obj->setPublicNotes($this->getPublicNotes());
519  $new_obj->setIntroduction($this->getIntroduction());
520  $new_obj->setPageToc($this->getPageToc());
521  $new_obj->update();
522 
523  $this->content_style_service
524  ->styleForRefId($this->getRefId())
525  ->cloneTo($new_obj->getId());
526 
527  // copy content
528  $pages = ilWikiPage::getAllWikiPages($this->getId());
529  if (count($pages) > 0) {
530  // if we have any pages, delete the start page first
531  $pg_id = ilWikiPage::getPageIdForTitle($new_obj->getId(), $new_obj->getStartPage());
532  $start_page = new ilWikiPage($pg_id);
533  $start_page->delete();
534  }
535  $map = array();
536  foreach ($pages as $p) {
537  $page = new ilWikiPage($p["id"]);
538  $page->setWikiRefId($this->getRefId());
539  $new_page = new ilWikiPage();
540  $new_page->setWikiRefId($new_obj->getRefId());
541  $new_page->setTitle($page->getTitle());
542  $new_page->setWikiId($new_obj->getId());
543  $new_page->setTitle($page->getTitle());
544  $new_page->setBlocked($page->getBlocked());
545  $new_page->setRating($page->getRating());
546  $new_page->hideAdvancedMetadata($page->isAdvancedMetadataHidden());
547  $new_page->create();
548 
549  $page->copy($new_page->getId(), "", 0, true);
550  //$new_page->setXMLContent($page->copyXMLContent(true));
551  //$new_page->buildDom(true);
552  //$new_page->update();
553  $map[$p["id"]] = $new_page->getId();
554 
556  $copy_id,
557  $this->getId(),
558  $new_obj->getId(),
559  "wpg",
560  (int) $p["id"],
561  $new_page->getId(),
562  );
563  }
564 
565  // copy important pages
566  $imp_pages_manager = $this->domain->importantPage($this->getRefId());
567  $imp_pages_manager->cloneTo($new_obj->getId(), $map);
568  $this->updateInternalLinksOnCopy($map);
569 
570  // copy rating categories
571  foreach (ilRatingCategory::getAllForObject($this->getId()) as $rc) {
572  $new_rc = new ilRatingCategory();
573  $new_rc->setParentId($new_obj->getId());
574  $new_rc->setTitle((string) $rc["title"]);
575  $new_rc->setDescription((string) $rc["description"]);
576  $new_rc->save();
577  }
578 
579  return $new_obj;
580  }
581 
582  protected function updateInternalLinksOnCopy(array $map): void
583  {
584  foreach ($map as $old_page_id => $new_page_id) {
585  // get links with targets inside the wiki
587  "wpg:pg",
588  $old_page_id,
589  "-"
590  );
591  foreach ($targets as $t) {
592  if ((int) $t["inst"] === 0 && in_array($t["type"], ["wpag", "wpage"]) && isset($map[(int) $t["id"]])) {
593  $new_page = new ilWikiPage($new_page_id);
594  if ($new_page->moveIntLinks([$t["id"] => $map[(int) $t["id"]]])) {
595  $new_page->update(true, true);
596  }
597  }
598  }
599  }
600  }
601 
607  public function getTemplateSelectionOnCreation(string $lang = "-"): bool
608  {
609  $num = (int) $this->getEmptyPageTemplate();
610  $wt = new ilWikiPageTemplate($this->getId());
611  $ts = $wt->getAllInfo(ilWikiPageTemplate::TYPE_NEW_PAGES, $lang);
612  $num += count($ts);
613  if ($num > 1) {
614  return true;
615  }
616  return false;
617  }
618 
622  public function createWikiPage(
623  string $a_page_title,
624  int $a_template_page = 0
625  ): ilWikiPage {
626  // check if template has to be used
627  if ($a_template_page === 0) {
628  if (!$this->getEmptyPageTemplate()) {
629  $wt = new ilWikiPageTemplate($this->getId());
630  $ts = $wt->getAllInfo(ilWikiPageTemplate::TYPE_NEW_PAGES);
631  if (count($ts) === 1) {
632  $t = current($ts);
633  $a_template_page = $t["wpage_id"];
634  }
635  }
636  }
637 
638  // create the page
639  $page = new ilWikiPage();
640  $page->setWikiId($this->getId());
641  $page->setTitle(ilWikiUtil::makeDbTitle($a_page_title));
642  if ($this->getRating() && $this->getRatingForNewPages()) {
643  $page->setRating(true);
644  }
645 
646  // needed for notification
647  $page->setWikiRefId($this->getRefId());
648  $page->create();
649 
650  // copy template into new page
651  if ($a_template_page > 0) {
652  $orig = new ilWikiPage($a_template_page);
653  $orig->copy($page->getId());
654 
655  // #15718
657  0,
658  $this->getId(),
659  $this->getId(),
660  "wpg",
661  $a_template_page,
662  $page->getId()
663  );
664  }
665 
666  return $page;
667  }
668 
669  public static function getAdvMDSubItemTitle(
670  int $a_obj_id,
671  string $a_sub_type,
672  int $a_sub_id
673  ): string {
674  global $DIC;
675 
676  $lng = $DIC->language();
677 
678  if ($a_sub_type === "wpg") {
679  $lng->loadLanguageModule("wiki");
680  return $lng->txt("wiki_wpg") . ' "' . ilWikiPage::lookupTitle($a_sub_id) . '"';
681  }
682  return "";
683  }
684 
685  public function initUserHTMLExport(
686  bool $with_comments = false
687  ): void {
688  $ilDB = $this->db;
689  $ilUser = $this->user;
690 
691  $user_export = new ilWikiUserHTMLExport($this, $ilDB, $ilUser, $with_comments);
692  $user_export->initUserHTMLExport();
693  }
694 
695  public function startUserHTMLExport(
696  bool $with_comments = false
697  ): void {
698  $ilDB = $this->db;
699  $ilUser = $this->user;
700 
701  $user_export = new ilWikiUserHTMLExport($this, $ilDB, $ilUser, $with_comments);
702  $user_export->startUserHTMLExport();
703  }
704 
709  public function getUserHTMLExportProgress(
710  bool $with_comments = false
711  ): array {
712  $ilDB = $this->db;
713  $ilUser = $this->user;
714 
715  $user_export = new ilWikiUserHTMLExport($this, $ilDB, $ilUser, $with_comments);
716  return $user_export->getProgress();
717  }
718 
719  public function deliverUserHTMLExport(
720  bool $with_comments = false
721  ): void {
722  $ilDB = $this->db;
723  $ilUser = $this->user;
724 
725  $user_export = new ilWikiUserHTMLExport($this, $ilDB, $ilUser, $with_comments);
726  $user_export->deliverFile();
727  }
728 
729 
735  public function decorateAdvMDValue(string $a_value): string
736  {
737  if (ilWikiPage::_wikiPageExists($this->getId(), $a_value)) {
738  $url = ilObjWikiGUI::getGotoLink($this->getRefId(), $a_value);
739  return "<a href='" . $url . "'>" . $a_value . "</a>";
740  }
741 
742  return $a_value;
743  }
744 
748  public function isCommentsExportPossible(): bool
749  {
750  $setting = $this->setting;
751  $privacy = ilPrivacySettings::getInstance();
752  if ($setting->get("disable_comments")) {
753  return false;
754  }
755 
756  if (!$this->getPublicNotes()) {
757  return false;
758  }
759  if (!$privacy->enabledCommentsExport()) {
760  return false;
761  }
762  return true;
763  }
764 }
setOnline(bool $a_online)
bool $rating_categories
$res
Definition: ltiservices.php:66
setStartPage(string $a_startpage)
setPageToc(bool $a_val)
bool $public_notes
get(string $a_keyword, ?string $a_default_value=null)
get setting
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...
setRatingOverall(bool $a_rating)
string $shorttitle
__construct(int $a_id=0, bool $a_call_by_reference=true)
setRatingAsBlock(bool $a_rating)
static _lookupRatingAsBlock(int $a_wiki_id)
Lookup whether rating side block is activated.
ilSetting $setting
initUserHTMLExport(bool $with_comments=false)
static _lookup(int $a_wiki_id, string $a_field)
Lookup a data field.
static _getWikiContentSearchInstance(ilQueryParser $query_parser)
static lookupTitle(int $a_page_id, string $lang="-")
getTemplateSelectionOnCreation(string $lang="-")
Get template selection on creation? If more than one template (including empty page template) is acti...
static _lookupPageToc(int $a_wiki_id)
update(bool $a_prevent_start_page_creation=false)
isImportantPage(int $a_page_id)
create(bool $a_prevent_start_page_creation=false)
static _performSearch(int $a_wiki_id, string $a_searchterm)
Search in Wiki.
loadLanguageModule(string $a_module)
Load language module.
$url
Definition: shib_logout.php:66
static _lookupRatingCategories(int $a_wiki_id)
Lookup whether rating categories are activated.
setLinkMetadataValues(bool $a_val)
ILIAS Notes Service $notes
static getAdvMDSubItemTitle(int $a_obj_id, string $a_sub_type, int $a_sub_id)
updateInternalLinksOnCopy(array $map)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
bool $link_md_values
isCommentsExportPossible()
Is export possible.
Class manages user html export.
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
static _lookupRating(int $a_wiki_id)
Lookup whether rating is activated.
ilObjUser $user
createWikiPage(string $a_page_title, int $a_template_page=0)
Create new wiki page.
getUserHTMLExportProgress(bool $with_comments=false)
Get user html export progress.
setRatingCategories(bool $a_rating)
static checkShortTitleAvailability(string $a_short_title)
string $startpage
Interface for repository objects to use adv md with subitems.
setPublicNotes(bool $a_val)
static exists(int $a_wiki_id, string $a_title, string $lang="-")
Checks whether a page with given title exists.
ilLanguage $lng
startUserHTMLExport(bool $with_comments=false)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
ilDBInterface $db
static getAllForObject(int $a_parent_obj_id)
global $DIC
Definition: shib_login.php:22
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static writeStartPage(int $a_id, string $a_name)
static _lookupStartPage(int $a_wiki_id)
decorateAdvMDValue(string $a_value)
Decorate adv md value.
static deleteAllPagesOfWiki(int $a_wiki_id)
ILIAS Wiki InternalDomainService $domain
static getGotoLink(int $a_ref_id, string $a_page="", string $lang="-")
setEmptyPageTemplate(bool $a_val)
string $introduction
static _writeContainerSetting(int $a_id, string $a_keyword, string $a_value)
setRating(bool $a_rating)
$lang
Definition: xapiexit.php:25
bool $rating_new_pages
ILIAS Style Content DomainService $content_style_service
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.
setRatingForNewPages(bool $a_rating)
static makeDbTitle(string $a_par)
static getPageIdForTitle(int $a_wiki_id, string $a_title, string $lang="-")
Get wiki page object for id and title.
static _wikiPageExists(int $a_wiki_id, string $a_title, string $lang="-")
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23
__construct(Container $dic, ilPlugin $plugin)
static _lookupRatingOverall(int $a_wiki_id)
Lookup whether rating is activated for whole object.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static removeForObject(int $type, int $id)
Remove all notifications for given object.
static _lookupPublicNotes(int $a_wiki_id)
Lookup whether public notes are activated.
static _lookupLinkMetadataValues(int $a_wiki_id)
Lookup whether metadata should be auto linked.
setIntroduction(string $a_introduction)
static _getInstance(int $a_copy_id)
setShortTitle(string $a_shorttitle)
static _lookupContainerSetting(int $a_id, string $a_keyword, ?string $a_default_value=null)
bool $rating_overall
deliverUserHTMLExport(bool $with_comments=false)
static getAllWikiPages(int $a_wiki_id, string $lang="-")
cloneObject(int $target_id, int $copy_id=0, bool $omit_tree=false)
bool $empty_page_templ
bool $rating_block
$r