/**
  * Constructor
  */
 public function __construct($container_selector)
 {
     parent::ilBlockGUI();
     $this->container_selector = $container_selector;
     $this->plugin = new ilContainerFilterPlugin();
     $this->setTitle($this->plugin->txt('title'));
 }
コード例 #2
0
 /**
  * Constructor
  */
 function ilPDNotesBlockGUI()
 {
     global $ilCtrl, $lng, $ilUser;
     parent::ilBlockGUI();
     $this->setLimit(5);
     $this->setTitle($lng->txt("notes"));
     $this->setAvailableDetailLevels(3);
 }
コード例 #3
0
 /**
  * Constructor
  */
 function __construct()
 {
     global $ilCtrl, $lng;
     parent::ilBlockGUI();
     $lng->loadLanguageModule("wiki");
     $this->setEnableNumInfo(false);
     $this->setTitle($lng->txt("wiki_wiki_search"));
     $this->allow_moving = false;
 }
コード例 #4
0
 /**
  * Constructor
  */
 function ilPDNotesBlockGUI()
 {
     global $ilCtrl, $lng, $ilUser;
     parent::ilBlockGUI();
     $this->setLimit(5);
     $this->setImage(ilUtil::getImagePath("icon_note_s.png"));
     $this->setTitle($lng->txt("notes"));
     $this->setAvailableDetailLevels(3);
 }
コード例 #5
0
 /**
  * Constructor
  */
 function ilPDTaggingBlockGUI()
 {
     global $ilCtrl, $lng, $ilUser;
     parent::ilBlockGUI();
     $lng->loadLanguageModule("tagging");
     $this->setTitle($lng->txt("tagging_my_tags"));
     $this->setEnableNumInfo(false);
     $this->setLimit(99999);
     $this->setAvailableDetailLevels(1, 0);
 }
コード例 #6
0
 /**
  * Constructor
  */
 function ilUsersOnlineBlockGUI()
 {
     global $ilCtrl, $lng, $ilUser;
     parent::ilBlockGUI();
     $this->setLimit(10);
     $this->setTitle($lng->txt("users_online"));
     $this->setAvailableDetailLevels(3);
     // mjansen: Used for mail referer link (@see fillRow). I don't want to create a new instance in each fillRow call.
     $this->topGuiObj = new ilPersonalDesktopGUI();
 }
コード例 #7
0
 /**
  * Constructor
  */
 function ilPDFeedbackBlockGUI()
 {
     global $ilCtrl, $lng, $ilUser;
     parent::ilBlockGUI();
     $this->setLimit(5);
     $this->setImage(ilUtil::getImagePath("icon_feedb_s.png"));
     $this->setTitle($lng->txt("pdesk_feedback_request"));
     $this->setAvailableDetailLevels(2, 1);
     $this->allow_moving = false;
 }
コード例 #8
0
 /**
  * Constructor
  *
  * @param	boolean		skip initialisation (is called by derived PDCalendarBlockGUI class)
  */
 function ilCalendarBlockGUI($a_skip_init = false)
 {
     global $ilCtrl, $lng, $ilUser, $tpl, $ilHelp;
     parent::ilBlockGUI();
     $this->ctrl = $ilCtrl;
     $this->setImage(ilUtil::getImagePath("icon_cals_s.png"));
     $lng->loadLanguageModule("dateplaner");
     $ilHelp->addHelpSection("cal_block");
     include_once "./Services/News/classes/class.ilNewsItem.php";
     $ilCtrl->saveParameter($this, 'bkid');
     if (!$a_skip_init) {
         $this->initCategories();
         $this->setBlockId($ilCtrl->getContextObjId());
     }
     $this->setLimit(5);
     // @todo: needed?
     // alex: original detail level 1 did not work anymore
     $this->setAvailableDetailLevels(1);
     $this->setEnableNumInfo(false);
     if (!isset($_GET["bkid"])) {
         $title = $lng->txt("calendar");
     } else {
         $title = $lng->txt("cal_consultation_hours_for") . " " . ilObjUser::_lookupFullname($_GET["bkid"]);
     }
     $this->setTitle($title);
     //$this->setData($data);
     $this->allow_moving = false;
     //$this->handleView();
     include_once 'Services/Calendar/classes/class.ilDate.php';
     include_once 'Services/Calendar/classes/class.ilCalendarUserSettings.php';
     $seed_str = "";
     if ((!isset($_GET["seed"]) || $_GET["seed"] == "") && isset($_SESSION["il_cal_block_" . $this->getBlockType() . "_" . $this->getBlockId() . "_seed"])) {
         $seed_str = $_SESSION["il_cal_block_" . $this->getBlockType() . "_" . $this->getBlockId() . "_seed"];
     } else {
         if (isset($_GET["seed"])) {
             $seed_str = $_GET["seed"];
         }
     }
     if (isset($_GET["seed"]) && $_GET["seed"] != "") {
         $_SESSION["il_cal_block_" . $this->getBlockType() . "_" . $this->getBlockId() . "_seed"] = $_GET["seed"];
     }
     if ($seed_str == "") {
         $this->seed = new ilDate(time(), IL_CAL_UNIX);
         // @todo: check this
     } else {
         $this->seed = new ilDate($seed_str, IL_CAL_DATE);
         // @todo: check this
     }
     $this->user_settings = ilCalendarUserSettings::_getInstanceByUserId($ilUser->getId());
     $tpl->addCSS("./Services/Calendar/css/calendar.css");
     // @todo: this must work differently...
     $tpl->addCSS("./Services/Calendar/templates/default/delos.css");
     $mode = $ilUser->getPref("il_pd_cal_mode");
     $this->display_mode = $mode ? $mode : "mmon";
 }
