Public Member Functions | Data Fields

ilPersonalDesktopGUI Class Reference

GUI class for personal desktop. More...

Public Member Functions

 ilPersonalDesktopGUI ()
 constructor
executeCommand ()
 execute command
 showShoppingCart ()
 getStandardTemplates ()
 get standard templates
 getTreeModeTemplates ()
 get tree mode templates
 show ()
 show desktop
 getCenterColumnHTML ()
 Display center column.
 getRightColumnHTML ()
 Display right column.
 getLeftColumnHTML ()
 Display left column.
 prepareContentView ()
 dropItem ()
 drop item from desktop
 removeMember ()
 copied from usr_personaldesktop.php
 displaySystemMessages ()
 Display system messages.
 displayFeedback ()
 Display Links for Feedback.
 multiarray_sort ($array, $key_sort)
 Returns the multidimenstional sorted array.
 setTabs ()
 set personal desktop tabs
 jumpToProfile ()
 workaround for menu in calendar only
 jumpToBookmarks ()
 workaround for menu in calendar only
 jumpToNotes ()
 workaround for menu in calendar only
 jumpToNews ()
 workaround for menu in calendar only
 jumpToLP ()
 workaround for menu in calendar only
 __loadNextClass ()
 __storeLastClass ($a_class)
 showUserProfile ()
 show profile of other user
 initColumn ($a_column_gui)
 Init ilColumnGUI.

Data Fields

 $tpl
 $lng
 $ilias
 $cmdClass = ''

Detailed Description

GUI class for personal desktop.

Author:
Alex Killing <alex.killing@gmx.de>
Version:
Id:
class.ilPersonalDesktopGUI.php 15159 2007-10-31 09:31:46Z akill

ilPersonalDesktopGUI: ilPersonalProfileGUI, ilBookmarkAdministrationGUI ilPersonalDesktopGUI: ilObjUserGUI, ilPDNotesGUI, ilLearningProgressGUI, ilFeedbackGUI, ilPaymentGUI, ilPaymentAdminGUI ilPersonalDesktopGUI: ilColumnGUI, ilPDNewsGUI

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


Member Function Documentation

ilPersonalDesktopGUI::__loadNextClass (  ) 

Definition at line 681 of file class.ilPersonalDesktopGUI.php.

References $_SESSION.

Referenced by executeCommand().

        {
                $stored_classes = array('ilpersonaldesktopgui',
                                                                'ilpersonalprofilegui',
                                                                'ilpdnotesgui',
                                                                'ilbookmarkadministrationgui',
                                                                'illearningprogressgui',
                                                                'ilpaymentadmingui');

                if(isset($_SESSION['il_pd_history']) and in_array($_SESSION['il_pd_history'],$stored_classes))
                {
                        return $_SESSION['il_pd_history'];
                }
                else
                {
                        $this->ctrl->getNextClass($this);
                }
        }

Here is the caller graph for this function:

ilPersonalDesktopGUI::__storeLastClass ( a_class  ) 

Definition at line 699 of file class.ilPersonalDesktopGUI.php.

References $_SESSION.

Referenced by executeCommand().

        {
                $_SESSION['il_pd_history'] = $a_class;
                $this->cmdClass = $a_class;
        }

Here is the caller graph for this function:

ilPersonalDesktopGUI::displayFeedback (  ) 

Display Links for Feedback.

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

        {
                include_once("./Services/Feedback/classes/class.ilPDFeedbackBlockGUI.php");
                $fb_block = new ilPDFeedbackBlockGUI("ilpersonaldesktopgui", "show");
                return $fb_block->getHTML();

                include_once('Services/Feedback/classes/class.ilFeedbackGUI.php');
                $feedback_gui = new ilFeedbackGUI();
                return $feedback_gui->getPDFeedbackListHTML();
        }

ilPersonalDesktopGUI::displaySystemMessages (  ) 

Display system messages.

