public function __construct() { global $lng, $ilCtrl; $this->type = "svy"; $lng->loadLanguageModule("survey"); $this->ctrl = $ilCtrl; $this->ctrl->saveParameter($this, "ref_id"); parent::__construct("", (int) $_GET["ref_id"], true, false); }
/** * Constructor * * @access public * @param * @return */ public function __construct($a_data, $a_id, $a_call_by_reference, $a_prepare_output = true) { global $ilCtrl, $lng, $tpl; $this->type = "sess"; parent::__construct($a_data, $a_id, $a_call_by_reference, $a_prepare_output); $this->lng = $lng; $this->lng->loadLanguageModule("event"); $this->lng->loadLanguageModule('crs'); $this->lng->loadLanguageModule('trac'); $this->tpl = $tpl; $this->ctrl = $ilCtrl; }
/** * Constructor * @access public */ public function __construct($a_data, $a_id, $a_call_by_reference) { $this->type = 'mail'; parent::__construct($a_data, $a_id, $a_call_by_reference, false); $this->lng->loadLanguageModule('mail'); }
/** * Contructor * @access public */ public function __construct($a_data, $a_id, $a_call_by_reference = true, $a_prepare_output = true) { $this->type = 'frma'; parent::__construct($a_data, $a_id, $a_call_by_reference, $a_prepare_output); $this->lng->loadLanguageModule('forum'); }
public function __construct($a_data, $a_id, $a_call_by_reference, $a_prepare_output = true) { /** * @var $ilCtrl ilCtrl * @var $ilAccess ilAccessHandler * @var $ilObjDataCache ilObjectDataCache */ global $ilCtrl, $ilAccess, $ilObjDataCache; $this->ctrl = $ilCtrl; $this->ctrl->saveParameter($this, array('ref_id', 'cmdClass')); $this->type = 'frm'; parent::__construct($a_data, $a_id, $a_call_by_reference, false); $this->lng->loadLanguageModule('forum'); $this->initSessionStorage(); // Forum properties $this->objProperties = ilForumProperties::getInstance($ilObjDataCache->lookupObjId($_GET['ref_id'])); // Stored due to performance issues $this->is_moderator = $ilAccess->checkAccess('moderate_frm', '', $_GET['ref_id']); // Model of current topic/thread $this->objCurrentTopic = new ilForumTopic((int) $_GET['thr_pk'], $this->is_moderator); // Model of current post $this->objCurrentPost = new ilForumPost((int) $_GET['pos_pk'], $this->is_moderator); $frma_set = new ilSetting('frma'); $this->forum_overview_setting = $frma_set->get('forum_overview'); }
/** * Constructor * @param * @return */ public function __construct($a_data, $a_id, $a_call_by_reference = true, $a_prepare_output = true) { global $lng; parent::__construct($a_data, $a_id, $a_call_by_reference, $a_prepare_output); $lng->loadLanguageModule('objref'); }