ILIAS  trunk Revision v11.0_alpha-2638-g80c1d007f79
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 setRating(bool $a_rating): void // this is called by ilObject->handleAutoRating
83  {
84  $this->setRatingOverall($a_rating);
85  }
86 
87  public function getRatingOverall(): bool
88  {
89  return $this->rating_overall;
90  }
91 
92  // Set Enable Rating.
93  public function setRatingPages(bool $a_rating): void
94  {
95  $this->rating = $a_rating;
96  }
97 
98  public function getRatingPages(): bool
99  {
100  return $this->rating;
101  }
102 
103  public function setRatingAsBlock(bool $a_rating): void
104  {
105  $this->rating_block = $a_rating;
106  }
107 
108  public function getRatingAsBlock(): bool
109  {
110  return $this->rating_block;
111  }
112 
113  public function setRatingForNewPages(bool $a_rating): void
114  {
115  $this->rating_new_pages = $a_rating;
116  }
117 
118  public function getRatingForNewPages(): bool
119  {
121  }
122 
123  public function setRatingCategories(bool $a_rating): void
124  {
125  $this->rating_categories = $a_rating;
126  }
127 
128  public function getRatingCategories(): bool
129  {
131  }
132 
133  public function setPublicNotes(bool $a_val): void
134  {
135  $this->public_notes = $a_val;
136  }
137 
138  public function getPublicNotes(): bool
139  {
140  return $this->public_notes;
141  }
142 
143  public function setStartPage(string $a_startpage): void
144  {
145  $this->startpage = ilWikiUtil::makeDbTitle($a_startpage);
146  }
147 
148  public function getStartPage(): string
149  {
150  return $this->startpage;
151  }
152 
153  public function setShortTitle(string $a_shorttitle): void
154  {
155  $this->shorttitle = $a_shorttitle;
156  }
157 
158  public function getShortTitle(): string
159  {
160  return $this->shorttitle;
161  }
162 
163  public function setIntroduction(string $a_introduction): void
164  {
165  $this->introduction = $a_introduction;
166  }
167 
168  public function getIntroduction(): string
169  {
170  return $this->introduction;
171  }
172 
173  public function setPageToc(bool $a_val): void
174  {
175  $this->page_toc = $a_val;
176  }
177 
178  public function getPageToc(): bool
179  {
180  return $this->page_toc;
181  }
182 
183  public function setEmptyPageTemplate(bool $a_val): void
184  {
185  $this->empty_page_templ = $a_val;
186  }
187 
188  public function getEmptyPageTemplate(): bool
189  {
191  }
192 
193  public function setLinkMetadataValues(bool $a_val): void
194  {
195  $this->link_md_values = $a_val;
196  }
197 
198  public function getLinkMetadataValues(): bool
199  {
200  return $this->link_md_values;
201  }
202 
203  public function create(
204  bool $a_prevent_start_page_creation = false
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  }
233 
234  public function update(
235  bool $a_prevent_start_page_creation = false
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  }
274 
275  public function read(): 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  }
301 
302 
306  public function delete(): 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  }
327 
328  public static function checkShortTitleAvailability(
329  string $a_short_title
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  }
348 
352  public static function _lookupRatingOverall(int $a_wiki_id): bool
353  {
354  return (bool) self::_lookup($a_wiki_id, "rating_overall");
355  }
356 
360  public static function _lookupRating(int $a_wiki_id): bool
361  {
362  return (bool) self::_lookup($a_wiki_id, "rating");
363  }
364 
368  public static function _lookupRatingCategories(int $a_wiki_id): bool
369  {
370  return (bool) self::_lookup($a_wiki_id, "rating_ext");
371  }
372 
376  public static function _lookupRatingAsBlock(int $a_wiki_id): bool
377  {
378  return (bool) self::_lookup($a_wiki_id, "rating_side");
379  }
380 
384  public static function _lookupPublicNotes(int $a_wiki_id): bool
385  {
386  return (bool) self::_lookup($a_wiki_id, "public_notes");
387  }
388 
392  public static function _lookupLinkMetadataValues(int $a_wiki_id): bool
393  {
394  return (bool) self::_lookup($a_wiki_id, "link_md_values");
395  }
396 
401  private static function _lookup(int $a_wiki_id, string $a_field)
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  }
413 
414  public static function _lookupStartPage(int $a_wiki_id): string
415  {
416  return (string) self::_lookup($a_wiki_id, "startpage");
417  }
418 
419  public static function writeStartPage(int $a_id, string $a_name): 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  }
431 
435  public static function _performSearch(
436  int $a_wiki_id,
437  string $a_searchterm
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  }
464 
465  public function isImportantPage(
466  int $a_page_id
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  }
480 
481 
482  //
483  // Page TOC
484  //
485 
486  public static function _lookupPageToc(
487  int $a_wiki_id
488  ): bool {
489  return (bool) self::_lookup($a_wiki_id, "page_toc");
490  }
491 
492  public function cloneObject(int $target_id, int $copy_id = 0, bool $omit_tree = false): ?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  }
584 
585  protected function updateInternalLinksOnCopy(array $map): 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  }
604 
610  public function getTemplateSelectionOnCreation(string $lang = "-"): 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  }
621 
625  public function createWikiPage(
626  string $a_page_title,
627  int $a_template_page = 0
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  }
671 
672  public static function getAdvMDSubItemTitle(
673  int $a_obj_id,
674  string $a_sub_type,
675  int $a_sub_id
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  }
687 
688  public function initUserHTMLExport(
689  bool $with_comments = false
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  }
697 
698  public function startUserHTMLExport(
699  bool $with_comments = false
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  }
707 
712  public function getUserHTMLExportProgress(
713  bool $with_comments = false
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  }
721 
722  public function deliverUserHTMLExport(
723  bool $with_comments = false
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  }
731 
732 
738  public function decorateAdvMDValue(string $a_value): 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  }
747 
751  public function isCommentsExportPossible(): bool
752  {
753  $setting = $this->setting;
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  }
767 }
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:68
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:26
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)
setRatingPages(bool $a_rating)
static getAllWikiPages(int $a_wiki_id, string $lang="-")
cloneObject(int $target_id, int $copy_id=0, bool $omit_tree=false)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
bool $empty_page_templ
bool $rating_block
$r