Definition at line 424 of file class.ilPersonalDesktopGUI.php.

        {
                include_once("Services/Mail/classes/class.ilPDSysMessageBlockGUI.php");
                $sys_block = new ilPDSysMessageBlockGUI("ilpersonaldesktopgui", "show");
                return $sys_block->getHTML();
        }

ilPersonalDesktopGUI::dropItem (  ) 

drop item from desktop

Definition at line 400 of file class.ilPersonalDesktopGUI.php.

References $_GET, and show().

        {
                global $ilUser;
                
                $ilUser->dropDesktopItem($_GET["item_ref_id"], $_GET["type"]);
                $this->show();
        }

Here is the call graph for this function:

& ilPersonalDesktopGUI::executeCommand (  ) 

execute command

Definition at line 79 of file class.ilPersonalDesktopGUI.php.

References $_GET, $cmd, $ilSetting, $ret, __loadNextClass(), __storeLastClass(), ilUtil::getImagePath(), getStandardTemplates(), getTreeModeTemplates(), initColumn(), ilUtil::redirect(), ilUtil::sendInfo(), setTabs(), show(), and showShoppingCart().

        {
                global $ilUser, $ilSetting;

                $next_class = $this->ctrl->getNextClass();
                $this->ctrl->setReturn($this, "show");
                
                // check whether personal profile of user is incomplete
                if ($ilUser->getProfileIncomplete() && $next_class != "ilpersonalprofilegui")
                {
                        $this->ctrl->redirectByClass("ilpersonalprofilegui");
                }
                
                // read last active subsection
                if($_GET['PDHistory'])
                {
                        $next_class = $this->__loadNextClass();
                }
                $this->__storeLastClass($next_class);

                switch($next_class)
                {
                        //Feedback
                        case "ilfeedbackgui":
                                $this->getStandardTemplates();
                                $this->setTabs();
                                $this->tpl->setTitle($this->lng->txt("personal_desktop"));
                                $this->tpl->setTitleIcon(ilUtil::getImagePath("icon_pd_b.gif"),
                                        $this->lng->txt("personal_desktop"));

                                include_once("Services/Feedback/classes/class.ilFeedbackGUI.php");
                                $feedback_gui = new ilFeedbackGUI();
                                $ret =& $this->ctrl->forwardCommand($feedback_gui);
                                break;
                                // bookmarks
                        case "ilbookmarkadministrationgui":
                                if ($ilSetting->get('disable_bookmarks'))
                                {
                                        ilUtil::sendInfo($this->lng->txt('permission_denied'), true);                                   
                                        ilUtil::redirect('ilias.php?baseClass=ilPersonalDesktopGUI');
                                        return;
                                }                               
                                
                                include_once("./Services/PersonalDesktop/classes/class.ilBookmarkAdministrationGUI.php");
                                $bookmark_gui = new ilBookmarkAdministrationGUI();
                                if ($bookmark_gui->getMode() == 'tree') {
                                        $this->getTreeModeTemplates();
                                } else {
                                        $this->getStandardTemplates();
                                }
                                $this->setTabs();
                                $ret =& $this->ctrl->forwardCommand($bookmark_gui);
                                break;
                        
                                // profile
                        case "ilpersonalprofilegui":
                                $this->getStandardTemplates();
                                $this->setTabs();
                                include_once("./Services/User/classes/class.ilPersonalProfileGUI.php");
                                $profile_gui = new ilPersonalProfileGUI();
                                $ret =& $this->ctrl->forwardCommand($profile_gui);
                                break;
                        
                                // profile
                        case "ilobjusergui":
                                include_once('./Services/User/classes/class.ilObjUserGUI.php');
                                $user_gui = new ilObjUserGUI("",$_GET["user"], false, false);
                                $ret =& $this->ctrl->forwardCommand($user_gui);
                                break;
                        
                                // pd notes
                        case "ilpdnotesgui":
                                if ($ilSetting->get('disable_notes'))
                                {
                                        ilUtil::sendInfo($this->lng->txt('permission_denied'), true);                                   
                                        ilUtil::redirect('ilias.php?baseClass=ilPersonalDesktopGUI');
                                        return;
                                }
                                
                                $this->getStandardTemplates();
                                $this->setTabs();
                                include_once("classes/class.ilPDNotesGUI.php");
                                $pd_notes_gui = new ilPDNotesGUI();
                                $ret =& $this->ctrl->forwardCommand($pd_notes_gui);
                                break;
                        
                        // pd news
                        case "ilpdnewsgui":
                                $this->getStandardTemplates();
                                $this->setTabs();
                                include_once("./Services/News/classes/class.ilPDNewsGUI.php");
                                $pd_news_gui = new ilPDNewsGUI();
                                $ret =& $this->ctrl->forwardCommand($pd_news_gui);
                                break;

                        case "illearningprogressgui":
                                $this->getStandardTemplates();
                                $this->setTabs();
                                include_once './Services/Tracking/classes/class.ilLearningProgressGUI.php';
                                $new_gui =& new ilLearningProgressGUI(LP_MODE_PERSONAL_DESKTOP,0);
                                $ret =& $this->ctrl->forwardCommand($new_gui);
                                break;
                        
                                // payment
                        case "ilpaymentgui":
                                $this->showShoppingCart();
                                break;

                        case "ilpaymentadmingui":                               
                                $this->getStandardTemplates();
                                $this->setTabs();
                                include_once("./payment/classes/class.ilPaymentAdminGUI.php");
                                $pa =& new ilPaymentAdminGUI($ilUser);
                                $ret =& $this->ctrl->forwardCommand($pa);
                                $this->tpl->show();
                                break;

                        case "ilcolumngui":
                                $this->getStandardTemplates();
                                $this->setTabs();
                                include_once("./Services/Block/classes/class.ilColumnGUI.php");
                                $column_gui = new ilColumnGUI("pd");
                                $this->initColumn($column_gui);
                                $this->show();
                                break;
                                
                        default:
                                $this->getStandardTemplates();
                                $this->setTabs();
                                $cmd = $this->ctrl->getCmd("show");
                                $this->$cmd();
                                break;
                }
                return true;
        }

