ILIAS  release_4-4 Revision
All Data Structures Namespaces Files Functions Variables Modules Pages
ilObjWikiGUI Class Reference

Class ilObjWikiGUI. More...

+ Inheritance diagram for ilObjWikiGUI:
+ Collaboration diagram for ilObjWikiGUI:

Public Member Functions

 ilObjWikiGUI ($a_data, $a_id, $a_call_by_reference, $a_prepare_output=true)
 Constructor public. More...
 
 executeCommand ()
 
 isOnlineHelpWiki ()
 Is wiki an online help wiki? More...
 
 viewObject ()
 Start page. More...
 
 saveObject ()
 save object public More...
 
 afterSave ($newObj)
 save object public More...
 
 infoScreenObject ()
 this one is called from the info button in the repository not very nice to set cmdClass/Cmd manually, if everything works through ilCtrl in the future this may be changed More...
 
 infoScreen ()
 show information screen More...
 
 gotoStartPageObject ()
 Go to start page. More...
 
 addPageTabs ()
 Add Page Tabs. More...
 
 addPagesSubTabs ()
 Add Pages SubTabs. More...
 
 getTabs ($tabs_gui)
 get tabs public More...
 
 setSettingsSubTabs ($a_active)
 Set sub tabs. More...
 
 editSettingsObject ()
 Edit settings. More...
 
 initSettingsForm ($a_mode="edit")
 Init Settings Form. More...
 
 getSettingsFormValues ($a_mode="edit")
 
 saveSettingsObject ()
 Save Settings. More...
 
 listContributorsObject ()
 List all contributors. More...
 
 saveGradingObject ()
 Save grading. More...
 
 addLocatorItems ()
 
 _goto ($a_target)
 
 viewPageObject ()
 view wiki page More...
 
 allPagesObject ()
 All pages of wiki. More...
 
 popularPagesObject ()
 Popular pages. More...
 
 orphanedPagesObject ()
 Orphaned pages. More...
 
 gotoPageObject ($a_page="")
 Go to specific page. More...
 
 randomPageObject ()
 Go to random page. More...
 
 recentChangesObject ()
 Recent Changes. More...
 
 setSideBlock ($a_wpg_id=0)
 Side column. More...
 
 newPagesObject ()
 Latest pages. More...
 
 printViewObject ()
 Show printable view of a wiki page. More...
 
 performSearchObject ()
 Search. More...
 
 setContentStyleSheet ($a_tpl=null)
 Set content style sheet. More...
 
 editStylePropertiesObject ()
 Edit style properties. More...
 
 initStylePropertiesForm ()
 Init style properties form. More...
 
 createStyleObject ()
 Create Style. More...
 
 editStyleObject ()
 Edit Style. More...
 
 deleteStyleObject ()
 Delete Style. More...
 
 saveStyleSettingsObject ()
 Save style settings. More...
 
 editImportantPagesObject ()
 List important pages. More...
 
 addImportantPageObject ()
 Add important pages. More...
 
 confirmRemoveImportantPagesObject ()
 Confirm important pages deletion. More...
 
 removeImportantPagesObject ()
 Remove important pages. More...
 
 saveOrderingAndIndentObject ()
 Save important pages ordering and indentation. More...
 
 exportHTML ()
 Create html package. More...
 
 getSubObjectTitle ($a_id, $a_type)
 Used for rating export. More...
 
- Public Member Functions inherited from ilObjectGUI
 ilObjectGUI ($a_data, $a_id=0, $a_call_by_reference=true, $a_prepare_output=true)
 Constructor public. More...
 
