Esempio n. 1
0
 function __construct($id_resource = NULL, $environment = false)
 {
     parent::__construct($id_resource, $environment);
     $this->obj_type = 'item';
     if ($id_resource != false) {
         $this->load();
     }
 }
Esempio n. 2
0
 /** 
  * object constructor
  **/
 function Learning_ScormOrg($id = NULL, $environment = false)
 {
     parent::__construct($id, $environment);
     $title = '';
     $res = $this->db->query("SELECT title FROM %lms_scorm_organizations WHERE idscorm_organization = " . (int) $id . "");
     if ($res && $this->db->num_rows($res) > 0) {
         $this->isPhysicalObject = true;
         list($title) = $this->db->fetch_row($res);
     }
     $this->idAuthor = '';
     $this->title = $title;
     $this->obj_type = 'scormorg';
 }