Here is the call graph for this function:

ilPersonalDesktopGUI::getCenterColumnHTML (  ) 

Display center column.

Definition at line 280 of file class.ilPersonalDesktopGUI.php.

References $ilCtrl, and initColumn().

Referenced by show().

        {
                global $ilCtrl;
                
                include_once("Services/Block/classes/class.ilColumnGUI.php");
                $column_gui = new ilColumnGUI("pd", IL_COL_CENTER);
                $this->initColumn($column_gui);

                if ($ilCtrl->getNextClass() == "ilcolumngui" &&
                        $column_gui->getCmdSide() == IL_COL_CENTER)
                {
                        $html = $ilCtrl->forwardCommand($column_gui);
                }
                else
                {
                        if (!$ilCtrl->isAsynch())
                        {
                                if ($column_gui->getScreenMode() != IL_SCREEN_SIDE)
                                {
                                        // right column wants center
                                        if ($column_gui->getCmdSide() == IL_COL_RIGHT)
                                        {
                                                $column_gui = new ilColumnGUI("pd", IL_COL_RIGHT);
                                                $this->initColumn($column_gui);
                                                $html = $ilCtrl->forwardCommand($column_gui);
                                        }
                                        // left column wants center
                                        if ($column_gui->getCmdSide() == IL_COL_LEFT)
                                        {
                                                $column_gui = new ilColumnGUI("pd", IL_COL_LEFT);
                                                $this->initColumn($column_gui);
                                                $html = $ilCtrl->forwardCommand($column_gui);
                                        }
                                }
                                else
                                {
                                        $html = $ilCtrl->getHTML($column_gui);
                                }
                        }
                }
                return $html;
        }

Here is the call graph for this function:

Here is the caller graph for this function:

ilPersonalDesktopGUI::getLeftColumnHTML (  ) 

Display left column.

Definition at line 354 of file class.ilPersonalDesktopGUI.php.

References $ilCtrl, $lng, and initColumn().

