當前位置: 首頁>>代碼示例>>PHP>>正文


PHP ilObject::__construct方法代碼示例

本文整理匯總了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);
 }
開發者ID:Walid-Synakene,項目名稱:ilias,代碼行數:13,代碼來源:class.ilObjSession.php

示例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();
 }
開發者ID:Walid-Synakene,項目名稱:ilias,代碼行數:21,代碼來源:class.ilObjForum.php

示例3: __construct

 public function __construct($a_id = 0, $a_call_by_reference = true)
 {
     $this->type = "excs";
     parent::__construct($a_id, $a_call_by_reference);
 }
開發者ID:arlendotcn,項目名稱:ilias,代碼行數:5,代碼來源:class.ilObjExerciseAdministration.php

示例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);
 }
開發者ID:Walid-Synakene,項目名稱:ilias,代碼行數:26,代碼來源:class.ilObjSurvey.php

示例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);
 }
開發者ID:arlendotcn,項目名稱:ilias,代碼行數:11,代碼來源:class.ilContainerReference.php

示例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);
 }
開發者ID:arlendotcn,項目名稱:ilias,代碼行數:11,代碼來源:class.ilObjRepositorySettings.php

示例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);
 }
開發者ID:Walid-Synakene,項目名稱:ilias,代碼行數:12,代碼來源:class.ilObjLinkResource.php

示例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);
 }
開發者ID:bheyser,項目名稱:qplskl,代碼行數:10,代碼來源:class.ilContainer.php

示例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");
     }
 }
開發者ID:arlendotcn,項目名稱:ilias,代碼行數:37,代碼來源:class.ilObjUser.php

示例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');
 }
開發者ID:arlendotcn,項目名稱:ilias,代碼行數:12,代碼來源:class.ilObjForumAdministration.php


注:本文中的ilObject::__construct方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。