本文整理匯總了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');
}