Referenced by show(), and showUserProfile().

        {
                global $ilUser, $lng, $ilCtrl;

                include_once("Services/Block/classes/class.ilColumnGUI.php");
                $column_gui = new ilColumnGUI("pd", IL_COL_LEFT);
                $this->initColumn($column_gui);
                
                if ($ilCtrl->getNextClass() == "ilcolumngui" &&
                        $column_gui->getCmdSide() == IL_COL_LEFT &&
                        $column_gui->getScreenMode() == IL_SCREEN_SIDE)
                {
                        $html = $ilCtrl->forwardCommand($column_gui);
                }
                else
                {
                        if (!$ilCtrl->isAsynch())
                        {
                                $html = $ilCtrl->getHTML($column_gui);
                        }
                }

                return $html;
        }

Here is the call graph for this function:

Here is the caller graph for this function:

ilPersonalDesktopGUI::getRightColumnHTML (  ) 

Display right column.

Definition at line 326 of file class.ilPersonalDesktopGUI.php.

References $ilCtrl, $lng, and initColumn().

Referenced by show(), and showUserProfile().

        {
                global $ilUser, $lng, $ilCtrl;
                
                include_once("Services/Block/classes/class.ilColumnGUI.php");
                $column_gui = new ilColumnGUI("pd", IL_COL_RIGHT);
                $this->initColumn($column_gui);
                
                if ($ilCtrl->getNextClass() == "ilcolumngui" &&
                        $column_gui->getCmdSide() == IL_COL_RIGHT &&
                        $column_gui->getScreenMode() == IL_SCREEN_SIDE)
                {
                        $html = $ilCtrl->forwardCommand($column_gui);
                }
                else
                {
                        if (!$ilCtrl->isAsynch())
                        {
                                $html = $ilCtrl->getHTML($column_gui);
                        }
                }

                return $html;
        }

Here is the call graph for this function:

Here is the caller graph for this function:

ilPersonalDesktopGUI::getStandardTemplates (  ) 

get standard templates

Definition at line 230 of file class.ilPersonalDesktopGUI.php.

Referenced by executeCommand(), and showShoppingCart().

        {
                // add template for content
                $this->tpl->addBlockFile("CONTENT", "content", "tpl.adm_content.html");
                $this->tpl->addBlockFile("STATUSLINE", "statusline", "tpl.statusline.html");
                $this->tpl->addBlockFile("LOCATOR", "locator", "tpl.locator.html");
        }

Here is the caller graph for this function:

ilPersonalDesktopGUI::getTreeModeTemplates (  ) 

get tree mode templates

Definition at line 241 of file class.ilPersonalDesktopGUI.php.

Referenced by executeCommand().

        {
                // add template for content
                //$this->tpl->addBlockFile("CONTENT", "content", "tpl.adm_tree_content.html");
                $this->tpl->addBlockFile("CONTENT", "content", "tpl.adm_content.html");
                $this->tpl->addBlockFile("STATUSLINE", "statusline", "tpl.statusline.html");
                $this->tpl->addBlockFile("LOCATOR", "locator", "tpl.locator.html");
        }

Here is the caller graph for this function:

ilPersonalDesktopGUI::ilPersonalDesktopGUI (  ) 

constructor

Definition at line 50 of file class.ilPersonalDesktopGUI.php.

References $_GET, $_SESSION, $ilCtrl, $ilias, $lng, and $tpl.

        {
                global $ilias, $tpl, $lng, $rbacsystem, $ilCtrl, $ilMainMenu, $ilUser, $tree;
                
                
                $this->tpl =& $tpl;
                $this->lng =& $lng;
                $this->ilias =& $ilias;
                $this->ctrl =& $ilCtrl;
                
                $ilCtrl->setContext($ilUser->getId(),
                                "user");

                $ilMainMenu->setActive("desktop");
                $this->lng->loadLanguageModule("pdesk");
                
                // catch hack attempts
                if ($_SESSION["AccountId"] == ANONYMOUS_USER_ID)
                {
                        $this->ilias->raiseError($this->lng->txt("msg_not_available_for_anon"),$this->ilias->error_obj->MESSAGE);
                }
                $this->cmdClass = $_GET['cmdClass'];
                
                $tree->useCache(true);
        }

