/**
  * Generates the code needed to render the nodes as a tree-view element.
  * The elements themselves are loaded via ajax, so only the root-node and the initial
  * folding-params are generated right here.
  *
  * @param string $strSideContent
  * @return string
  */
 private function generateTreeView($strSideContent)
 {
     $strReturn = "";
     //generate the array of ids to expand initially
     $arrNodes = $this->getPathArray();
     $strReturn .= $this->objToolkit->getTreeview(class_link::getLinkAdminXml($this->getArrModule("modul"), "getChildNodes"), $arrNodes[0], $arrNodes, $strSideContent);
     return $strReturn;
 }
Пример #2
0
/**
 * Generates an admin-url to trigger xml-requests. Takes care of url-rewriting
 *
 * @deprecated
 *
 * @param $strModule
 * @param string $strAction
 * @param string $strParams
 * @param bool $bitEncodedAmpersand
 *
 * @return mixed|string
 */
function getLinkAdminXml($strModule, $strAction = "", $strParams = "", $bitEncodedAmpersand = false)
{
    return class_link::getLinkAdminXml($strModule, $strAction, $strParams, $bitEncodedAmpersand);
}
Пример #3
0
 /**
  * @return array
  */
 protected function getDefaultActionHandlers()
 {
     $arrReturn = array();
     if ($this->getObjModule()->rightDelete()) {
         $arrReturn[] = new class_admin_batchaction(class_adminskin_helper::getAdminImage("icon_delete"), class_link::getLinkAdminXml("system", "delete", "&systemid=%systemid%"), $this->getLang("commons_batchaction_delete"));
     }
     if ($this->getObjModule()->rightEdit()) {
         $arrReturn[] = new class_admin_batchaction(class_adminskin_helper::getAdminImage("icon_enabled"), class_link::getLinkAdminXml("system", "setStatus", "&systemid=%systemid%&status=1"), $this->getLang("commons_batchaction_enable"));
         $arrReturn[] = new class_admin_batchaction(class_adminskin_helper::getAdminImage("icon_disabled"), class_link::getLinkAdminXml("system", "setStatus", "&systemid=%systemid%&status=0"), $this->getLang("commons_batchaction_disable"));
     }
     return $arrReturn;
 }
 /**
  * @param string $strListIdentifier
  *
  * @return array
  */
 protected function getBatchActionHandlers($strListIdentifier)
 {
     $arrDefault = array();
     if ($this->getObjModule()->rightDelete()) {
         $arrDefault[] = new class_admin_batchaction(class_adminskin_helper::getAdminImage("icon_delete"), class_link::getLinkAdminXml("system", "delete", "&systemid=%systemid%"), $this->getLang("commons_batchaction_delete"));
     }
     $arrDefault[] = new class_admin_batchaction(class_adminskin_helper::getAdminImage("icon_mail"), class_link::getLinkAdminXml("messaging", "setRead", "&systemid=%systemid%"), $this->getLang("batchaction_read"));
     $arrDefault[] = new class_admin_batchaction(class_adminskin_helper::getAdminImage("icon_mailNew"), class_link::getLinkAdminXml("messaging", "setUnread", "&systemid=%systemid%"), $this->getLang("batchaction_unread"));
     return $arrDefault;
 }
    /**
     * Generates the code needed to render the pages and folder as a tree-view element.
     * The elements themselves are loaded via ajax, so only the root-node and the initial
     * folding-params are generated right here.
     *
     * @param string $strSideContent
     *
     * @return string
     * @permissions view
     */
    private function generateTreeView($strSideContent)
    {
        $strReturn = "";
        //generate the array of ids to expand initially
        $arrNodes = array_merge(array($this->getObjModule()->getSystemid()), $this->getPathArray($this->getSystemid()));
        $strReturn .= $this->objToolkit->getTreeview(class_link::getLinkAdminXml("pages", "getChildNodes"), "", $arrNodes, $strSideContent);
        //ticket #931: no hierarchical drag n drop for folders
        $strJS = <<<JS
            \$(function() {
                \$("table.admintable i.fa-folder-o").closest("tr").find("td.treedrag i").remove();
                \$("table.admintable i.fa-folder-o").closest("tr").find("td.treedrag").css("cursor", "auto");
                \$("table.admintable i.fa-folder-o").closest("tr").find("td.treedrag").removeClass("jstree-draggable");
            });
JS;
        $strJS = "<script type='text/javascript'>" . $strJS . "</script>";
        return $strReturn . $strJS;
    }
 /**
  * @param string $strListIdentifier
  *
  * @return array
  */
 protected function getBatchActionHandlers($strListIdentifier)
 {
     $arrDefault = array();
     $arrDefault[] = new class_admin_batchaction(class_adminskin_helper::getAdminImage("icon_text"), class_link::getLinkAdminXml("packageserver", "updateDataFromMetadata", "&systemid=%systemid%"), $this->getLang("batchaction_metadata"));
     return $arrDefault;
 }