executeCommand ()
 execute command More...
 
 withReferences ()
 determines wether objects are referenced or not (got ref ids or not) More...
 
 setCreationMode ($a_mode=true)
 if true, a creation screen is displayed the current $_GET[ref_id] don't belong to the current class! the mode is determined in ilrepositorygui More...
 
 getCreationMode ()
 get creation mode More...
 
 getAdminTabs (&$tabs_gui)
 administration tabs show only permissions and trash folder More...
 
 getHTML ()
 
 confirmedDeleteObject ()
 confirmed deletion of object -> objects are moved to trash or deleted immediately, if trash is disabled More...
 
 cancelDeleteObject ()
 cancel deletion of object More...
 
 cancelObject ($in_rep=false)
 cancel action and go back to previous page public More...
 
 createObject ()
 create new object form More...
 
 cancelCreation ()
 cancel create action and go back to repository parent More...
 
 saveObject ()
 save object More...
 
 editObject ()
 edit object More...
 
 updateObject ()
 updates object entry in object_data More...
 
 getFormAction ($a_cmd, $a_formaction="")
 get form action for command (command is method name without "Object", e.g. More...
 
 isVisible ($a_ref_id, $a_type)
 
 viewObject ()
 list childs of current object More...
 
 deleteObject ($a_error=false)
 Display deletion confirmation screen. More...
 
 cloneAllObject ()
 Clone single (not container object) Method is overwritten in ilContainerGUI. More...
 

Static Public Member Functions

static getGotoLink ($a_ref_id, $a_page="")
 Get goto link. More...
 
static renderSideBlock ($a_wpg_id, $a_wiki_ref_id, $a_wp=null)
 Side column. More...
 
static lookupSubObjectTitle ($a_wiki_id, $a_page_id)
 Get title for wiki page (used in ilNotesGUI) More...
 
- Static Public Member Functions inherited from ilObjectGUI
static _gotoRepositoryRoot ($a_raise_error=false)
 Goto repository root. More...
 
static _gotoRepositoryNode ($a_ref_id, $a_cmd="frameset")
 Goto repository root. More...
 

Protected Member Functions

 initCreationForms ($a_new_type)
 
- Protected Member Functions inherited from ilObjectGUI
 assignObject ()
 
 prepareOutput ()
 prepare output More...
 
 setTitleAndDescription ()
 called by prepare output More...
 
 initHeaderAction ($a_sub_type=null, $a_sub_id=null)
 Add header action menu. More...
 
 insertHeaderAction ($a_list_gui)
 Insert header action into main template. More...
 
 addHeaderAction ()
 Add header action menu. More...
 
 redrawHeaderActionObject ()
 Ajax call: redraw action header only. More...
 
 showMountWebfolderIcon ()
 
 setTabs ()
 set admin tabs public More...
 
 setAdminTabs ()
 set admin tabs public More...
 
 setLocator ()
 set Locator More...
 
 addLocatorItems ()
 should be overwritten to add object specific items (repository items are preloaded) More...
 
 omitLocator ($a_omit=true)
 
 addAdminLocatorItems ($a_do_not_add_object=false)
 should be overwritten to add object specific items (repository items are preloaded) More...
 
 initCreationForms ($a_new_type)
 Init creation froms. More...
 
 getCreationFormsHTML (array $a_forms)
 Get HTML for creation forms (accordion) More...
 
 initCreateForm ($a_new_type)
 Init object creation form. More...
 
 initDidacticTemplate (ilPropertyFormGUI $form)
 Show didactic template types. More...
 
 addDidacticTemplateOptions (array &$a_options)
 Add custom templates. More...
 
 getDidacticTemplateVar ($a_type)
 Get didactic template setting from creation screen. More...
 
 putObjectInTree (ilObject $a_obj, $a_parent_node_id=null)
 Add object to tree at given position. More...
 
 afterSave (ilObject $a_new_object)
 Post (successful) object creation hook. More...
 
 initEditForm ()
 Init object edit form. More...
 
 initEditCustomForm (ilPropertyFormGUI $a_form)
 Add custom fields to update form. More...
 
 getEditFormValues ()
 Get values for edit form. More...
 
 getEditFormCustomValues (array &$a_values)
 Add values to custom edit fields. More...
 
 updateCustom (ilPropertyFormGUI $a_form)
 Insert custom update form values into object. More...
 
 afterUpdate ()
 Post (successful) object update hook. More...
 
 initImportForm ($a_new_type)
 Init object import form. More...
 
 importFileObject ($parent_id=null)
 Import. More...
 
 afterImport (ilObject $a_new_object)
 Post (successful) object import hook. More...
 
 setFormAction ($a_cmd, $a_formaction)
 set specific form action for command More...
 
 getReturnLocation ($a_cmd, $a_location="")
 get return location for command (command is method name without "Object", e.g. More...
 
 setReturnLocation ($a_cmd, $a_location)
 set specific return location for command More...
 
 getTargetFrame ($a_cmd, $a_target_frame="")
 get target frame for command (command is method name without "Object", e.g. More...
 
 setTargetFrame ($a_cmd, $a_target_frame)
 set specific target frame for command More...
 
 showPossibleSubObjects ()
 show possible subobjects (pulldown menu) More...
 
 getTemplateFile ($a_cmd, $a_type="")
 get a template blockfile format: tpl. More...
 
 getTitlesByRefId ($a_ref_ids)
 get Titles of objects this method is used for error messages in methods cut/copy/paste More...
 
 getTabs (&$tabs_gui)
 get tabs abstract method. More...
 
 __showButton ($a_cmd, $a_text, $a_target='')
 
 hitsperpageObject ()
 
__initTableGUI ()
 
 __setTableGUIBasicData (&$tbl, &$result_set, $a_from="")
 standard implementation for tables use 'from' variable use different initial setting of table More...
 
 redirectToRefId ($a_ref_id, $a_cmd="")
 redirects to (repository) view per ref id usually to a container and usually used at the end of a save/import method where the object gui type (of the new object) doesn't match with the type of the current $_GET["ref_id"] value More...
 
 fillCloneTemplate ($a_tpl_varname, $a_type)
 Fill object clone template This method can be called from any object GUI class that wants to offer object cloning. More...
 
 getCenterColumnHTML ()
 Get center column. More...
 
 getRightColumnHTML ()
 Display right column. More...
 
 setColumnSettings ($column_gui)
 May be overwritten in subclasses. More...
 
 checkPermission ($a_perm, $a_cmd="", $a_type="", $a_ref_id=null)
 Check permission and redirect on error. More...
 
 checkPermissionBool ($a_perm, $a_cmd="", $a_type="", $a_ref_id=null)
 Check permission. More...
 
 enableDragDropFileUpload ()
 Enables the file upload into this object by dropping files. More...
 
 handleAutoRating (ilObject $a_new_obj)
 Activate rating automatically if parent container setting. More...
 

Additional Inherited Members

- Data Fields inherited from ilObjectGUI
const COPY_WIZARD_NEEDS_PAGE = 1
 
 $ilias
 
 $objDefinition
 
 $tpl
 
 $tree
 
 $lng
 
 $data
 
 $object
 
 $ref_id
 
 $obj_id
 
 $maxcount
 
 $formaction
 
 $return_location
 
 $target_frame
 
 $tab_target_script
 
 $actions
 
 $sub_objects
 
 $omit_locator = false
 
const CFORM_NEW = 1
 
const CFORM_IMPORT = 2
 
const CFORM_CLONE = 3
 

Detailed Description

Member Function Documentation

◆ _goto()

ilObjWikiGUI::_goto (   $a_target)

Definition at line 860 of file class.ilObjWikiGUI.php.

References $_GET, $ilErr, ilObjectGUI\$lng, $r, ilObject\_getAllReferences(), ilObjectGUI\_gotoRepositoryNode(), ilObjectGUI\_gotoRepositoryRoot(), ilObject\_lookupObjId(), ilObject\_lookupTitle(), exit, ilWikiPage\lookupTitle(), ilWikiPage\lookupWikiId(), and ilUtil\sendFailure().

861  {
862  global $ilAccess, $ilErr, $lng, $ilNavigationHistory;
863 
864  $i = strpos($a_target, "_");
865  if ($i > 0)
866  {
867  $a_page = substr($a_target, $i+1);
868  $a_target = substr($a_target, 0, $i);
869  }
870 
871  if ($a_target == "wpage")
872  {
873  $wpg_id = (int) $a_page;
874  include_once("./Modules/Wiki/classes/class.ilWikiPage.php");
875  $w_id = ilWikiPage::lookupWikiId($wpg_id);
876  $refs = ilObject::_getAllReferences($w_id);
877  foreach ($refs as $r)
878  {
879  if ($ilAccess->checkAccess("read", "", $r))
880  {
881  $a_target = $r;
882  $a_page = ilWikiPage::lookupTitle($wpg_id);
883  }
884  }
885  }
886 
887  if ($ilAccess->checkAccess("read", "", $a_target))
888  {
889  $_GET["cmd"] = "viewPage";
890  $_GET["ref_id"] = $a_target;
891  $_GET["page"] = $a_page;
892  $_GET["baseClass"] = "ilwikihandlergui";
893  $_GET["cmdClass"] = "ilobjwikigui";
894 /* if ($a_page != "")
895  {
896  $add = "&page=".rawurlencode($_GET["page"]);
897  $ilNavigationHistory->addItem($_GET["ref_id"],
898  "./goto.php?target=wiki_".$_GET["ref_id"].$add, "wiki");
899  }*/
900  include("ilias.php");
901  exit;
902  }
903  else if ($ilAccess->checkAccess("visible", "", $a_target))
904  {
905  ilObjectGUI::_gotoRepositoryNode($tarr[0], "infoScreen");
906  }
907  else if ($ilAccess->checkAccess("read", "", ROOT_FOLDER_ID))
908  {
909  ilUtil::sendFailure(sprintf($lng->txt("msg_no_perm_read_item"),
912  }
913 
914  $ilErr->raiseError($lng->txt("msg_no_perm_read"), $ilErr->FATAL);
915  }
static lookupTitle($a_page_id)
Checks whether a page with given title exists.
exit
Definition: login.php:54
$_GET["client_id"]
static _gotoRepositoryRoot($a_raise_error=false)
Goto repository root.
static _lookupTitle($a_id)
lookup object title
static _getAllReferences($a_id)
get all reference ids of object
static lookupWikiId($a_page_id)
Lookup wiki id.
static _gotoRepositoryNode($a_ref_id, $a_cmd="frameset")
Goto repository root.
static _lookupObjId($a_id)
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
$r
+ Here is the call graph for this function:

◆ addImportantPageObject()

ilObjWikiGUI::addImportantPageObject ( )

Add important pages.

Parameters

Definition at line 1544 of file class.ilObjWikiGUI.php.

References $_POST, $ilCtrl, ilObjectGUI\$lng, ilObjectGUI\checkPermission(), and ilUtil\sendSuccess().

1545  {
1546  global $ilCtrl, $lng;
1547 
1548  $this->checkPermission("write");
1549 
1550  if ($_POST["imp_page_id"] > 0)
1551  {
1552  $this->object->addImportantPage((int) $_POST["imp_page_id"]);
1553  ilUtil::sendSuccess($lng->txt("wiki_imp_page_added"), true);
1554  }
1555  $ilCtrl->redirect($this, "editImportantPages");
1556  }
static sendSuccess($a_info="", $a_keep=false)
Send Success Message to Screen.
$_POST['username']
Definition: cron.php:12
global $ilCtrl
Definition: ilias.php:18
checkPermission($a_perm, $a_cmd="", $a_type="", $a_ref_id=null)
Check permission and redirect on error.
+ Here is the call graph for this function:

◆ addLocatorItems()

ilObjWikiGUI::addLocatorItems ( )

Definition at line 849 of file class.ilObjWikiGUI.php.

References $_GET, and getGotoLink().

850  {
851  global $ilLocator;
852 
853  if (is_object($this->object))
854  {
855  $ilLocator->addItem($this->object->getTitle(),
856  $this->getGotoLink($this->object->getRefId()), "", $_GET["ref_id"]);
857  }
858  }
static getGotoLink($a_ref_id, $a_page="")
Get goto link.
$_GET["client_id"]
+ Here is the call graph for this function:

◆ addPagesSubTabs()

ilObjWikiGUI::addPagesSubTabs ( )

Add Pages SubTabs.

Definition at line 417 of file class.ilObjWikiGUI.php.

References $_GET, $ilCtrl, ilWikiPage\getPageIdForTitle(), ilWikiUtil\makeDbTitle(), and ilWikiUtil\makeUrlTitle().

Referenced by allPagesObject(), newPagesObject(), orphanedPagesObject(), popularPagesObject(), and recentChangesObject().

418  {
419  global $ilTabs, $ilCtrl;
420 
421  $ilTabs->activateTab("wiki_pages");
422 
423  include_once("./Modules/Wiki/classes/class.ilWikiPage.php");
424  $ilCtrl->setParameter($this, "wpg_id",
425  ilWikiPage::getPageIdForTitle($this->object->getId(),
426  ilWikiUtil::makeDbTitle($_GET["page"])));
427  $ilCtrl->setParameter($this, "page", ilWikiUtil::makeUrlTitle($_GET["page"]));
428  $ilTabs->addSubTabTarget("wiki_all_pages",
429  $this->ctrl->getLinkTarget($this, "allPages"), "allPages");
430  $ilTabs->addSubTabTarget("wiki_recent_changes",
431  $this->ctrl->getLinkTarget($this, "recentChanges"), "recentChanges");
432  $ilTabs->addSubTabTarget("wiki_new_pages",
433  $this->ctrl->getLinkTarget($this, "newPages"), "newPages");
434  $ilTabs->addSubTabTarget("wiki_popular_pages",
435  $this->ctrl->getLinkTarget($this, "popularPages"), "popularPages");
436  $ilTabs->addSubTabTarget("wiki_orphaned_pages",
437  $this->ctrl->getLinkTarget($this, "orphanedPages"), "orphanedPages");
438  }
$_GET["client_id"]
static getPageIdForTitle($a_wiki_id, $a_title)
Get wiki page object for id and title.
global $ilCtrl
Definition: ilias.php:18
static makeUrlTitle($a_par)
Set page parameter for Url Embedding.
static makeDbTitle($a_par)
Handle page GET parameter.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ addPageTabs()

ilObjWikiGUI::addPageTabs ( )

Add Page Tabs.

Definition at line 395 of file class.ilObjWikiGUI.php.

References $_GET, $ilCtrl, ilWikiPage\getPageIdForTitle(), ilWikiUtil\makeDbTitle(), and ilWikiUtil\makeUrlTitle().

396  {
397  global $ilTabs, $ilCtrl;
398 
399  include_once("./Modules/Wiki/classes/class.ilWikiPage.php");
400  $ilCtrl->setParameter($this, "wpg_id",
401  ilWikiPage::getPageIdForTitle($this->object->getId(), ilWikiUtil::makeDbTitle($_GET["page"])));
402  $ilCtrl->setParameter($this, "page", ilWikiUtil::makeUrlTitle($_GET["page"]));
403  $ilTabs->addTarget("wiki_what_links_here",
404  $this->ctrl->getLinkTargetByClass("ilwikipagegui",
405  "whatLinksHere"), "whatLinksHere");
406  //$ilTabs->addTarget("wiki_print_view",
407  // $this->ctrl->getLinkTarget($this,
408  // "printViewSelection"), "printViewSelection");
409  $ilTabs->addTarget("wiki_print_view",
410  $this->ctrl->getLinkTargetByClass("ilwikipagegui",
411  "printViewSelection"), "printViewSelection");
412  }
$_GET["client_id"]
static getPageIdForTitle($a_wiki_id, $a_title)
Get wiki page object for id and title.
global $ilCtrl
Definition: ilias.php:18
static makeUrlTitle($a_par)
Set page parameter for Url Embedding.
static makeDbTitle($a_par)
Handle page GET parameter.
+ Here is the call graph for this function:

◆ afterSave()

ilObjWikiGUI::afterSave (   $newObj)

save object public

Definition at line 253 of file class.ilObjWikiGUI.php.

References $ilSetting, getGotoLink(), ilUtil\redirect(), and ilUtil\sendSuccess().

254  {
255  global $ilSetting;
256 
257  $newObj->setTitle($this->form_gui->getInput("title"));
258  $newObj->setDescription($this->form_gui->getInput("description"));
259  $newObj->setIntroduction($this->form_gui->getInput("intro"));
260  $newObj->setStartPage($this->form_gui->getInput("startpage"));
261  $newObj->setShortTitle($this->form_gui->getInput("shorttitle"));
262  $newObj->setRating($this->form_gui->getInput("rating"));
263  // $newObj->setRatingAsBlock($this->form_gui->getInput("rating_side"));
264  $newObj->setRatingForNewPages($this->form_gui->getInput("rating_new"));
265  $newObj->setRatingCategories($this->form_gui->getInput("rating_ext"));
266 
267  $newObj->setRatingOverall($this->form_gui->getInput("rating_overall"));
268  $newObj->setPageToc($this->form_gui->getInput("page_toc"));
269 
270 
271 
272  if (!$ilSetting->get("disable_comments"))
273  {
274  $newObj->setPublicNotes($this->form_gui->getInput("public_notes"));
275  }
276  $newObj->setOnline($this->form_gui->getInput("online"));
277  $newObj->update();
278 
279  // always send a message
280  ilUtil::sendSuccess($this->lng->txt("object_added"),true);
281  ilUtil::redirect(ilObjWikiGUI::getGotoLink($newObj->getRefId()));
282  }
static sendSuccess($a_info="", $a_keep=false)
Send Success Message to Screen.
static getGotoLink($a_ref_id, $a_page="")
Get goto link.
global $ilSetting
Definition: privfeed.php:40
static redirect($a_script)
http redirect to other script
+ Here is the call graph for this function:

◆ allPagesObject()

ilObjWikiGUI::allPagesObject ( )

All pages of wiki.

Definition at line 1001 of file class.ilObjWikiGUI.php.

References ilObjectGUI\$tpl, addPagesSubTabs(), ilObjectGUI\checkPermission(), IL_WIKI_ALL_PAGES, and setSideBlock().

1002  {
1003  global $tpl;
1004 
1005  $this->checkPermission("read");
1006 
1007  include_once("./Modules/Wiki/classes/class.ilWikiPagesTableGUI.php");
1008 
1009  $this->addPagesSubTabs();
1010 
1011  $table_gui = new ilWikiPagesTableGUI($this, "allPages",
1012  $this->object->getId(), IL_WIKI_ALL_PAGES);
1013 
1014  $this->setSideBlock();
1015  $tpl->setContent($table_gui->getHTML());
1016  }
setSideBlock($a_wpg_id=0)
Side column.
TableGUI class for wiki pages table.
addPagesSubTabs()
Add Pages SubTabs.
const IL_WIKI_ALL_PAGES
checkPermission($a_perm, $a_cmd="", $a_type="", $a_ref_id=null)
Check permission and redirect on error.
+ Here is the call graph for this function:

◆ confirmRemoveImportantPagesObject()

ilObjWikiGUI::confirmRemoveImportantPagesObject ( )

Confirm important pages deletion.

Definition at line 1561 of file class.ilObjWikiGUI.php.

References $_POST, $ilCtrl, ilObjectGUI\$lng, ilObjectGUI\$tpl, ilWikiPage\lookupTitle(), and ilUtil\sendInfo().

1562  {
1563  global $ilCtrl, $tpl, $lng;
1564 
1565  if (!is_array($_POST["imp_page_id"]) || count($_POST["imp_page_id"]) == 0)
1566  {
1567  ilUtil::sendInfo($lng->txt("no_checkbox"), true);
1568  $ilCtrl->redirect($this, "editImportantPages");
1569  }
1570  else
1571  {
1572  include_once("./Services/Utilities/classes/class.ilConfirmationGUI.php");
1573  $cgui = new ilConfirmationGUI();
1574  $cgui->setFormAction($ilCtrl->getFormAction($this));
1575  $cgui->setHeaderText($lng->txt("wiki_sure_remove_imp_pages"));
1576  $cgui->setCancel($lng->txt("cancel"), "editImportantPages");
1577  $cgui->setConfirm($lng->txt("remove"), "removeImportantPages");
1578 
1579  foreach ($_POST["imp_page_id"] as $i)
1580  {
1581  $cgui->addItem("imp_page_id[]", $i, ilWikiPage::lookupTitle((int) $i));
1582  }
1583 
1584  $tpl->setContent($cgui->getHTML());
1585  }
1586  }
static lookupTitle($a_page_id)
Checks whether a page with given title exists.
$_POST['username']
Definition: cron.php:12
global $ilCtrl
Definition: ilias.php:18
static sendInfo($a_info="", $a_keep=false)
Send Info Message to Screen.
Confirmation screen class.
+ Here is the call graph for this function:

◆ createStyleObject()

ilObjWikiGUI::createStyleObject ( )

Create Style.

Definition at line 1438 of file class.ilObjWikiGUI.php.

References $ilCtrl.

1439  {
1440  global $ilCtrl;
1441 
1442  $ilCtrl->redirectByClass("ilobjstylesheetgui", "create");
1443  }
global $ilCtrl
Definition: ilias.php:18

◆ deleteStyleObject()

ilObjWikiGUI::deleteStyleObject ( )

Delete Style.

Definition at line 1458 of file class.ilObjWikiGUI.php.

References $ilCtrl.

1459  {
1460  global $ilCtrl;
1461 
1462  $ilCtrl->redirectByClass("ilobjstylesheetgui", "delete");
1463  }
global $ilCtrl
Definition: ilias.php:18

◆ editImportantPagesObject()

ilObjWikiGUI::editImportantPagesObject ( )

List important pages.

Definition at line 1491 of file class.ilObjWikiGUI.php.

References $ilCtrl, ilObjectGUI\$lng, $options, $si, ilObjectGUI\$tpl, ilObjWiki\_lookupImportantPagesList(), ilObjectGUI\checkPermission(), ilWikiPage\getAllPages(), ilUtil\sendInfo(), setSettingsSubTabs(), and ilUtil\shortenText().

1492  {
1493  global $tpl, $ilToolbar, $ilTabs, $lng, $ilCtrl;
1494 
1495  $this->checkPermission("write");
1496 
1497  ilUtil::sendInfo($lng->txt("wiki_navigation_info"));
1498 
1499  $ipages = ilObjWiki::_lookupImportantPagesList($this->object->getId());
1500  $ipages_ids = array();
1501  foreach ($ipages as $i)
1502  {
1503  $ipages_ids[] = $i["page_id"];
1504  }
1505 
1506  // list pages
1507  include_once("./Modules/Wiki/classes/class.ilWikiPage.php");
1508  $pages = ilWikiPage::getAllPages($this->object->getId());
1509  $options = array("" => $lng->txt("please_select"));
1510  foreach ($pages as $p)
1511  {
1512  if (!in_array($p["id"], $ipages_ids))
1513  {
1514  $options[$p["id"]] = ilUtil::shortenText($p["title"], 60, true);
1515  }
1516  }
1517  if (count($options) > 0)
1518  {
1519  include_once("./Services/Form/classes/class.ilSelectInputGUI.php");
1520  $si = new ilSelectInputGUI($lng->txt("wiki_pages"), "imp_page_id");
1521  $si->setOptions($options);
1522  $si->setInfo($lng->txt(""));
1523  $ilToolbar->addInputItem($si);
1524  $ilToolbar->setFormAction($ilCtrl->getFormAction($this));
1525  $ilToolbar->addFormButton($lng->txt("add"), "addImportantPage");
1526  }
1527 
1528 
1529  $ilTabs->activateTab("settings");
1530  $this->setSettingsSubTabs("imp_pages");
1531 
1532  include_once("./Modules/Wiki/classes/class.ilImportantPagesTableGUI.php");
1533  $imp_table = new ilImportantPagesTableGUI($this, "editImportantPages");
1534 
1535  $tpl->setContent($imp_table->getHTML());
1536  }
static _lookupImportantPagesList($a_wiki_id)
Get important pages list.
This class represents a selection list property in a property form.
static shortenText($a_str, $a_len, $a_dots=false, $a_next_blank=false, $a_keep_extension=false)
shorten a string to given length.
global $ilCtrl
Definition: ilias.php:18
static sendInfo($a_info="", $a_keep=false)
Send Info Message to Screen.
setSettingsSubTabs($a_active)
Set sub tabs.
if(!is_array($argv)) $options
checkPermission($a_perm, $a_cmd="", $a_type="", $a_ref_id=null)
Check permission and redirect on error.
static getAllPages($a_wiki_id)
Get all pages of wiki.
+ Here is the call graph for this function:

◆ editSettingsObject()

ilObjWikiGUI::editSettingsObject ( )

Edit settings.

Definition at line 553 of file class.ilObjWikiGUI.php.

References ilObjectGUI\$tpl, ilObjectGUI\checkPermission(), getSettingsFormValues(), initSettingsForm(), setSettingsSubTabs(), and setSideBlock().

554  {
555  global $tpl;
556 
557  $this->checkPermission("write");
558 
559  $this->setSettingsSubTabs("general_settings");
560 
561  $this->initSettingsForm();
562  $this->getSettingsFormValues();
563 
564  // Edit ecs export settings
565  include_once 'Modules/Wiki/classes/class.ilECSWikiSettings.php';
566  $ecs = new ilECSWikiSettings($this->object);
567  $ecs->addSettingsToForm($this->form_gui, 'wiki');
568 
569  $tpl->setContent($this->form_gui->getHtml());
570  $this->setSideBlock();
571  }
setSideBlock($a_wpg_id=0)
Side column.
setSettingsSubTabs($a_active)
Set sub tabs.
Class ilECSWikiSettings.
getSettingsFormValues($a_mode="edit")
initSettingsForm($a_mode="edit")
Init Settings Form.
checkPermission($a_perm, $a_cmd="", $a_type="", $a_ref_id=null)
Check permission and redirect on error.
+ Here is the call graph for this function:

◆ editStyleObject()

ilObjWikiGUI::editStyleObject ( )

Edit Style.

Definition at line 1448 of file class.ilObjWikiGUI.php.

References $ilCtrl.

1449  {
1450  global $ilCtrl;
1451 
1452  $ilCtrl->redirectByClass("ilobjstylesheetgui", "edit");
1453  }
global $ilCtrl
Definition: ilias.php:18

◆ editStylePropertiesObject()

ilObjWikiGUI::editStylePropertiesObject ( )

Edit style properties.

Definition at line 1350 of file class.ilObjWikiGUI.php.

References ilObjectGUI\$tpl, ilObjectGUI\checkPermission(), initStylePropertiesForm(), setSettingsSubTabs(), and setSideBlock().

1351  {
1352  global $ilTabs, $tpl;
1353 
1354  $this->checkPermission("write");
1355 
1356  $this->initStylePropertiesForm();
1357  $tpl->setContent($this->form->getHTML());
1358 
1359  $ilTabs->activateTab("settings");
1360  $this->setSettingsSubTabs("style");
1361 
1362  $this->setSideBlock();
1363  }
setSideBlock($a_wpg_id=0)
Side column.
initStylePropertiesForm()
Init style properties form.
setSettingsSubTabs($a_active)
Set sub tabs.
checkPermission($a_perm, $a_cmd="", $a_type="", $a_ref_id=null)
Check permission and redirect on error.
+ Here is the call graph for this function:

◆ executeCommand()

ilObjWikiGUI::executeCommand ( )

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

References $_GET, $cmd, $ilCtrl, $ilUser, $ret, ilObjectGUI\$tpl, ilObjectGUI\addHeaderAction(), ilObjectGUI\checkPermission(), ilObjStyleSheet\getEffectiveContentStyleId(), ilWikiPageGUI\getGUIForTitle(), ilCommonActionDispatcherGUI\getInstanceFromAjaxCall(), infoScreen(), ilWikiUtil\makeDbTitle(), ilObjectGUI\omitLocator(), ilObjectGUI\prepareOutput(), setContentStyleSheet(), and setSettingsSubTabs().

42  {
43  global $ilUser, $ilCtrl, $tpl, $ilTabs, $ilAccess;
44 
45  $next_class = $this->ctrl->getNextClass($this);
46  $cmd = $this->ctrl->getCmd();
47 
48  $this->prepareOutput();
49 
50  switch($next_class)
51  {
52  case "ilinfoscreengui":
53  $this->checkPermission("visible");
54  $this->addHeaderAction();
55  $this->infoScreen(); // forwards command
56  break;
57 
58  case 'ilpermissiongui':
59  $this->addHeaderAction();
60  $ilTabs->activateTab("perm_settings");
61  include_once("Services/AccessControl/classes/class.ilPermissionGUI.php");
62  $perm_gui =& new ilPermissionGUI($this);
63  $ret =& $this->ctrl->forwardCommand($perm_gui);
64  break;
65 
66  case 'ilwikipagegui':
67  $this->checkPermission("read");
68  include_once("./Modules/Wiki/classes/class.ilWikiPageGUI.php");
69  $wpage_gui = ilWikiPageGUI::getGUIForTitle($this->object->getId(),
70  ilWikiUtil::makeDbTitle($_GET["page"]), $_GET["old_nr"], $this->object->getRefId());
71  include_once("./Services/Style/classes/class.ilObjStyleSheet.php");
72  $wpage_gui->setStyleId(ilObjStyleSheet::getEffectiveContentStyleId(
73  $this->object->getStyleSheetId(), "wiki"));
74  $this->setContentStyleSheet();
75  if (!$ilAccess->checkAccess("write", "", $this->object->getRefId()) &&
76  (!$ilAccess->checkAccess("edit_content", "", $this->object->getRefId()) ||
77  $wpage_gui->getPageObject()->getBlocked()
78  ))
79  {
80  $wpage_gui->setEnableEditing(false);
81  }
82 
83  // alter title and description
84 // $tpl->setTitle($wpage_gui->getPageObject()->getTitle());
85 // $tpl->setDescription($this->object->getTitle());
86 
87  $ret = $this->ctrl->forwardCommand($wpage_gui);
88  if ($ret != "")
89  {
90  $tpl->setContent($ret);
91  }
92  break;
93 
94  case 'ilpublicuserprofilegui':
95  require_once './Services/User/classes/class.ilPublicUserProfileGUI.php';
96  $profile_gui = new ilPublicUserProfileGUI($_GET["user"]);
97  $ret = $this->ctrl->forwardCommand($profile_gui);
98  $tpl->setContent($ret);
99  break;
100 
101  case "ilobjstylesheetgui":
102  include_once ("./Services/Style/classes/class.ilObjStyleSheetGUI.php");
103  $this->ctrl->setReturn($this, "editStyleProperties");
104  $style_gui = new ilObjStyleSheetGUI("", $this->object->getStyleSheetId(), false, false);
105  $style_gui->omitLocator();
106  if ($cmd == "create" || $_GET["new_type"]=="sty")
107  {
108  $style_gui->setCreationMode(true);
109  }
110 
111  if ($cmd == "confirmedDelete")
112  {
113  $this->object->setStyleSheetId(0);
114  $this->object->update();
115  }
116 
117  $ret = $this->ctrl->forwardCommand($style_gui);
118 
119  if ($cmd == "save" || $cmd == "copyStyle" || $cmd == "importStyle")
120  {
121  $style_id = $ret;
122  $this->object->setStyleSheetId($style_id);
123  $this->object->update();
124  $this->ctrl->redirectByClass("ilobjstylesheetgui", "edit");
125  }
126  break;
127 
128  case "ilexportgui":
129 // $this->prepareOutput();
130  $this->addHeaderAction();
131  $ilTabs->activateTab("export");
132  include_once("./Services/Export/classes/class.ilExportGUI.php");
133  $exp_gui = new ilExportGUI($this);
134  $exp_gui->addFormat("xml");
135  $exp_gui->addFormat("html", "", $this, "exportHTML");
136  $ret = $this->ctrl->forwardCommand($exp_gui);
137 // $this->tpl->show();
138  break;
139 
140  case "ilcommonactiondispatchergui":
141  include_once("Services/Object/classes/class.ilCommonActionDispatcherGUI.php");
143  $this->ctrl->forwardCommand($gui);
144  break;
145 
146  case "ilratinggui":
147  // for rating category editing
148  $this->checkPermission("write");
149  $this->addHeaderAction();
150  $ilTabs->activateTab("settings");
151  $this->setSettingsSubTabs("rating_categories");
152  include_once("Services/Rating/classes/class.ilRatingGUI.php");
153  $gui = new ilRatingGUI();
154  $gui->setObject($this->object->getId(), $this->object->getType());
155  $gui->setExportCallback(array($this, "getSubObjectTitle"), $this->lng->txt("page"));
156  $this->ctrl->forwardCommand($gui);
157  break;
158 
159  default:
160  $this->addHeaderAction();
161  if(!$cmd)
162  {
163  $cmd = "infoScreen";
164  }
165  $cmd .= "Object";
166  if ($cmd != "infoScreenObject")
167  {
168  $this->checkPermission("read");
169  }
170  else
171  {
172  $this->checkPermission("visible");
173  }
174  $this->$cmd();
175  break;
176  }
177 
178  return $ret;
179  }
infoScreen()
show information screen
$_GET["client_id"]
$cmd
Definition: sahs_server.php:35
static getGUIForTitle($a_wiki_id, $a_title, $a_old_nr=0, $a_wiki_ref_id=0)
Get wiki page gui for id and title.
global $ilCtrl
Definition: ilias.php:18
Export User Interface Class.
setSettingsSubTabs($a_active)
Set sub tabs.
GUI class for public user profile presentation.
Class ilRatingGUI.
omitLocator($a_omit=true)
static getEffectiveContentStyleId($a_style_id, $a_type="")
Get effective Style Id.
prepareOutput()
prepare output
static makeDbTitle($a_par)
Handle page GET parameter.
global $ilUser
Definition: imgupload.php:15
setContentStyleSheet($a_tpl=null)
Set content style sheet.
Class ilObjStyleSheetGUI.
checkPermission($a_perm, $a_cmd="", $a_type="", $a_ref_id=null)
Check permission and redirect on error.
New PermissionGUI (extends from old ilPermission2GUI) RBAC related output.
addHeaderAction()
Add header action menu.
static getInstanceFromAjaxCall()
(Re-)Build instance from ajax call
+ Here is the call graph for this function:

◆ exportHTML()

ilObjWikiGUI::exportHTML ( )

Create html package.

Definition at line 1631 of file class.ilObjWikiGUI.php.

1632  {
1633  require_once("./Modules/Wiki/classes/class.ilWikiHTMLExport.php");
1634  $cont_exp = new ilWikiHTMLExport($this);
1635  $cont_exp->buildExportFile();
1636  }
Wiki HTML exporter class.

◆ getGotoLink()

static ilObjWikiGUI::getGotoLink (   $a_ref_id,
  $a_page = "" 
)
static

Get goto link.

Definition at line 920 of file class.ilObjWikiGUI.php.

References ilObject\_lookupObjId(), ilObjWiki\_lookupStartPage(), and ilWikiUtil\makeUrlTitle().

Referenced by addLocatorItems(), afterSave(), ilWikiImportantPagesBlockGUI\fillDataSection(), ilWikiPagesTableGUI\fillRow(), ilObjWikiSubItemListGUI\getHTML(), getTabs(), gotoPageObject(), gotoStartPageObject(), and infoScreen().

921  {
922  if ($a_page == "")
923  {
925  }
926 
927  $goto = "goto.php?target=wiki_".$a_ref_id."_".
928  ilWikiUtil::makeUrlTitle($a_page);
929 
930  return $goto;
931  }
static _lookupStartPage($a_wiki_id)
Lookup start page.
static makeUrlTitle($a_par)
Set page parameter for Url Embedding.
static _lookupObjId($a_id)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getSettingsFormValues()

ilObjWikiGUI::getSettingsFormValues (   $a_mode = "edit")

Definition at line 691 of file class.ilObjWikiGUI.php.

References $_GET, $ilUser, ilObjectGUI\$lng, and ilObject\hasAutoRating().

Referenced by editSettingsObject(), and initCreationForms().

692  {
693  global $lng, $ilUser;
694 
695  // set values
696  if ($a_mode == "create")
697  {
698  $values["startpage"] = $lng->txt("wiki_main_page");
699  $values["rating_new"] = true;
700 
701  $values["rating_overall"] = ilObject::hasAutoRating("wiki", $_GET["ref_id"]);
702 
703  $this->form_gui->setValuesByArray($values);
704  }
705  else
706  {
707  $values["online"] = $this->object->getOnline();
708  $values["title"] = $this->object->getTitle();
709  $values["startpage"] = $this->object->getStartPage();
710  $values["shorttitle"] = $this->object->getShortTitle();
711  $values["description"] = $this->object->getLongDescription();
712  $values["rating_overall"] = $this->object->getRatingOverall();
713  $values["rating"] = $this->object->getRating();
714  // $values["rating_side"] = $this->object->getRatingAsBlock();
715  $values["rating_new"] = $this->object->getRatingForNewPages();
716  $values["rating_ext"] = $this->object->getRatingCategories();
717  $values["public_notes"] = $this->object->getPublicNotes();
718  $values["intro"] = $this->object->getIntroduction();
719 // $values["imp_pages"] = $this->object->getImportantPages();
720  $values["page_toc"] = $this->object->getPageToc();
721 
722  $this->form_gui->setValuesByArray($values);
723  }
724  }
$_GET["client_id"]
static hasAutoRating($a_type, $a_ref_id)
Check if auto rating is active for parent group/course.
global $ilUser
Definition: imgupload.php:15
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getSubObjectTitle()

ilObjWikiGUI::getSubObjectTitle (   $a_id,
  $a_type 
)

Used for rating export.

Parameters
int$a_id
string$a_type
Returns
string

Definition at line 1662 of file class.ilObjWikiGUI.php.

References ilWikiPage\lookupTitle().

1663  {
1664  include_once "Modules/Wiki/classes/class.ilWikiPage.php";
1665  return ilWikiPage::lookupTitle($a_id);
1666  }
static lookupTitle($a_page_id)
Checks whether a page with given title exists.
+ Here is the call graph for this function:

◆ getTabs()

ilObjWikiGUI::getTabs (   $tabs_gui)

get tabs public

Parameters
objecttabs gui object

Definition at line 445 of file class.ilObjWikiGUI.php.

References $_GET, $ilCtrl, ilObjectGUI\$lng, getGotoLink(), and ilWikiUtil\makeDbTitle().

446  {
447  global $ilCtrl, $ilAccess, $ilTabs, $lng, $ilHelp;
448 
449  $ilHelp->setScreenIdComponent("wiki");
450 
451  // wiki tabs
452  if (in_array($ilCtrl->getCmdClass(), array("", "ilobjwikigui",
453  "ilinfoscreengui", "ilpermissiongui", "ilexportgui", "ilratingcategorygui")))
454  {
455  if ($_GET["page"] != "")
456  {
457  $tabs_gui->setBackTarget($lng->txt("wiki_last_visited_page"),
458  $this->getGotoLink($_GET["ref_id"],
459  ilWikiUtil::makeDbTitle($_GET["page"])));
460  }
461 
462  // pages
463  if ($ilAccess->checkAccess('read', "", $this->object->getRefId()))
464  {
465  $ilTabs->addTab("wiki_pages",
466  $lng->txt("wiki_pages"),
467  $this->ctrl->getLinkTarget($this, "allPages"));
468  }
469 
470  // info screen
471  if ($ilAccess->checkAccess('visible', "", $this->object->getRefId()))
472  {
473  $ilTabs->addTab("info_short",
474  $lng->txt("info_short"),
475  $this->ctrl->getLinkTargetByClass("ilinfoscreengui", "showSummary"));
476  }
477 
478  // settings
479  if ($ilAccess->checkAccess('write', "", $this->object->getRefId()))
480  {
481  $ilTabs->addTab("settings",
482  $lng->txt("settings"),
483  $this->ctrl->getLinkTarget($this, "editSettings"));
484  }
485 
486  // contributors
487  if ($ilAccess->checkAccess('write', "", $this->object->getRefId()))
488  {
489  $ilTabs->addTab("wiki_contributors",
490  $lng->txt("wiki_contributors"),
491  $this->ctrl->getLinkTarget($this, "listContributors"));
492  }
493 
494  if ($ilAccess->checkAccess("write", "", $this->object->getRefId()))
495  {
496  $ilTabs->addTab("export",
497  $lng->txt("export"),
498  $this->ctrl->getLinkTargetByClass("ilexportgui", ""));
499  }
500 
501 
502  // edit permissions
503  if ($ilAccess->checkAccess('edit_permission', "", $this->object->getRefId()))
504  {
505  $ilTabs->addTab("perm_settings",
506  $lng->txt("perm_settings"),
507  $this->ctrl->getLinkTargetByClass("ilpermissiongui", "perm"));
508  }
509  }
510  }
static getGotoLink($a_ref_id, $a_page="")
Get goto link.
$_GET["client_id"]
global $ilCtrl
Definition: ilias.php:18
static makeDbTitle($a_par)
Handle page GET parameter.
+ Here is the call graph for this function:

◆ gotoPageObject()

ilObjWikiGUI::gotoPageObject (   $a_page = "")

Go to specific page.

Parameters
string$a_pagepage title

Definition at line 1063 of file class.ilObjWikiGUI.php.

References $_GET, $ilCtrl, ilWikiPage\_wikiPageExists(), getGotoLink(), ilWikiUtil\makeDbTitle(), ilWikiUtil\makeUrlTitle(), and ilUtil\redirect().

Referenced by randomPageObject().

1064  {
1065  global $ilCtrl;
1066 
1067  if ($a_page == "")
1068  {
1069  $a_page = $_GET["page"];
1070  }
1071 
1072  include_once("./Modules/Wiki/classes/class.ilWikiPage.php");
1073  if (ilWikiPage::_wikiPageExists($this->object->getId(),
1074  ilWikiUtil::makeDbTitle($a_page)))
1075  {
1076  // to do: get rid of this redirect
1077  ilUtil::redirect(ilObjWikiGUI::getGotoLink($this->object->getRefId(), $a_page));
1078  }
1079  else
1080  {
1081  // create the page
1082  $page = new ilWikiPage();
1083  $page->setWikiId($this->object->getId());
1084  $page->setTitle(ilWikiUtil::makeDbTitle($_GET["page"]));
1085 
1086  if($this->object->getRating() && $this->object->getRatingForNewPages())
1087  {
1088  $page->setRating(true);
1089  }
1090 
1091  // needed for notification
1092  $page->setWikiRefId($this->object->getRefId());
1093 
1094  $page->create();
1095 
1096  // redirect to newly created page
1097  $ilCtrl->setParameterByClass("ilwikipagegui", "page", ilWikiUtil::makeUrlTitle(($a_page)));
1098  $ilCtrl->redirectByClass("ilwikipagegui", "edit");
1099  }
1100  }
static getGotoLink($a_ref_id, $a_page="")
Get goto link.
$_GET["client_id"]
global $ilCtrl
Definition: ilias.php:18
static makeUrlTitle($a_par)
Set page parameter for Url Embedding.
Class ilWikiPage.
static makeDbTitle($a_par)
Handle page GET parameter.
static _wikiPageExists($a_wiki_id, $a_title)
Check whether page exists for wiki or not.
static redirect($a_script)
http redirect to other script
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gotoStartPageObject()

ilObjWikiGUI::gotoStartPageObject ( )

Go to start page.

Definition at line 385 of file class.ilObjWikiGUI.php.

References $ilCtrl, getGotoLink(), and ilUtil\redirect().

Referenced by viewObject().

386  {
387  global $ilCtrl;
388 
389  ilUtil::redirect(ilObjWikiGUI::getGotoLink($this->object->getRefId()));
390  }
static getGotoLink($a_ref_id, $a_page="")
Get goto link.
global $ilCtrl
Definition: ilias.php:18
static redirect($a_script)
http redirect to other script
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ilObjWikiGUI()

ilObjWikiGUI::ilObjWikiGUI (   $a_data,
  $a_id,
  $a_call_by_reference,
  $a_prepare_output = true 
)

Constructor public.

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

References $_GET, $ilCtrl, ilObjectGUI\$lng, ilObjectGUI\ilObjectGUI(), and ilWikiUtil\makeUrlTitle().

27  {
28  global $ilCtrl, $lng;
29 
30  $this->type = "wiki";
31 
32  $this->ilObjectGUI($a_data,$a_id,$a_call_by_reference,$a_prepare_output);
33  $lng->loadLanguageModule("wiki");
34 
35  if ($_GET["page"] != "")
36  {
37  $ilCtrl->setParameter($this, "page", ilWikiUtil::makeUrlTitle($_GET["page"]));
38  }
39  }
$_GET["client_id"]
ilObjectGUI($a_data, $a_id=0, $a_call_by_reference=true, $a_prepare_output=true)
Constructor public.
global $ilCtrl
Definition: ilias.php:18
static makeUrlTitle($a_par)
Set page parameter for Url Embedding.
+ Here is the call graph for this function:

◆ infoScreen()

ilObjWikiGUI::infoScreen ( )

show information screen

Definition at line 300 of file class.ilObjWikiGUI.php.

References $ilUser, ilObjectGUI\$lng, ilLPMarks\_lookupComment(), ilLPMarks\_lookupMark(), ilWikiContributor\_lookupStatus(), getGotoLink(), ilWikiContributor\STATUS_FAILED, ilWikiContributor\STATUS_NOT_GRADED, and ilWikiContributor\STATUS_PASSED.

Referenced by executeCommand(), and infoScreenObject().

301  {
302  global $ilAccess, $ilUser, $ilTabs, $lng;
303 
304  $ilTabs->activateTab("info_short");
305 
306  if (!$ilAccess->checkAccess("visible", "", $this->object->getRefId()))
307  {
308  $this->ilias->raiseError($this->lng->txt("msg_no_perm_read"),$this->ilias->error_obj->MESSAGE);
309  }
310 
311  include_once("./Services/InfoScreen/classes/class.ilInfoScreenGUI.php");
312  $info = new ilInfoScreenGUI($this);
313  $info->enablePrivateNotes();
314  if (trim($this->object->getIntroduction()) != "")
315  {
316  $info->addSection($lng->txt("wiki_introduction"));
317  $info->addProperty("", nl2br($this->object->getIntroduction()));
318  }
319 
320  // feedback from tutor; mark, status, comment
321  include_once("./Modules/Wiki/classes/class.ilWikiContributor.php");
322  include_once("./Services/Tracking/classes/class.ilLPMarks.php");
323  $lpcomment = ilLPMarks::_lookupComment($ilUser->getId(), $this->object->getId());
324  $mark = ilLPMarks::_lookupMark($ilUser->getId(), $this->object->getId());
325  $status = ilWikiContributor::_lookupStatus($this->object->getId(), $ilUser->getId());
326  if ($lpcomment != "" || $mark != "" || $status != ilWikiContributor::STATUS_NOT_GRADED)
327  {
328  $info->addSection($this->lng->txt("wiki_feedback_from_tutor"));
329  if ($lpcomment != "")
330  {
331  $info->addProperty($this->lng->txt("wiki_comment"),
332  $lpcomment);
333  }
334  if ($mark != "")
335  {
336  $info->addProperty($this->lng->txt("wiki_mark"),
337  $mark);
338  }
339 
340  if ($status == ilWikiContributor::STATUS_PASSED)
341  {
342  $info->addProperty($this->lng->txt("status"),
343  $this->lng->txt("wiki_passed"));
344  }
345  if ($status == ilWikiContributor::STATUS_FAILED)
346  {
347  $info->addProperty($this->lng->txt("status"),
348  $this->lng->txt("wiki_failed"));
349  }
350  }
351 
352  /*
353  $info->enableNews();
354  if ($ilAccess->checkAccess("write", "", $_GET["ref_id"]))
355  {
356  //$info->enableNewsEditing();
357  $info->setBlockProperty("news", "settings", true);
358  }*/
359 
360  if ($ilAccess->checkAccess("read", "", $this->object->getRefId()))
361  {
362  $info->addButton($lng->txt("wiki_start_page"), ilObjWikiGUI::getGotoLink($this->object->getRefId()));
363  }
364 
365  // general information
366  $this->lng->loadLanguageModule("meta");
367  $this->lng->loadLanguageModule("wiki");
368 
369  //$info->addSection($this->lng->txt("meta_general"));
370  //$info->addProperty($this->lng->txt("mcst_nr_items"),
371  // (int) count($med_items));
372 
373  // forward the command
374  $this->ctrl->forwardCommand($info);
375 
376  if ($ilAccess->checkAccess("read", "", $this->object->getRefId()))
377  {
378 // $this->setSideBlock();
379  }
380  }
static getGotoLink($a_ref_id, $a_page="")
Get goto link.
Class ilInfoScreenGUI.
_lookupMark($a_usr_id, $a_obj_id)
redirection script todo: (a better solution should control the processing via a xml file) ...
_lookupStatus($a_obj_id, $a_user_id)
Lookup current success status (STATUS_NOT_GRADED|STATUS_PASSED|STATUS_FAILED)
_lookupComment($a_usr_id, $a_obj_id)
global $ilUser
Definition: imgupload.php:15
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ infoScreenObject()

ilObjWikiGUI::infoScreenObject ( )

this one is called from the info button in the repository not very nice to set cmdClass/Cmd manually, if everything works through ilCtrl in the future this may be changed

Definition at line 289 of file class.ilObjWikiGUI.php.

References ilObjectGUI\checkPermission(), and infoScreen().

290  {
291  $this->checkPermission("visible");
292  $this->ctrl->setCmd("showSummary");
293  $this->ctrl->setCmdClass("ilinfoscreengui");
294  $this->infoScreen();
295  }
infoScreen()
show information screen
checkPermission($a_perm, $a_cmd="", $a_type="", $a_ref_id=null)
Check permission and redirect on error.
+ Here is the call graph for this function:

◆ initCreationForms()

ilObjWikiGUI::initCreationForms (   $a_new_type)
protected

Definition at line 204 of file class.ilObjWikiGUI.php.

References getSettingsFormValues(), ilObjectGUI\initImportForm(), and initSettingsForm().

205  {
206  $this->initSettingsForm("create");
207  $this->getSettingsFormValues("create");
208 
209  $forms = array(self::CFORM_NEW => $this->form_gui,
210  self::CFORM_IMPORT => $this->initImportForm($a_new_type));
211 
212  return $forms;
213  }
initImportForm($a_new_type)
Init object import form.
getSettingsFormValues($a_mode="edit")
initSettingsForm($a_mode="edit")
Init Settings Form.
+ Here is the call graph for this function:

◆ initSettingsForm()

ilObjWikiGUI::initSettingsForm (   $a_mode = "edit")

Init Settings Form.

Definition at line 576 of file class.ilObjWikiGUI.php.

References $ilCtrl, $ilSetting, ilObjectGUI\$lng, ilSubEnabledFormPropertyGUI\addSubItem(), ilUtil\getImagePath(), ilTextAreaInputGUI\setCols(), ilFormPropertyGUI\setInfo(), and ilFormPropertyGUI\setRequired().

Referenced by editSettingsObject(), initCreationForms(), saveObject(), and saveSettingsObject().

577  {
578  global $lng, $ilCtrl, $ilTabs, $ilSetting;
579 
580  $lng->loadLanguageModule("wiki");
581  $ilTabs->activateTab("settings");
582 
583  include("Services/Form/classes/class.ilPropertyFormGUI.php");
584  $this->form_gui = new ilPropertyFormGUI();
585 
586  // Title
587  $tit = new ilTextInputGUI($lng->txt("title"), "title");
588  $tit->setRequired(true);
589  $this->form_gui->addItem($tit);
590 
591  // Short Title
592  // The problem with the short title is, that it is per object
593  // and can't be a substitute for a ref id in the permanent link
594 /*
595  $stit = new ilRegExpInputGUI($lng->txt("wiki_short_title"), "shorttitle");
596  $stit->setPattern("/^[^0-9][^ _\&]+$/");
597  $stit->setRequired(false);
598  $stit->setNoMatchMessage($lng->txt("wiki_msg_short_name_regexp")." & _");
599  $stit->setSize(20);
600  $stit->setMaxLength(20);
601  $stit->setInfo($lng->txt("wiki_short_title_desc2"));
602  $this->form_gui->addItem($stit);
603 */
604 
605  // Description
606  $des = new ilTextAreaInputGUI($lng->txt("description"), "description");
607  $this->form_gui->addItem($des);
608 
609  // Introduction
610  $intro = new ilTextAreaInputGUI($lng->txt("wiki_introduction"), "intro");
611  $intro->setCols(40);
612  $intro->setRows(4);
613  $this->form_gui->addItem($intro);
614 
615  // Start Page
616  $sp = new ilTextInputGUI($lng->txt("wiki_start_page"), "startpage");
617  if ($a_mode == "edit")
618  {
619  $sp->setInfo($lng->txt("wiki_start_page_info"));
620  }
621  $sp->setMaxLength(200);
622  $sp->setRequired(true);
623  $this->form_gui->addItem($sp);
624 
625  // Online
626  $online = new ilCheckboxInputGUI($lng->txt("online"), "online");
627  $this->form_gui->addItem($online);
628 
629 
630  // rating
631 
632  $lng->loadLanguageModule('rating');
633  $rate = new ilCheckboxInputGUI($lng->txt('rating_activate_rating'), 'rating_overall');
634  $rate->setInfo($lng->txt('rating_activate_rating_info'));
635  $this->form_gui->addItem($rate);
636 
637  $rating = new ilCheckboxInputGUI($lng->txt("wiki_activate_rating"), "rating");
638  $this->form_gui->addItem($rating);
639 
640  /* always active
641  $side = new ilCheckboxInputGUI($lng->txt("wiki_activate_sideblock_rating"), "rating_side");
642  $rating->addSubItem($side);
643  */
644 
645  $new = new ilCheckboxInputGUI($lng->txt("wiki_activate_new_page_rating"), "rating_new");
646  $rating->addSubItem($new);
647 
648  $extended = new ilCheckboxInputGUI($lng->txt("wiki_activate_extended_rating"), "rating_ext");
649  $rating->addSubItem($extended);
650 
651 
652  // public comments
653  if (!$ilSetting->get("disable_comments"))
654  {
655  $comments = new ilCheckboxInputGUI($lng->txt("wiki_public_comments"), "public_notes");
656  $this->form_gui->addItem($comments);
657  }
658 
659  // important pages
660 // $imp_pages = new ilCheckboxInputGUI($lng->txt("wiki_important_pages"), "imp_pages");
661 // $this->form_gui->addItem($imp_pages);
662 
663  // page toc
664  $page_toc = new ilCheckboxInputGUI($lng->txt("wiki_page_toc"), "page_toc");
665  $page_toc->setInfo($lng->txt("wiki_page_toc_info"));
666  $this->form_gui->addItem($page_toc);
667 
668  // Form action and save button
669  $this->form_gui->setTitleIcon(ilUtil::getImagePath("icon_wiki.png"));
670  if ($a_mode != "create")
671  {
672  $this->form_gui->setTitle($lng->txt("wiki_settings"));
673  $this->form_gui->addCommandButton("saveSettings", $lng->txt("save"));
674  }
675  else
676  {
677  $this->form_gui->setTitle($lng->txt("wiki_new"));
678  $this->form_gui->addCommandButton("save", $lng->txt("wiki_add"));
679  $this->form_gui->addCommandButton("cancel", $lng->txt("cancel"));
680  }
681 
682  // set values
683  if ($a_mode == "create")
684  {
685  $ilCtrl->setParameter($this, "new_type", "wiki");
686  }
687 
688  $this->form_gui->setFormAction($ilCtrl->getFormAction($this, "saveSettings"));
689  }
This class represents a property form user interface.
This class represents a checkbox property in a property form.
global $ilCtrl
Definition: ilias.php:18
setInfo($a_info)
Set Information Text.
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
This class represents a text property in a property form.
global $ilSetting
Definition: privfeed.php:40
This class represents a text area property in a property form.
setRequired($a_required)
Set Required.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ initStylePropertiesForm()

ilObjWikiGUI::initStylePropertiesForm ( )

Init style properties form.

Definition at line 1368 of file class.ilObjWikiGUI.php.

References $_GET, $ilCtrl, $ilSetting, ilObjectGUI\$lng, ilObjStyleSheet\_getStandardStyles(), ilObjStyleSheet\_lookupStandard(), ilObject\_lookupTitle(), ilUtil\formSelect(), ilSelectInputGUI\setOptions(), and ilNonEditableValueGUI\setValue().

Referenced by editStylePropertiesObject().

1369  {
1370  global $ilCtrl, $lng, $ilTabs, $ilSetting;
1371 
1372  include_once("./Services/Style/classes/class.ilObjStyleSheet.php");
1373  $lng->loadLanguageModule("style");
1374 
1375  include_once("./Services/Form/classes/class.ilPropertyFormGUI.php");
1376  $this->form = new ilPropertyFormGUI();
1377 
1378  $fixed_style = $ilSetting->get("fixed_content_style_id");
1379  $style_id = $this->object->getStyleSheetId();
1380 
1381  if ($fixed_style > 0)
1382  {
1383  $st = new ilNonEditableValueGUI($lng->txt("style_current_style"));
1384  $st->setValue(ilObject::_lookupTitle($fixed_style)." (".
1385  $this->lng->txt("global_fixed").")");
1386  $this->form->addItem($st);
1387  }
1388  else
1389  {
1390  $st_styles = ilObjStyleSheet::_getStandardStyles(true, false,
1391  $_GET["ref_id"]);
1392 
1393  $st_styles[0] = $this->lng->txt("default");
1394  ksort($st_styles);
1395 
1396  if ($style_id > 0)
1397  {
1398  // individual style
1399  if (!ilObjStyleSheet::_lookupStandard($style_id))
1400  {
1401  $st = new ilNonEditableValueGUI($lng->txt("style_current_style"));
1402  $st->setValue(ilObject::_lookupTitle($style_id));
1403  $this->form->addItem($st);
1404 
1405 //$this->ctrl->getLinkTargetByClass("ilObjStyleSheetGUI", "edit"));
1406 
1407  // delete command
1408  $this->form->addCommandButton("editStyle",
1409  $lng->txt("style_edit_style"));
1410  $this->form->addCommandButton("deleteStyle",
1411  $lng->txt("style_delete_style"));
1412 //$this->ctrl->getLinkTargetByClass("ilObjStyleSheetGUI", "delete"));
1413  }
1414  }
1415 
1416  if ($style_id <= 0 || ilObjStyleSheet::_lookupStandard($style_id))
1417  {
1418  $style_sel = ilUtil::formSelect ($style_id, "style_id",
1419  $st_styles, false, true);
1420  $style_sel = new ilSelectInputGUI($lng->txt("style_current_style"), "style_id");
1421  $style_sel->setOptions($st_styles);
1422  $style_sel->setValue($style_id);
1423  $this->form->addItem($style_sel);
1424 //$this->ctrl->getLinkTargetByClass("ilObjStyleSheetGUI", "create"));
1425  $this->form->addCommandButton("saveStyleSettings",
1426  $lng->txt("save"));
1427  $this->form->addCommandButton("createStyle",
1428  $lng->txt("sty_create_ind_style"));
1429  }
1430  }
1431  $this->form->setTitle($lng->txt("wiki_style"));
1432  $this->form->setFormAction($ilCtrl->getFormAction($this));
1433  }
This class represents a selection list property in a property form.
This class represents a property form user interface.
$_GET["client_id"]
static _lookupTitle($a_id)
lookup object title
global $ilCtrl
Definition: ilias.php:18
static formSelect($selected, $varname, $options, $multiple=false, $direct_text=false, $size="0", $style_class="", $attribs="", $disabled=false)
Builds a select form field with options and shows the selected option first.
_getStandardStyles($a_exclude_default_style=false, $a_include_deactivated=false, $a_scope=0)
Get standard styles.
setOptions($a_options)
Set Options.
_lookupStandard($a_id)
Lookup standard flag.
This class represents a non editable value in a property form.
global $ilSetting
Definition: privfeed.php:40
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ isOnlineHelpWiki()

ilObjWikiGUI::isOnlineHelpWiki ( )

Is wiki an online help wiki?

Returns
boolean true, if current wiki is an online help wiki

Definition at line 186 of file class.ilObjWikiGUI.php.

References ilObjWiki\isOnlineHelpWiki().

187  {
188  if (is_object($this->object))
189  {
190  return ilObjWiki::isOnlineHelpWiki($this->object->getRefId());
191  }
192  return false;
193  }
static isOnlineHelpWiki($a_ref_id)
Is wiki an online help wiki?
+ Here is the call graph for this function:

◆ listContributorsObject()

ilObjWikiGUI::listContributorsObject ( )

List all contributors.

Definition at line 786 of file class.ilObjWikiGUI.php.

References ilObjectGUI\$tpl, ilObjectGUI\checkPermission(), and setSideBlock().

787  {
788  global $tpl, $ilTabs;
789 
790  $this->checkPermission("write");
791  $ilTabs->activateTab("wiki_contributors");
792 
793  include_once("./Modules/Wiki/classes/class.ilWikiContributorsTableGUI.php");
794 
795  $table_gui = new ilWikiContributorsTableGUI($this, "listContributors",
796  $this->object->getId());
797 
798  $tpl->setContent($table_gui->getHTML());
799 
800  $this->setSideBlock();
801  }
setSideBlock($a_wpg_id=0)
Side column.
TableGUI class for listing users that contributed to the wiki.
checkPermission($a_perm, $a_cmd="", $a_type="", $a_ref_id=null)
Check permission and redirect on error.
+ Here is the call graph for this function:

◆ lookupSubObjectTitle()

static ilObjWikiGUI::lookupSubObjectTitle (   $a_wiki_id,
  $a_page_id 
)
static

Get title for wiki page (used in ilNotesGUI)

Parameters
int$a_wiki_id
int$a_page_id
Returns
string

Definition at line 1645 of file class.ilObjWikiGUI.php.

1646  {
1647  include_once "Modules/Wiki/classes/class.ilWikiPage.php";
1648  $page = new ilWikiPage($a_page_id);
1649  if($page->getWikiId() == $a_wiki_id)
1650  {
1651  return $page->getTitle();
1652  }
1653  }
Class ilWikiPage.

◆ newPagesObject()

ilObjWikiGUI::newPagesObject ( )

Latest pages.

Definition at line 1209 of file class.ilObjWikiGUI.php.

References ilObjectGUI\$tpl, addPagesSubTabs(), ilObjectGUI\checkPermission(), IL_WIKI_NEW_PAGES, and setSideBlock().

1210  {
1211  global $tpl;
1212 
1213  $this->checkPermission("read");
1214 
1215  include_once("./Modules/Wiki/classes/class.ilWikiPagesTableGUI.php");
1216 
1217  $this->addPagesSubTabs();
1218 
1219  $table_gui = new ilWikiPagesTableGUI($this, "newPages",
1220  $this->object->getId(), IL_WIKI_NEW_PAGES);
1221 
1222  $this->setSideBlock();
1223  $tpl->setContent($table_gui->getHTML());
1224  }
setSideBlock($a_wpg_id=0)
Side column.
TableGUI class for wiki pages table.
addPagesSubTabs()
Add Pages SubTabs.
checkPermission($a_perm, $a_cmd="", $a_type="", $a_ref_id=null)
Check permission and redirect on error.
const IL_WIKI_NEW_PAGES
+ Here is the call graph for this function:

◆ orphanedPagesObject()

ilObjWikiGUI::orphanedPagesObject ( )

Orphaned pages.

Definition at line 1041 of file class.ilObjWikiGUI.php.

References ilObjectGUI\$tpl, addPagesSubTabs(), ilObjectGUI\checkPermission(), IL_WIKI_ORPHANED_PAGES, and setSideBlock().

1042  {
1043  global $tpl;
1044 
1045  $this->checkPermission("read");
1046 
1047  include_once("./Modules/Wiki/classes/class.ilWikiPagesTableGUI.php");
1048 
1049  $this->addPagesSubTabs();
1050 
1051  $table_gui = new ilWikiPagesTableGUI($this, "orphanedPages",
1052  $this->object->getId(), IL_WIKI_ORPHANED_PAGES);
1053 
1054  $this->setSideBlock();
1055  $tpl->setContent($table_gui->getHTML());
1056  }
setSideBlock($a_wpg_id=0)
Side column.
TableGUI class for wiki pages table.
addPagesSubTabs()
Add Pages SubTabs.
const IL_WIKI_ORPHANED_PAGES
checkPermission($a_perm, $a_cmd="", $a_type="", $a_ref_id=null)
Check permission and redirect on error.
+ Here is the call graph for this function:

◆ performSearchObject()

ilObjWikiGUI::performSearchObject ( )

Search.

Definition at line 1298 of file class.ilObjWikiGUI.php.

References $_POST, $ilCtrl, ilObjectGUI\$lng, ilObjectGUI\$tpl, ilObjWiki\_performSearch(), ilObjectGUI\checkPermission(), ilUtil\sendFailure(), setSideBlock(), and ilUtil\stripSlashes().

1299  {
1300  global $tpl, $ilTabs, $ilCtrl, $lng;
1301 
1302  $this->checkPermission("read");
1303 
1304  include_once("./Modules/Wiki/classes/class.ilWikiSearchResultsTableGUI.php");
1305 
1306  $ilTabs->setTabActive("wiki_search_results");
1307 
1308  if (trim($_POST["search_term"]) == "")
1309  {
1310  ilUtil::sendFailure($lng->txt("wiki_please_enter_search_term"), true);
1311  $ilCtrl->redirectByClass("ilwikipagegui", "preview");
1312  }
1313 
1314  $search_results = ilObjWiki::_performSearch($this->object->getId(),
1315  ilUtil::stripSlashes($_POST["search_term"]));
1316  $table_gui = new ilWikiSearchResultsTableGUI($this, "performSearch",
1317  $this->object->getId(), $search_results, $_POST["search_term"]);
1318 
1319  $this->setSideBlock();
1320  $tpl->setContent($table_gui->getHTML());
1321  }
setSideBlock($a_wpg_id=0)
Side column.
$_POST['username']
Definition: cron.php:12
TableGUI class for recent changes in wiki.
global $ilCtrl
Definition: ilias.php:18
static _performSearch($a_wiki_id, $a_searchterm)
Search in Wiki.
static stripSlashes($a_str, $a_strip_html=true, $a_allow="")
strip slashes if magic qoutes is enabled
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
checkPermission($a_perm, $a_cmd="", $a_type="", $a_ref_id=null)
Check permission and redirect on error.
+ Here is the call graph for this function:

◆ popularPagesObject()

ilObjWikiGUI::popularPagesObject ( )

Popular pages.

Definition at line 1021 of file class.ilObjWikiGUI.php.

References ilObjectGUI\$tpl, addPagesSubTabs(), ilObjectGUI\checkPermission(), IL_WIKI_POPULAR_PAGES, and setSideBlock().

1022  {
1023  global $tpl;
1024 
1025  $this->checkPermission("read");
1026 
1027  include_once("./Modules/Wiki/classes/class.ilWikiPagesTableGUI.php");
1028 
1029  $this->addPagesSubTabs();
1030 
1031  $table_gui = new ilWikiPagesTableGUI($this, "popularPages",
1032  $this->object->getId(), IL_WIKI_POPULAR_PAGES);
1033 
1034  $this->setSideBlock();
1035  $tpl->setContent($table_gui->getHTML());
1036  }
setSideBlock($a_wpg_id=0)
Side column.
const IL_WIKI_POPULAR_PAGES
TableGUI class for wiki pages table.
addPagesSubTabs()
Add Pages SubTabs.
checkPermission($a_perm, $a_cmd="", $a_type="", $a_ref_id=null)
Check permission and redirect on error.
+ Here is the call graph for this function:

◆ printViewObject()

ilObjWikiGUI::printViewObject ( )

Show printable view of a wiki page.

Definition at line 1229 of file class.ilObjWikiGUI.php.

References $_GET, $_POST, ilObjectGUI\$tpl, ilObjectGUI\checkPermission(), exit, ilWikiPage\getAllPages(), ilObjStyleSheet\getContentPrintStyle(), ilObjStyleSheet\getSyntaxStylePath(), and setContentStyleSheet().

1230  {
1231  $this->checkPermission("read");
1232 
1233  switch ($_POST["sel_type"])
1234  {
1235  case "wiki":
1236  include_once("./Modules/Wiki/classes/class.ilWikiPage.php");
1237  $pages = ilWikiPage::getAllPages($this->object->getId());
1238  foreach ($pages as $p)
1239  {
1240  $pg_ids[] = $p["id"];
1241  }
1242  break;
1243 
1244  case "selection":
1245  if (is_array($_POST["obj_id"]))
1246  {
1247  $pg_ids = $_POST["obj_id"];
1248  }
1249  else
1250  {
1251  $pg_ids[] = $_GET["wpg_id"];
1252  }
1253  break;
1254 
1255  default:
1256  $pg_ids[] = $_GET["wpg_id"];
1257  break;
1258  }
1259 
1260  include_once("./Modules/Wiki/classes/class.ilWikiPageGUI.php");
1261 
1262  global $tpl;
1263 
1264  $tpl = new ilTemplate("tpl.main.html", true, true);
1265  $tpl->setVariable("LOCATION_STYLESHEET", ilObjStyleSheet::getContentPrintStyle());
1266  $this->setContentStyleSheet($tpl);
1267 
1268  // syntax style
1269  $tpl->setCurrentBlock("SyntaxStyle");
1270  $tpl->setVariable("LOCATION_SYNTAX_STYLESHEET",
1272  $tpl->parseCurrentBlock();
1273 
1274 
1275  // determine target frames for internal links
1276 
1277  foreach ($pg_ids as $p_id)
1278  {
1279  $page_gui = new ilWikiPageGUI($p_id);
1280  $page_gui->setOutputMode("print");
1281  $page_content.= $page_gui->showPage();
1282  }
1283  $tpl->setVariable("CONTENT", '<div class="ilInvisibleBorder">'.$page_content.'</div>'.
1284  '<script type="text/javascript" language="javascript1.2">
1285  <!--
1286  il.Util.addOnLoad(function () {
1287  il.Util.print();
1288  });
1289  //-->
1290  </script>');
1291  $tpl->show(false);
1292  exit;
1293  }
exit
Definition: login.php:54
$_POST['username']
Definition: cron.php:12
$_GET["client_id"]
getSyntaxStylePath()
get syntax style path
special template class to simplify handling of ITX/PEAR
Class ilWikiPage GUI class.
getContentPrintStyle()
get content print style
setContentStyleSheet($a_tpl=null)
Set content style sheet.
checkPermission($a_perm, $a_cmd="", $a_type="", $a_ref_id=null)
Check permission and redirect on error.
static getAllPages($a_wiki_id)
Get all pages of wiki.
+ Here is the call graph for this function:

◆ randomPageObject()

ilObjWikiGUI::randomPageObject ( )

Go to random page.

Parameters
string$a_pagepage title

Definition at line 1107 of file class.ilObjWikiGUI.php.

References ilObjectGUI\checkPermission(), ilWikiPage\getRandomPage(), and gotoPageObject().

1108  {
1109  $this->checkPermission("read");
1110 
1111  include_once("./Modules/Wiki/classes/class.ilWikiPage.php");
1112  $page = ilWikiPage::getRandomPage($this->object->getId());
1113  $this->gotoPageObject($page);
1114  }
static getRandomPage($a_wiki_id)
Get a random page.
gotoPageObject($a_page="")
Go to specific page.
checkPermission($a_perm, $a_cmd="", $a_type="", $a_ref_id=null)
Check permission and redirect on error.
+ Here is the call graph for this function:

◆ recentChangesObject()

ilObjWikiGUI::recentChangesObject ( )

Recent Changes.

Definition at line 1119 of file class.ilObjWikiGUI.php.

References ilObjectGUI\$tpl, addPagesSubTabs(), ilObjectGUI\checkPermission(), and setSideBlock().

1120  {
1121  global $tpl;
1122 
1123  $this->checkPermission("read");
1124 
1125  include_once("./Modules/Wiki/classes/class.ilWikiRecentChangesTableGUI.php");
1126 
1127  $this->addPagesSubTabs();
1128 
1129  $table_gui = new ilWikiRecentChangesTableGUI($this, "recentChanges",
1130  $this->object->getId());
1131 
1132  $this->setSideBlock();
1133  $tpl->setContent($table_gui->getHTML());
1134  }
setSideBlock($a_wpg_id=0)
Side column.
addPagesSubTabs()
Add Pages SubTabs.
checkPermission($a_perm, $a_cmd="", $a_type="", $a_ref_id=null)
Check permission and redirect on error.
TableGUI class for recent changes in wiki.
+ Here is the call graph for this function:

◆ removeImportantPagesObject()

ilObjWikiGUI::removeImportantPagesObject ( )

Remove important pages.

Parameters

Definition at line 1594 of file class.ilObjWikiGUI.php.

References $_POST, $ilCtrl, ilObjectGUI\$lng, ilObjectGUI\checkPermission(), and ilUtil\sendSuccess().

1595  {
1596  global $ilCtrl, $lng;
1597 
1598  $this->checkPermission("write");
1599 
1600  if (is_array($_POST["imp_page_id"]))
1601  {
1602  foreach ($_POST["imp_page_id"] as $i)
1603  {
1604  $this->object->removeImportantPage((int) $i);
1605  }
1606  }
1607  ilUtil::sendSuccess($lng->txt("wiki_removed_imp_pages"), true);
1608  $ilCtrl->redirect($this, "editImportantPages");
1609  }
static sendSuccess($a_info="", $a_keep=false)
Send Success Message to Screen.
$_POST['username']
Definition: cron.php:12
global $ilCtrl
Definition: ilias.php:18
checkPermission($a_perm, $a_cmd="", $a_type="", $a_ref_id=null)
Check permission and redirect on error.
+ Here is the call graph for this function:

◆ renderSideBlock()

static ilObjWikiGUI::renderSideBlock (   $a_wpg_id,
  $a_wiki_ref_id,
  $a_wp = null 
)
static

Side column.

Definition at line 1148 of file class.ilObjWikiGUI.php.

References ilObjectGUI\$lng, ilObjectGUI\$tpl, ilObject\_lookupObjId(), ilObjWiki\_lookupRating(), and ilObjWiki\_lookupRatingCategories().

Referenced by ilWikiPageGUI\setSideBlock(), and setSideBlock().

1149  {
1150  global $tpl, $lng;
1151 
1152  if ($a_wpg_id > 0 && !$a_wp)
1153  {
1154  include_once("./Modules/Wiki/classes/class.ilWikiPage.php");
1155  $a_wp = ilWikiPage($a_wpg_id);
1156  }
1157 
1158  // search block
1159  include_once("./Modules/Wiki/classes/class.ilWikiSearchBlockGUI.php");
1160  $wiki_search_block = new ilWikiSearchBlockGUI();
1161  $rcontent = $wiki_search_block->getHTML();
1162 
1163  // quick navigation
1164  if ($a_wpg_id > 0)
1165  {
1166 // include_once("./Modules/Wiki/classes/class.ilWikiSideBlockGUI.php");
1167 // $wiki_side_block = new ilWikiSideBlockGUI();
1168 // $wiki_side_block->setPageObject($a_wp);
1169 // $rcontent.= $wiki_side_block->getHTML();
1170 
1171  // rating
1172  $wiki_id =ilObject::_lookupObjId($a_wiki_ref_id);
1173  if(ilObjWiki::_lookupRating($wiki_id) &&
1174  // ilObjWiki::_lookupRatingAsBlock($wiki_id) &&
1175  $a_wp->getRating())
1176  {
1177  include_once("./Services/Rating/classes/class.ilRatingGUI.php");
1178  $rgui = new ilRatingGUI();
1179  $rgui->setObject($wiki_id, "wiki", $a_wpg_id, "wpg");
1180  $rgui->enableCategories(ilObjWiki::_lookupRatingCategories($wiki_id));
1181  $rgui->setYourRatingText("#");
1182  $rcontent .= $rgui->getBlockHTML($lng->txt("wiki_rate_page"));
1183  }
1184  }
1185 
1186  // important pages
1187 // if (ilObjWiki::_lookupImportantPages(ilObject::_lookupObjId($a_wiki_ref_id)))
1188 // {
1189  include_once("./Modules/Wiki/classes/class.ilWikiImportantPagesBlockGUI.php");
1190  $imp_pages_block = new ilWikiImportantPagesBlockGUI();
1191  $rcontent.= $imp_pages_block->getHTML();
1192 // }
1193 
1194  // wiki functions block
1195  if ($a_wpg_id > 0)
1196  {
1197  include_once("./Modules/Wiki/classes/class.ilWikiFunctionsBlockGUI.php");
1198  $wiki_functions_block = new ilWikiFunctionsBlockGUI();
1199  $wiki_functions_block->setPageObject($a_wp);
1200  $rcontent .= $wiki_functions_block->getHTML();
1201  }
1202 
1203  $tpl->setRightContent($rcontent);
1204  }
BlockGUI class for wiki searchblock.
static _lookupRatingCategories($a_wiki_id)
Lookup whether rating categories are activated.
BlockGUI class for wiki functions block.
static _lookupRating($a_wiki_id)
Lookup whether rating is activated.
Class ilRatingGUI.
static _lookupObjId($a_id)
Class ilWikiPage.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ saveGradingObject()

ilObjWikiGUI::saveGradingObject ( )

Save grading.

Definition at line 806 of file class.ilObjWikiGUI.php.

References $_POST, $ilCtrl, ilObjectGUI\$lng, ilWikiContributor\_lookupStatus(), ilWikiContributor\_writeStatus(), ilObjectGUI\checkPermission(), ilLPMarks\getComment(), ilUtil\sendSuccess(), and ilUtil\stripSlashes().

807  {
808  global $ilCtrl, $lng;
809 
810  $this->checkPermission("write");
811 
812  $users = (is_array($_POST["user_id"])
813  ? $_POST["user_id"]
814  : array());
815 
816  include_once("./Modules/Wiki/classes/class.ilWikiContributor.php");
817  include_once("./Services/Tracking/classes/class.ilLPMarks.php");
818  $saved = false;
819  foreach($users as $user_id)
820  {
821  if ($user_id != "")
822  {
823  $marks_obj = new ilLPMarks($this->object->getId(),$user_id);
824  $new_mark = ilUtil::stripSlashes($_POST['mark'][$user_id]);
825  $new_comment = ilUtil::stripSlashes($_POST['lcomment'][$user_id]);
826  $new_status = ilUtil::stripSlashes($_POST["status"][$user_id]);
827 
828  if ($marks_obj->getMark() != $new_mark ||
829  $marks_obj->getComment() != $new_comment ||
830  ilWikiContributor::_lookupStatus($this->object->getId(), $user_id) != $new_status)
831  {
832  ilWikiContributor::_writeStatus($this->object->getId(), $user_id, $new_status);
833  $marks_obj->setMark($new_mark);
834  $marks_obj->setComment($new_comment);
835  $marks_obj->update();
836  $saved = true;
837  }
838  }
839  }
840  if ($saved)
841  {
842  ilUtil::sendSuccess($lng->txt("msg_obj_modified"), true);
843  }
844 
845  $ilCtrl->redirect($this, "listContributors");
846  }
static sendSuccess($a_info="", $a_keep=false)
Send Success Message to Screen.
$_POST['username']
Definition: cron.php:12
global $ilCtrl
Definition: ilias.php:18
_writeStatus($a_obj_id, $a_user_id, $a_status)
Write success status.
static stripSlashes($a_str, $a_strip_html=true, $a_allow="")
strip slashes if magic qoutes is enabled
_lookupStatus($a_obj_id, $a_user_id)
Lookup current success status (STATUS_NOT_GRADED|STATUS_PASSED|STATUS_FAILED)
checkPermission($a_perm, $a_cmd="", $a_type="", $a_ref_id=null)
Check permission and redirect on error.
+ Here is the call graph for this function:

◆ saveObject()

ilObjWikiGUI::saveObject ( )

save object public

Definition at line 219 of file class.ilObjWikiGUI.php.

References $_GET, $_POST, ilObjectGUI\$lng, ilObjectGUI\$tpl, ilObjectGUI\checkPermissionBool(), ilObjWiki\checkShortTitleAvailability(), and initSettingsForm().

220  {
221  global $tpl, $lng, $rbacsystem;
222 
223  if (!$this->checkPermissionBool("create", "", "wiki", $_GET["ref_id"]))
224  {
225  $this->ilias->raiseError($this->lng->txt("permission_denied"),$this->ilias->error_obj->MESSAGE);
226  }
227 
228  $this->initSettingsForm("create");
229  if ($this->form_gui->checkInput())
230  {
231  if (!ilObjWiki::checkShortTitleAvailability($this->form_gui->getInput("shorttitle")))
232  {
233  $short_item = $this->form_gui->getItemByPostVar("shorttitle");
234  $short_item->setAlert($lng->txt("wiki_short_title_already_in_use"));
235  }
236  else
237  {
238  // create and insert forum in objecttree
239  $_POST["title"] = $this->form_gui->getInput("title");
240  $_POST["desc"] = $this->form_gui->getInput("description");
241  return parent::saveObject();
242  }
243  }
244 
245  $this->form_gui->setValuesByPost();
246  $tpl->setContent($this->form_gui->getHtml());
247  }
$_POST['username']
Definition: cron.php:12
$_GET["client_id"]
static checkShortTitleAvailability($a_short_title)
Check availability of short title.
redirection script todo: (a better solution should control the processing via a xml file) ...
initSettingsForm($a_mode="edit")
Init Settings Form.
checkPermissionBool($a_perm, $a_cmd="", $a_type="", $a_ref_id=null)
Check permission.
+ Here is the call graph for this function:

◆ saveOrderingAndIndentObject()

ilObjWikiGUI::saveOrderingAndIndentObject ( )

Save important pages ordering and indentation.

Parameters

Definition at line 1617 of file class.ilObjWikiGUI.php.

References $_POST, $ilCtrl, ilObjectGUI\$lng, ilObjectGUI\checkPermission(), and ilUtil\sendSuccess().

1618  {
1619  global $ilCtrl, $lng;
1620 
1621  $this->checkPermission("write");
1622 
1623  $this->object->saveOrderingAndIndentation($_POST["ord"], $_POST["indent"]);
1624  ilUtil::sendSuccess($lng->txt("wiki_ordering_and_indent_saved"), true);
1625  $ilCtrl->redirect($this, "editImportantPages");
1626  }
static sendSuccess($a_info="", $a_keep=false)
Send Success Message to Screen.
$_POST['username']
Definition: cron.php:12
global $ilCtrl
Definition: ilias.php:18
checkPermission($a_perm, $a_cmd="", $a_type="", $a_ref_id=null)
Check permission and redirect on error.
+ Here is the call graph for this function:

◆ saveSettingsObject()

ilObjWikiGUI::saveSettingsObject ( )

Save Settings.

Definition at line 730 of file class.ilObjWikiGUI.php.

References $ilCtrl, $ilSetting, $ilUser, ilObjectGUI\$lng, ilObjectGUI\checkPermission(), ilObjWiki\checkShortTitleAvailability(), initSettingsForm(), and ilUtil\sendSuccess().

731  {
732  global $ilCtrl, $lng, $ilUser, $ilSetting;
733 
734  $this->checkPermission("write");
735 
736  $this->initSettingsForm();
737 
738  if ($this->form_gui->checkInput())
739  {
740  if (!ilObjWiki::checkShortTitleAvailability($this->form_gui->getInput("shorttitle")) &&
741  $this->form_gui->getInput("shorttitle") != $this->object->getShortTitle())
742  {
743  $short_item = $this->form_gui->getItemByPostVar("shorttitle");
744  $short_item->setAlert($lng->txt("wiki_short_title_already_in_use"));
745  }
746  else
747  {
748  $this->object->setTitle($this->form_gui->getInput("title"));
749  $this->object->setDescription($this->form_gui->getInput("description"));
750  $this->object->setOnline($this->form_gui->getInput("online"));
751  $this->object->setStartPage($this->form_gui->getInput("startpage"));
752  $this->object->setShortTitle($this->form_gui->getInput("shorttitle"));
753  $this->object->setRatingOverall($this->form_gui->getInput("rating_overall"));
754  $this->object->setRating($this->form_gui->getInput("rating"));
755  // $this->object->setRatingAsBlock($this->form_gui->getInput("rating_side"));
756  $this->object->setRatingForNewPages($this->form_gui->getInput("rating_new"));
757  $this->object->setRatingCategories($this->form_gui->getInput("rating_ext"));
758 
759  if (!$ilSetting->get("disable_comments"))
760  {
761  $this->object->setPublicNotes($this->form_gui->getInput("public_notes"));
762  }
763  $this->object->setIntroduction($this->form_gui->getInput("intro"));
764 // $this->object->setImportantPages($this->form_gui->getInput("imp_pages"));
765  $this->object->setPageToc($this->form_gui->getInput("page_toc"));
766  $this->object->update();
767 
768  // Update ecs export settings
769  include_once 'Modules/Wiki/classes/class.ilECSWikiSettings.php';
770  $ecs = new ilECSWikiSettings($this->object);
771  if($ecs->handleSettingsUpdate())
772  {
773  ilUtil::sendSuccess($this->lng->txt("msg_obj_modified"),true);
774  $ilCtrl->redirect($this, "editSettings");
775  }
776  }
777  }
778 
779  $this->form_gui->setValuesByPost();
780  $this->tpl->setContent($this->form_gui->getHTML());
781  }
static sendSuccess($a_info="", $a_keep=false)
Send Success Message to Screen.
static checkShortTitleAvailability($a_short_title)
Check availability of short title.
global $ilCtrl
Definition: ilias.php:18
Class ilECSWikiSettings.
initSettingsForm($a_mode="edit")
Init Settings Form.
global $ilUser
Definition: imgupload.php:15
global $ilSetting
Definition: privfeed.php:40
checkPermission($a_perm, $a_cmd="", $a_type="", $a_ref_id=null)
Check permission and redirect on error.
+ Here is the call graph for this function:

◆ saveStyleSettingsObject()

ilObjWikiGUI::saveStyleSettingsObject ( )

Save style settings.

Definition at line 1468 of file class.ilObjWikiGUI.php.

References $_POST, $ilSetting, ilObjStyleSheet\_lookupStandard(), ilUtil\sendSuccess(), and ilUtil\stripSlashes().

1469  {
1470  global $ilSetting;
1471 
1472  include_once("./Services/Style/classes/class.ilObjStyleSheet.php");
1473  if ($ilSetting->get("fixed_content_style_id") <= 0 &&
1474  (ilObjStyleSheet::_lookupStandard($this->object->getStyleSheetId())
1475  || $this->object->getStyleSheetId() == 0))
1476  {
1477  $this->object->setStyleSheetId(ilUtil::stripSlashes($_POST["style_id"]));
1478  $this->object->update();
1479  ilUtil::sendSuccess($this->lng->txt("msg_obj_modified"), true);
1480  }
1481  $this->ctrl->redirect($this, "editStyleProperties");
1482  }
static sendSuccess($a_info="", $a_keep=false)
Send Success Message to Screen.
$_POST['username']
Definition: cron.php:12
static stripSlashes($a_str, $a_strip_html=true, $a_allow="")
strip slashes if magic qoutes is enabled
_lookupStandard($a_id)
Lookup standard flag.
global $ilSetting
Definition: privfeed.php:40
+ Here is the call graph for this function:

◆ setContentStyleSheet()

ilObjWikiGUI::setContentStyleSheet (   $a_tpl = null)

Set content style sheet.

Definition at line 1326 of file class.ilObjWikiGUI.php.

References ilObjectGUI\$tpl, and ilObjStyleSheet\getContentStylePath().

Referenced by executeCommand(), printViewObject(), and viewPageObject().

1327  {
1328  global $tpl;
1329 
1330  if ($a_tpl != null)
1331  {
1332  $ctpl = $a_tpl;
1333  }
1334  else
1335  {
1336  $ctpl = $tpl;
1337  }
1338 
1339  $ctpl->setCurrentBlock("ContentStyle");
1340  $ctpl->setVariable("LOCATION_CONTENT_STYLESHEET",
1341  ilObjStyleSheet::getContentStylePath($this->object->getStyleSheetId()));
1342  $ctpl->parseCurrentBlock();
1343 
1344  }
getContentStylePath($a_style_id)
get content style path
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setSettingsSubTabs()

ilObjWikiGUI::setSettingsSubTabs (   $a_active)

Set sub tabs.

Definition at line 515 of file class.ilObjWikiGUI.php.

References $ilCtrl, and ilObjectGUI\$lng.

Referenced by editImportantPagesObject(), editSettingsObject(), editStylePropertiesObject(), and executeCommand().

516  {
517  global $ilTabs, $ilCtrl, $lng;
518 
519  if (in_array($a_active,
520  array("general_settings", "style", "imp_pages", "rating_categories")))
521  {
522  // general properties
523  $ilTabs->addSubTab("general_settings",
524  $lng->txt("wiki_general_settings"),
525  $ilCtrl->getLinkTarget($this, 'editSettings'));
526 
527  // style properties
528  $ilTabs->addSubTab("style",
529  $lng->txt("wiki_style"),
530  $ilCtrl->getLinkTarget($this, 'editStyleProperties'));
531 
532  // important pages
533  $ilTabs->addSubTab("imp_pages",
534  $lng->txt("wiki_navigation"),
535  $ilCtrl->getLinkTarget($this, 'editImportantPages'));
536 
537  // rating categories
538  if($this->object->getRating() && $this->object->getRatingCategories())
539  {
540  $lng->loadLanguageModule("rating");
541  $ilTabs->addSubTab("rating_categories",
542  $lng->txt("rating_categories"),
543  $ilCtrl->getLinkTargetByClass(array('ilratinggui', 'ilratingcategorygui'), ''));
544  }
545 
546  $ilTabs->activateSubTab($a_active);
547  }
548  }
global $ilCtrl
Definition: ilias.php:18
+ Here is the caller graph for this function:

◆ setSideBlock()

ilObjWikiGUI::setSideBlock (   $a_wpg_id = 0)

Side column.

Definition at line 1139 of file class.ilObjWikiGUI.php.

References renderSideBlock().

Referenced by allPagesObject(), editSettingsObject(), editStylePropertiesObject(), listContributorsObject(), newPagesObject(), orphanedPagesObject(), performSearchObject(), popularPagesObject(), and recentChangesObject().

1140  {
1141  ilObjWikiGUI::renderSideBlock($a_wpg_id, $this->object->getRefId());
1142  }
static renderSideBlock($a_wpg_id, $a_wiki_ref_id, $a_wp=null)
Side column.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ viewObject()

ilObjWikiGUI::viewObject ( )

Start page.

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

References ilObjectGUI\checkPermission(), and gotoStartPageObject().

199  {
200  $this->checkPermission("read");
201  $this->gotoStartPageObject();
202  }
gotoStartPageObject()
Go to start page.
checkPermission($a_perm, $a_cmd="", $a_type="", $a_ref_id=null)
Check permission and redirect on error.
+ Here is the call graph for this function:

◆ viewPageObject()

ilObjWikiGUI::viewPageObject ( )

view wiki page

Definition at line 936 of file class.ilObjWikiGUI.php.

References $_GET, $ilCtrl, ilObjectGUI\$lng, ilObjectGUI\$tpl, ilObjectGUI\checkPermission(), ilWikiPage\exists(), ilObjStyleSheet\getEffectiveContentStyleId(), ilWikiPageGUI\getGUIForTitle(), ilWikiUtil\makeDbTitle(), ilWikiUtil\makeUrlTitle(), ilUtil\sendInfo(), and setContentStyleSheet().

937  {
938  global $lng, $ilCtrl, $tpl, $ilTabs, $ilAccess;
939 
940  $this->checkPermission("read");
941 
942  $ilTabs->clearTargets();
943  $tpl->setHeaderActionMenu(null);
944 
945  $page = ($_GET["page"] != "")
946  ? $_GET["page"]
947  : $this->object->getStartPage();
948  $_GET["page"] = $page;
949 
950  include_once("./Modules/Wiki/classes/class.ilWikiPage.php");
951  if (!ilWikiPage::exists($this->object->getId(), $page))
952  {
953  $page = $this->object->getStartPage();
954  }
955 
956  if (!ilWikiPage::exists($this->object->getId(), $page))
957  {
958  ilUtil::sendInfo($lng->txt("wiki_no_start_page"), true);
959  $ilCtrl->redirect($this, "infoScreen");
960  return;
961  }
962 
963  // page exists, show it !
964  $ilCtrl->setParameter($this, "page", ilWikiUtil::makeUrlTitle($page));
965 
966  include_once("./Modules/Wiki/classes/class.ilWikiPageGUI.php");
967  $wpage_gui = ilWikiPageGUI::getGUIForTitle($this->object->getId(),
968  ilWikiUtil::makeDbTitle($page), 0, $this->object->getRefId());
969  include_once("./Services/Style/classes/class.ilObjStyleSheet.php");
970  $wpage_gui->setStyleId(ilObjStyleSheet::getEffectiveContentStyleId(
971  $this->object->getStyleSheetId(), "wiki"));
972 
973  $this->setContentStyleSheet();
974  //$wpage_gui->setOutputMode(IL_PAGE_PREVIEW);
975 
976  //$wpage_gui->setSideBlock();
977  $ilCtrl->setCmdClass("ilwikipagegui");
978  $ilCtrl->setCmd("preview");
979  if (!$ilAccess->checkAccess("write", "", $this->object->getRefId()) &&
980  (!$ilAccess->checkAccess("edit_content", "", $this->object->getRefId()) ||
981  $wpage_gui->getPageObject()->getBlocked()
982  ))
983  {
984  $wpage_gui->setEnableEditing(false);
985  }
986 
987  // alter title and description
988  //$tpl->setTitle($wpage_gui->getPageObject()->getTitle());
989  //$tpl->setDescription($this->object->getTitle());
990 
991 
992  $html = $ilCtrl->forwardCommand($wpage_gui);
993  //$this->addPageTabs();
994 
995  $tpl->setContent($html);
996  }
$_GET["client_id"]
static getGUIForTitle($a_wiki_id, $a_title, $a_old_nr=0, $a_wiki_ref_id=0)
Get wiki page gui for id and title.
global $ilCtrl
Definition: ilias.php:18
static sendInfo($a_info="", $a_keep=false)
Send Info Message to Screen.
static makeUrlTitle($a_par)
Set page parameter for Url Embedding.
static getEffectiveContentStyleId($a_style_id, $a_type="")
Get effective Style Id.
static makeDbTitle($a_par)
Handle page GET parameter.
static exists($a_wiki_id, $a_title)
Checks whether a page with given title exists.
setContentStyleSheet($a_tpl=null)
Set content style sheet.
checkPermission($a_perm, $a_cmd="", $a_type="", $a_ref_id=null)
Check permission and redirect on error.
+ Here is the call graph for this function:

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