/** * Constructor */ function __construct() { global $lng; parent::__construct(); $lng->loadLanguageModule("poll"); $this->setRowTemplate("tpl.block.html", "Modules/Poll"); }
/** * Constructor */ function ilDummyBlockGUI() { global $ilCtrl, $lng; parent::__construct(); $this->setLimit(5); $this->allow_moving = true; }
/** * Constructor */ public function __construct() { global $lng; parent::__construct(); $lng->loadLanguageModule('chatroom'); $this->setImage(ilUtil::getImagePath('icon_chat.png')); $this->setTitle($lng->txt('chat_chatviewer')); $this->setAvailableDetailLevels(1, 0); $this->allow_moving = true; }
public function __construct() { global $lng; parent::__construct(); $this->parent_ref_id = (int) $_GET["ref_id"]; $this->parent_obj_id = ilObject::_lookupObjId($this->parent_ref_id); $this->parent_obj_type = ilObject::_lookupType($this->parent_obj_id); $lng->loadLanguageModule("classification"); $this->setTitle($lng->txt("clsfct_block_title")); $this->setFooterInfo($lng->txt("clsfct_block_info")); }
/** * Constructor */ public function __construct() { global $lng; include_once 'Services/User/classes/class.ilObjUser.php'; include_once 'Services/Mail/classes/class.ilMailbox.php'; include_once 'Services/Mail/classes/class.ilMail.php'; parent::__construct(); $this->setLimit(5); $this->setImage(ilUtil::getImagePath('icon_mail_s.png')); $this->setTitle($lng->txt('mail')); $this->setAvailableDetailLevels(3); }
/** * Constructor */ function ilCalendarSelectionBlockGUI($a_seed) { global $ilCtrl, $lng; $this->lng = $lng; parent::__construct(); $lng->loadLanguageModule('pd'); $lng->loadLanguageModule('dateplaner'); $this->setLimit(5); $this->allow_moving = false; $this->seed = $a_seed; $this->setTitle($lng->txt('cal_table_categories')); include_once './Services/Calendar/classes/class.ilCalendarUserSettings.php'; $sel_type = ilCalendarUserSettings::_getInstance()->getCalendarSelectionType(); $ilCtrl->setParameterByClass("ilcalendarcategorygui", 'calendar_mode', ilCalendarUserSettings::CAL_SELECTION_ITEMS); $ilCtrl->setParameterByClass("ilcalendarcategorygui", 'seed', $this->seed->get(IL_CAL_DATE)); $this->addBlockCommand($ilCtrl->getLinkTargetByClass("ilcalendarcategorygui", 'switchCalendarMode'), $lng->txt('pd_my_offers'), "", "", false, $sel_type == ilCalendarUserSettings::CAL_SELECTION_ITEMS); $ilCtrl->setParameterByClass("ilcalendarcategorygui", 'calendar_mode', ilCalendarUserSettings::CAL_SELECTION_MEMBERSHIP); $ilCtrl->setParameterByClass("ilcalendarcategorygui", 'seed', $this->seed->get(IL_CAL_DATE)); $this->addBlockCommand($ilCtrl->getLinkTargetByClass("ilcalendarcategorygui", 'switchCalendarMode'), $lng->txt('pd_my_memberships'), "", "", false, $sel_type == ilCalendarUserSettings::CAL_SELECTION_MEMBERSHIP); $ilCtrl->setParameterByClass("ilcalendarcategorygui", 'calendar_mode', ""); $this->addBlockCommand($ilCtrl->getLinkTargetByClass("ilcalendarcategorygui", 'add'), $lng->txt('cal_add_calendar')); }