예제 #1
0
 /**
  * Custom constructor
  *
  * @param int $ex_class_id CExClass id
  */
 function __construct($ex_class_id = null)
 {
     parent::__construct();
     if (self::$_multiple_load) {
         $class = get_class($this);
         unset(self::$spec[$class]);
         unset(self::$props[$class]);
         unset(self::$specs[$class]);
         unset(self::$backProps[$class]);
         unset(self::$backSpecs[$class]);
     }
     if ($ex_class_id) {
         $this->setExClass($ex_class_id);
     }
 }
예제 #2
0
 /**
  * Création d'une instance de la classe
  *
  * @param String $id String
  */
 function __construct($id)
 {
     parent::__construct();
     $this->id = $id;
     $this->_group_id = CGroups::loadCurrent()->_id;
 }