ilPersonalDesktopGUI::initColumn ( a_column_gui  ) 

Init ilColumnGUI.

Definition at line 737 of file class.ilPersonalDesktopGUI.php.

Referenced by executeCommand(), getCenterColumnHTML(), getLeftColumnHTML(), and getRightColumnHTML().

        {
                $pd_set = new ilSetting("pd");
                if ($pd_set->get("enable_block_moving"))
                {
                        $a_column_gui->setEnableMovement(true);
                }
        }

Here is the caller graph for this function:

ilPersonalDesktopGUI::jumpToBookmarks (  ) 

workaround for menu in calendar only

Definition at line 638 of file class.ilPersonalDesktopGUI.php.

References ilUtil::redirect(), and ilUtil::sendInfo().

        {
                if ($this->ilias->getSetting("disable_bookmarks"))
                {
                        ilUtil::sendInfo($this->lng->txt('permission_denied'), true);                                   
                        ilUtil::redirect('ilias.php?baseClass=ilPersonalDesktopGUI');
                        return;
                }
                
                $this->ctrl->redirectByClass("ilbookmarkadministrationgui");
        }

Here is the call graph for this function:

ilPersonalDesktopGUI::jumpToLP (  ) 

workaround for menu in calendar only

Definition at line 676 of file class.ilPersonalDesktopGUI.php.

        {
                $this->ctrl->redirectByClass("illearningprogressgui");
        }

ilPersonalDesktopGUI::jumpToNews (  ) 

workaround for menu in calendar only

Definition at line 668 of file class.ilPersonalDesktopGUI.php.

        {
                $this->ctrl->redirectByClass("ilpdnewsgui");
        }

ilPersonalDesktopGUI::jumpToNotes (  ) 

workaround for menu in calendar only

Definition at line 653 of file class.ilPersonalDesktopGUI.php.

References ilUtil::redirect(), and ilUtil::sendInfo().

        {
                if ($this->ilias->getSetting('disable_notes'))
                {
                        ilUtil::sendInfo($this->lng->txt('permission_denied'), true);                                   
                        ilUtil::redirect('ilias.php?baseClass=ilPersonalDesktopGUI');
                        return;
                }               
                
                $this->ctrl->redirectByClass("ilpdnotesgui");                   
        }

Here is the call graph for this function:

ilPersonalDesktopGUI::jumpToProfile (  ) 

workaround for menu in calendar only

Definition at line 630 of file class.ilPersonalDesktopGUI.php.

        {
                $this->ctrl->redirectByClass("ilpersonalprofilegui");
        }

ilPersonalDesktopGUI::multiarray_sort ( array,
key_sort 
)

Returns the multidimenstional sorted array.

Returns the multidimenstional sorted array

Author:
Muzaffar Altaf <maltaf@tzi.de>
Parameters:
array $arrays The array to be sorted
string $key_sort The keys on which array must be sorted public

Definition at line 456 of file class.ilPersonalDesktopGUI.php.

        {
                if ($array) {
                        $key_sorta = explode(";", $key_sort);
                        
                        $multikeys = array_keys($array);
                        $keys = array_keys($array[$multikeys[0]]);
                        
                        for($m=0; $m < count($key_sorta); $m++) {
                                $nkeys[$m] = trim($key_sorta[$m]);
                        }
                        $n += count($key_sorta);
                        
                        for($i=0; $i < count($keys); $i++){
                                if(!in_array($keys[$i], $key_sorta)) {
                                        $nkeys[$n] = $keys[$i];
                                        $n += "1";
                                }
                        }
                        
                        for($u=0;$u<count($array); $u++) {
                                $arr = $array[$multikeys[$u]];
                                for($s=0; $s<count($nkeys); $s++) {
                                        $k = $nkeys[$s];
                                        $output[$multikeys[$u]][$k] = $array[$multikeys[$u]][$k];
                                }
                        }
                        sort($output);
                        return $output;
                }
        }

