/** * 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); }
/** * 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(); }
public function __construct($a_id = 0, $a_call_by_reference = true) { $this->type = "excs"; parent::__construct($a_id, $a_call_by_reference); }
/** * 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); }
/** * 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); }
/** * 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); }
/** * 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); }
/** * 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); }
/** * 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"); } }
/** * 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'); }