/**
  * Constructor
  *
  * @param int $a_id id
  * @param bool $a_reference ref id?
  * @return
  */
 function __construct($a_id = 0, $a_reference = true)
 {
     global $tree, $objDefinition;
     $this->tree = $tree;
     $this->obj_def = $objDefinition;
     parent::__construct($a_id, $a_reference);
 }
 /**
  * If bibliographic object exists, read it's data from database, otherwise create it
  *
  * @param $existant_bibl_id int is not set when object is getting created
  * @return \ilObjBibliographic
  */
 public function __construct($existant_bibl_id = 0)
 {
     if ($existant_bibl_id) {
         $this->setId($existant_bibl_id);
         $this->doRead();
     }
     parent::__construct();
 }
Beispiel #3
0
 function __construct($a_id = 0, $a_reference = true)
 {
     // default
     $this->setOnline(false);
     $this->setViewResults(self::VIEW_RESULTS_AFTER_VOTE);
     $this->setAccessType(ilObjectActivation::TIMINGS_DEACTIVATED);
     $this->setVotingPeriod(false);
     parent::__construct($a_id, $a_reference);
 }
 /**
  * Constructor.
  */
 function __construct($a_ref_id = 0)
 {
     $this->initType();
     parent::__construct($a_ref_id, true);
     $this->plugin = ilPlugin::getPluginObject(IL_COMP_SERVICE, "Repository", "robj", ilPlugin::lookupNameForId(IL_COMP_SERVICE, "Repository", "robj", $this->getType()));
     if (!is_object($this->plugin)) {
         die("ilObjectPluginGUI: Could not instantiate plugin object for type " . $this->getType() . ".");
     }
 }
Beispiel #5
0
 /**
  * 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 = 0, $a_call_by_reference = true)
 {
     $this->version = 0;
     $this->raise_upload_error = true;
     parent::__construct($a_id, $a_call_by_reference);
     if ($this->getId()) {
         $this->initFileStorage();
     }
 }
 /**
  * @param int  $a_id
  * @param bool $a_reference
  */
 public function __construct($a_id = 0, $a_reference = true)
 {
     parent::__construct($a_id, $a_reference);
 }
 /**
  * Constructor
  * 
  * @param int $a_id
  * @param bool $a_call_by_reference 
  * @return ilObject
  */
 public function __construct($a_id = 0, $a_call_by_reference = true)
 {
     global $ilDB;
     parent::__construct($a_id, $a_call_by_reference);
     $this->db = $ilDB;
 }
 function __construct($a_id = 0, $a_reference = true)
 {
     $this->map = $this->getPropertyMap();
     parent::__construct($a_id, $a_reference);
 }
 /**
  * Constructor
  * 
  * @param	integer	reference_id or object_id
  * @param	boolean	treat the id as reference_id (true) or object_id (false)
  */
 function ilObjHelpSettings($a_id = 0, $a_call_by_reference = true)
 {
     parent::__construct($a_id, $a_call_by_reference);
 }