ilPersonalDesktopGUI::prepareContentView (  ) 

Definition at line 379 of file class.ilPersonalDesktopGUI.php.

References ilUtil::getImagePath(), ilUtil::infoPanel(), and ilUtil::sendInfo().

Referenced by showUserProfile().

        {
                // add template for content
                $this->pd_tpl = new ilTemplate("tpl.usr_personaldesktop.html", true, true);
                $this->tpl->getStandardTemplate();
                
                // catch feedback message
                ilUtil::sendInfo();
                
                // display infopanel if something happened
                ilUtil::infoPanel();
                
                $this->tpl->setTitleIcon(ilUtil::getImagePath("icon_pd_b.gif"),
                        $this->lng->txt("personal_desktop"));
                $this->tpl->setTitle($this->lng->txt("personal_desktop"));
                $this->tpl->setVariable("IMG_SPACE", ilUtil::getImagePath("spacer.gif", false));
        }

Here is the call graph for this function:

Here is the caller graph for this function:

ilPersonalDesktopGUI::removeMember (  ) 

copied from usr_personaldesktop.php

Definition at line 411 of file class.ilPersonalDesktopGUI.php.

References show().

        {
                global $err_msg;
                if (strlen($err_msg) > 0)
                {
                        $this->ilias->raiseError($this->lng->txt($err_msg),$this->ilias->error_obj->MESSAGE);
                }
                $this->show();
        }

Here is the call graph for this function:

ilPersonalDesktopGUI::setTabs (  ) 

set personal desktop tabs

Definition at line 491 of file class.ilPersonalDesktopGUI.php.

References $_GET, $_SESSION, $command, $ilCtrl, $ilSetting, $inc_type, $inhalt1, $script_name, ilObjUserTracking::_enabledLearningProgress(), ilPaymentBookings::_getCountBookingsByCustomer(), ilPaymentTrustees::_hasAccess(), ilPaymentShoppingCart::_hasEntries(), and ilPaymentVendors::_isVendor().

