本文整理汇总了PHP中ilObject::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP ilObject::__construct方法的具体用法?PHP ilObject::__construct怎么用?PHP ilObject::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ilObject
的用法示例。
在下文中一共展示了ilObject::__construct方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
/**
* Constructor
* @access public
* @param integer reference_id or object_id
* @param boolean treat the id as reference_id (true) or object_id (false)
*/
public function __construct($a_id = 0, $a_call_by_reference = true)
{
global $ilDB;
$this->db = $ilDB;
$this->type = "sess";
parent::__construct($a_id, $a_call_by_reference);
}
示例2: __construct
/**
* Constructor
* @access public
* @param integer $a_id reference_id or object_id
* @param boolean $a_call_by_reference treat the id as reference_id (true) or object_id (false)
*/
public function __construct($a_id = 0, $a_call_by_reference = true)
{
$this->type = 'frm';
parent::__construct($a_id, $a_call_by_reference);
/*
* this constant is used for the information if a single post is marked as new
* All threads/posts created before this date are never marked as new
* Default is 8 weeks
*
*/
$new_deadline = time() - 60 * 60 * 24 * 7 * ($this->ilias->getSetting('frm_store_new') ? $this->ilias->getSetting('frm_store_new') : 8);
define('NEW_DEADLINE', $new_deadline);
// TODO: needs to rewrite scripts that are using Forum outside this class
$this->Forum = new ilForum();
}
示例3: __construct
public function __construct($a_id = 0, $a_call_by_reference = true)
{
$this->type = "excs";
parent::__construct($a_id, $a_call_by_reference);
}
示例4: ilObjSurvey
/**
* Constructor
* @access public
* @param integer reference_id or object_id
* @param boolean treat the id as reference_id (true) or object_id (false)
*/
function ilObjSurvey($a_id = 0, $a_call_by_reference = true)
{
global $ilUser, $lng;
$this->type = "svy";
$this->survey_id = -1;
$this->introduction = "";
$this->outro = $lng->txt("survey_finished");
$this->author = $ilUser->getFullname();
$this->status = self::STATUS_OFFLINE;
$this->evaluation_access = self::EVALUATION_ACCESS_OFF;
$this->questions = array();
$this->invitation = self::INVITATION_OFF;
$this->invitation_mode = self::MODE_PREDEFINED_USERS;
$this->anonymize = self::ANONYMIZE_OFF;
$this->display_question_titles = self::QUESTIONTITLES_VISIBLE;
$this->surveyCodeSecurity = TRUE;
$this->template_id = NULL;
$this->pool_usage = true;
parent::__construct($a_id, $a_call_by_reference);
}
示例5: __construct
/**
* Constructor
* @param int $a_id reference id
* @param bool $a_call_by_reference
* @return void
*/
public function __construct($a_id = 0, $a_call_by_reference = true)
{
global $ilDB;
parent::__construct($a_id, $a_call_by_reference);
}
示例6:
/**
* Constructor
* @access public
* @param integer reference_id or object_id
* @param boolean treat the id as reference_id (true) or object_id (false)
*/
function __construct($a_id, $a_call_by_reference = true)
{
$this->type = "reps";
parent::__construct($a_id, $a_call_by_reference);
}
示例7: ilObjLinkResource
/**
* Constructor
* @access public
* @param integer reference_id or object_id
* @param boolean treat the id as reference_id (true) or object_id (false)
*/
function ilObjLinkResource($a_id = 0, $a_call_by_reference = true)
{
//$this->type = "lnkr";
$this->type = "webr";
parent::__construct($a_id, $a_call_by_reference);
}
示例8: ilContainer
/**
* Constructor
* @access public
* @param integer reference_id or object_id
* @param boolean treat the id as reference_id (true) or object_id (false)
*/
function ilContainer($a_id = 0, $a_call_by_reference = true)
{
parent::__construct($a_id, $a_call_by_reference);
}
示例9: __construct
/**
* Constructor
* @access public
* @param integer user_id
*/
public function __construct($a_user_id = 0, $a_call_by_reference = false)
{
global $ilias, $ilDB;
// init variables
$this->ilias =& $ilias;
$this->db =& $ilDB;
$this->type = "usr";
parent::__construct($a_user_id, $a_call_by_reference);
$this->auth_mode = "default";
$this->passwd_type = IL_PASSWD_PLAIN;
// for gender selection. don't change this
/*$this->gender = array(
'm' => "salutation_m",
'f' => "salutation_f"
);*/
if ($a_user_id > 0) {
$this->setId($a_user_id);
$this->read();
} else {
// TODO: all code in else-structure doesn't belongs in class user !!!
//load default data
$this->prefs = array();
//language
$this->prefs["language"] = $this->ilias->ini->readVariable("language", "default");
//skin and pda support
$this->skin = $this->ilias->ini->readVariable("layout", "skin");
$this->prefs["skin"] = $this->skin;
$this->prefs["show_users_online"] = "y";
//style (css)
$this->prefs["style"] = $this->ilias->ini->readVariable("layout", "style");
}
}
示例10: __construct
/**
* Constructor
* @access public
* @param integer reference_id or object_id
* @param boolean treat the id as reference_id (true) or object_id (false)
*/
public function __construct($a_id = 0, $a_call_by_reference = true)
{
$this->type = "frma";
parent::__construct($a_id, $a_call_by_reference);
$this->lng->loadLanguageModule('forum');
}