コード例 #9
0
 /**
  * Constructor
  */
 function ilPDContentBlockGUI()
 {
     global $ilCtrl, $lng, $ilUser;
     parent::ilBlockGUI($a_parent_class, $a_parent_cmd);
     //$this->setTitle($lng->txt("selected_items"));
     $this->setEnableNumInfo(false);
     $this->setLimit(99999);
     //$this->setColSpan(2);
     $this->setBigMode(true);
     $this->allow_moving = false;
 }
コード例 #10
0
 /**
  * Constructor
  */
 function ilBookmarkBlockGUI()
 {
     global $ilCtrl, $lng, $ilUser;
     parent::ilBlockGUI();
     $this->setImage(ilUtil::getImagePath("icon_bm_s.png"));
     $this->setTitle($lng->txt("my_bms"));
     $this->setEnableNumInfo(false);
     $this->setLimit(99999);
     $this->setAvailableDetailLevels(3);
     $this->id = empty($_GET["bmf_id"]) ? $bmf_id = 1 : $_GET["bmf_id"];
 }
コード例 #11
0
 /**
  * Constructor
  */
 function __construct(ilAdvancedMDRecord $a_record)
 {
     global $ilCtrl, $lng;
     parent::ilBlockGUI();
     $this->record = $a_record;
     $this->setTitle($this->record->getTitle());
     $this->setBlockId("advmdwiki_" . $this->record->getRecordId());
     $this->setEnableNumInfo(false);
     // $this->setAvailableDetailLevels(3);
     $this->allow_moving = false;
     $lng->loadLanguageModule("wiki");
 }
コード例 #12
0
 /**
  * Constructor
  */
 function ilPDSelectedItemsBlockGUI()
 {
     global $ilCtrl, $lng, $ilUser;
     parent::ilBlockGUI();
     $lng->loadLanguageModule('pd');
     //$this->setImage(ilUtil::getImagePath("icon_bm_s.png"));
     $this->setEnableNumInfo(false);
     $this->setLimit(99999);
     //		$this->setColSpan(2);
     $this->setAvailableDetailLevels(3, 1);
     //		$this->setBigMode(true);
     $this->lng = $lng;
     $this->allow_moving = false;
     $this->determineViewSettings();
 }
コード例 #13
0
 /**
  * Constructor
  */
 function __construct()
 {
     global $ilCtrl, $lng;
     parent::ilBlockGUI();
     //$this->setImage(ilUtil::getImagePath("icon_news_s.png"));
     $lng->loadLanguageModule("wiki");
     //$this->setBlockId(...);
     /*$this->setLimit(5);
     		$this->setAvailableDetailLevels(3);*/
     $this->setEnableNumInfo(false);
     $this->setTitle($lng->txt("wiki_quick_navigation"));
     //$this->setRowTemplate("tpl.block_row_news_for_context.html", "Services/News");
     //$this->setData($data);
     $this->allow_moving = false;
     //$this->handleView();
 }
コード例 #14
0
 /**
  * Constructor
  */
 public function __construct()
 {
     global $ilCtrl, $lng, $ilUser;
     parent::ilBlockGUI();
     $lng->loadLanguageModule('pd');
     $lng->loadLanguageModule('cntr');
     // #14158
     $this->setEnableNumInfo(false);
     $this->setLimit(99999);
     //		$this->setColSpan(2);
     $this->setAvailableDetailLevels(3, 1);
     //		$this->setBigMode(true);
     $this->lng = $lng;
     $this->allow_moving = false;
     $this->determineViewSettings();
 }
コード例 #15
0
 /**
  * Constructor
  */
 function ilNewsForContextBlockGUI()
 {
     global $ilCtrl, $lng, $ilUser, $ilHelp;
     parent::ilBlockGUI();
     $this->setImage(ilUtil::getImagePath("icon_news_s.png"));
     $lng->loadLanguageModule("news");
     $ilHelp->addHelpSection("news_block");
     include_once "./Services/News/classes/class.ilNewsItem.php";
     $this->setBlockId($ilCtrl->getContextObjId());
     $this->setLimit(5);
     $this->setAvailableDetailLevels(3);
     $this->setEnableNumInfo(true);
     $this->dynamic = false;
     include_once "./Services/News/classes/class.ilNewsCache.php";
     $this->acache = new ilNewsCache();
     $cres = $this->acache->getEntry($ilUser->getId() . ":" . $_GET["ref_id"]);
     $this->cache_hit = false;
     if ($this->acache->getLastAccessStatus() == "hit") {
         self::$st_data = unserialize($cres);
         $this->cache_hit = true;
     }
     if ($this->getDynamic() && !$this->cache_hit) {
         $this->dynamic = true;
         $data = array();
     } else {
         if ($this->getCurrentDetailLevel() > 0) {
             if (!empty(self::$st_data)) {
                 $data = self::$st_data;
             } else {
                 $data = $this->getNewsData();
                 self::$st_data = $data;
             }
         } else {
             $data = array();
         }
     }
     $this->setTitle($lng->txt("news_internal_news"));
     $this->setRowTemplate("tpl.block_row_news_for_context.html", "Services/News");
     $this->setData($data);
     $this->allow_moving = false;
     $this->handleView();
 }