Referenced by executeCommand(), and showShoppingCart().

        {
                global $ilCtrl, $ilSetting;
                
                $this->tpl->addBlockFile("TABS", "tabs", "tpl.tabs.html");
                
                $script_name = basename($_SERVER["SCRIPT_NAME"]);
                
                $command = $_GET["cmd"] ? $_GET["cmd"] : "";
                
                if (ereg("whois",$command) or $script_name == "profile.php")
                {
                        $who_is_online = true;
                }
                
                // to do: use ilTabsGUI here!
                
                // personal desktop home
                $inc_type = (strtolower($_GET["baseClass"]) == "ilpersonaldesktopgui" &&
                (strtolower($this->cmdClass) == "ilpersonaldesktopgui" ||
                $this->cmdClass == "" || (strtolower($this->cmdClass)) == "ilfeedbackgui"
                || $ilCtrl->getNextClass() == "ilcolumngui"))
                ? "tabactive"
                : "tabinactive";
                $inhalt1[] = array($inc_type, $this->ctrl->getLinkTarget($this), $this->lng->txt("overview"));
                
                // user profile
                $inc_type = (strtolower($this->cmdClass) == "ilpersonalprofilegui")
                ? "tabactive"
                : "tabinactive";
                $inhalt1[] = array($inc_type, $this->ctrl->getLinkTargetByClass("ilPersonalProfileGUI"),
                $this->lng->txt("personal_profile"));
                
                if ($_SESSION["AccountId"] != ANONYMOUS_USER_ID)
                {
                        // news
                        if ($ilSetting->get("block_activated_news"))
                        {
                                $inc_type = ($ilCtrl->getNextClass() == "ilpdnewsgui")
                                        ? "tabactive"
                                        : "tabinactive";
                                        
                                $inhalt1[] = array($inc_type,
                                        $this->ctrl->getLinkTargetByClass("ilpdnewsgui"),
                                        $this->lng->txt("news"));
                        }

                        // user calendar
                        if ($this->ilias->getSetting("enable_calendar"))
                        {
                                $inc_type = ($script_name == "dateplaner.php")
                                ? "tabactive"
                                : "tabinactive";
                                $inhalt1[] = array($inc_type,"dateplaner.php",$this->lng->txt("calendar"));
                        }
                                                
                        // private notes
                        if (!$this->ilias->getSetting("disable_notes"))
                        {
                                $inc_type = (strtolower($this->cmdClass) == "ilpdnotesgui" ||
                                strtolower($this->cmdClass) == "ilnotegui")
                                ? "tabactive"
                                : "tabinactive";
                                $inhalt1[] = array($inc_type,
                                $this->ctrl->getLinkTargetByClass("ilpdnotesgui"),
                                $this->lng->txt("private_notes"));
                        }
                        
                        // user bookmarks
                        if (!$this->ilias->getSetting("disable_bookmarks"))
                        {
                                $inc_type = (strtolower($this->cmdClass) == "ilbookmarkadministrationgui")
                                ? "tabactive"
                                : "tabinactive";
                                $inhalt1[] = array($inc_type,
                                $this->ctrl->getLinkTargetByClass("ilbookmarkadministrationgui"),
                                $this->lng->txt("bookmarks"));
                        }                       
                }
                
                // Tracking
                
                include_once("Services/Tracking/classes/class.ilObjUserTracking.php");
                if (ilObjUserTracking::_enabledLearningProgress())
                {
                        $cmd_classes = array('illplistofobjectsgui','illplistofsettingsgui','illearningprogressgui','illplistofprogressgui');
                        $inc_type = in_array(strtolower($this->cmdClass),$cmd_classes) ? 'tabactive' : 'tabinactive';
                        
                        $inhalt1[] = array($inc_type, $this->ctrl->getLinkTargetByClass("ilLearningProgressGUI"),
                        $this->lng->txt("learning_progress"));
                }
                
                include_once "./payment/classes/class.ilPaymentVendors.php";
                include_once "./payment/classes/class.ilPaymentTrustees.php";
                include_once "./payment/classes/class.ilPaymentShoppingCart.php";
                include_once "./payment/classes/class.ilPaymentBookings.php";
                
                if(ilPaymentShoppingCart::_hasEntries($this->ilias->account->getId()) or
                ilPaymentBookings::_getCountBookingsByCustomer($this->ilias->account->getId()))
                {
                        $this->lng->loadLanguageModule('payment');

                        $cmd_classes = array('ilpaymentgui','ilpaymentshoppingcartgui','ilpaymentbuyedobjectsgui');
                        $inc_type = in_array(strtolower($this->cmdClass),$cmd_classes) ? 'tabactive' : 'tabinactive';

                        $inhalt1[] = array($inc_type, $this->ctrl->getLinkTargetByClass("ilPaymentGUI"),
                        $this->lng->txt("paya_shopping_cart"));
                }
                if(ilPaymentVendors::_isVendor($this->ilias->account->getId()) or
                ilPaymentTrustees::_hasAccess($this->ilias->account->getId()))
                {
                        $this->lng->loadLanguageModule('payment');

                        $cmd_classes = array('ilpaymentstatisticgui','ilpaymentobjectgui','ilpaymenttrusteegui','ilpaymentadmingui');
                        $inc_type = in_array(strtolower($this->cmdClass),$cmd_classes) ? 'tabactive' : 'tabinactive';

                        $inhalt1[] = array($inc_type, $this->ctrl->getLinkTargetByClass("ilPaymentAdminGUI"),
                        $this->lng->txt("paya_header"));
                }
                
                for ( $i=0; $i<sizeof($inhalt1); $i++)
                {
                        if ($inhalt1[$i][1] != "")
                        {       $this->tpl->setCurrentBlock("tab");
                                $this->tpl->setVariable("TAB_TYPE",$inhalt1[$i][0]);
                                $this->tpl->setVariable("TAB_LINK",$inhalt1[$i][1]);
                                $this->tpl->setVariable("TAB_TEXT",$inhalt1[$i][2]);
                                $this->tpl->setVariable("TAB_TARGET",$inhalt1[$i][3]);
                                $this->tpl->parseCurrentBlock();
                        }
                }
                
                $this->tpl->setCurrentBlock("tabs");
                $this->tpl->parseCurrentBlock();
        }

