本文整理汇总了PHP中ilObjectGUI::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP ilObjectGUI::__construct方法的具体用法?PHP ilObjectGUI::__construct怎么用?PHP ilObjectGUI::__construct使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ilObjectGUI
的用法示例。
在下文中一共展示了ilObjectGUI::__construct方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
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);
}
示例2: __construct
/**
* 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;
}
示例3: __construct
/**
* 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');
}
示例4: __construct
/**
* 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');
}
示例5: __construct
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');
}
示例6: __construct
/**
* 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');
}