Here is the call graph for this function:

Here is the caller graph for this function:

ilPersonalDesktopGUI::show (  ) 

show desktop

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

References getCenterColumnHTML(), ilUtil::getImagePath(), getLeftColumnHTML(), getRightColumnHTML(), ilUtil::infoPanel(), and ilUtil::sendInfo().

Referenced by dropItem(), executeCommand(), and removeMember().

        {
                // add template for content
                $this->pd_tpl = new ilTemplate("tpl.usr_personaldesktop.html", true, true);
                $this->tpl->getStandardTemplate();
                
                // catch feedback message
                ilUtil::sendInfo();
                
                // display infopanel if something happened
                ilUtil::infoPanel();
                
                $this->tpl->setTitleIcon(ilUtil::getImagePath("icon_pd_b.gif"),
                        $this->lng->txt("personal_desktop"));
                $this->tpl->setTitle($this->lng->txt("personal_desktop"));
                $this->tpl->setVariable("IMG_SPACE", ilUtil::getImagePath("spacer.gif", false));
                
                $this->tpl->setContent($this->getCenterColumnHTML());
                $this->tpl->setRightContent($this->getRightColumnHTML());
                $this->tpl->setLeftContent($this->getLeftColumnHTML());
                $this->tpl->show();
        }

Here is the call graph for this function:

Here is the caller graph for this function:

ilPersonalDesktopGUI::showShoppingCart (  ) 

Definition at line 215 of file class.ilPersonalDesktopGUI.php.

References $ret, getStandardTemplates(), and setTabs().

Referenced by executeCommand().

        {
                global $ilUser;
                $this->getStandardTemplates();
                $this->setTabs();
                include_once("./payment/classes/class.ilPaymentGUI.php");
                $pa =& new ilPaymentGUI($ilUser);
                $ret =& $this->ctrl->forwardCommand($pa);
                $this->tpl->show();
                return true;
        }

Here is the call graph for this function:

Here is the caller graph for this function:

ilPersonalDesktopGUI::showUserProfile (  ) 

show profile of other user

Definition at line 708 of file class.ilPersonalDesktopGUI.php.

References $_GET, $ilCtrl, $lng, ilUtil::getImagePath(), getLeftColumnHTML(), getRightColumnHTML(), and prepareContentView().

        {
                global $lng, $ilCtrl;
                
                $this->prepareContentView();
                
                include_once('./Services/User/classes/class.ilObjUserGUI.php');
                $user_gui = new ilObjUserGUI("",$_GET["user"], false, false);
                
                include_once("./Services/PersonalDesktop/classes/class.ilPDContentBlockGUI.php");
                $content_block = new ilPDContentBlockGUI("ilpersonaldesktopgui", "show");
                $content_block->setContent($user_gui->getPublicProfile("", false, true));
                $content_block->setTitle($lng->txt("profile_of")." ".
                        $user_gui->object->getLogin());
                $content_block->setColSpan(2);
                $content_block->setImage(ilUtil::getImagePath("icon_usr.gif"));
                $content_block->addHeaderCommand($ilCtrl->getLinkTarget($this, "show"),
                        $lng->txt("close"), true);
                
                $this->tpl->setContent($content_block->getHTML());
                $this->tpl->setRightContent($this->getRightColumnHTML());
                $this->tpl->setLeftContent($this->getLeftColumnHTML());

                $this->tpl->show();
        }

Here is the call graph for this function:


Field Documentation

ilPersonalDesktopGUI::$cmdClass = ''

Definition at line 45 of file class.ilPersonalDesktopGUI.php.

ilPersonalDesktopGUI::$ilias

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

Referenced by ilPersonalDesktopGUI().

ilPersonalDesktopGUI::$lng
ilPersonalDesktopGUI::$tpl

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

Referenced by ilPersonalDesktopGUI().


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