示例#1
0
 public function __construct()
 {
     parent::__construct();
     $this->load->helper("url");
     $this->load->model("mpage");
     $this->load->library("string");
 }
示例#2
0
 public function __construct()
 {
     parent::__construct();
     $this->load->helper("url");
     $this->load->library("string");
     $this->load->helper('directory');
 }
示例#3
0
 public function __construct()
 {
     parent::__construct();
     $this->load->helper("url");
     $this->load->helper("form");
     $this->load->model("mconfig");
 }
示例#4
0
 function __construct($id)
 {
     $db = new DatabaseConnection("localhost", "adminuser", "asd12345", "school");
     $sql = "SELECT * FROM students WHERE id = ?";
     $string = array($id);
     $res = $db->select($sql, $string, true, 'i');
     $n = $res[0]['name'];
     $c = $res[0]['login_code'];
     $b = $res[0]['birth'];
     $r = $res[0]['residency'];
     $s = $res[0]['s_hostel'];
     $a = $res[0]['allowance'];
     $p = $res[0]['password'];
     $e = $res[0]['email'];
     $ppn = $res[0]['parent_p_number'];
     $y = $res[0]['year'];
     $g = $res[0]['class'];
     parent::__construct($id, $n, $c, $b, $r, $s, $a, $p, $e, $ppn, $y, $g);
 }
示例#5
0
 public function __construct()
 {
     parent::__construct();
     $this->load->helper("url");
     $this->load->model("mreport");
 }
示例#6
0
 public function __construct()
 {
     parent::__construct();
 }
示例#7
0
 public function __construct()
 {
     parent::__construct();
     $this->load->helper("url");
     $this->load->model("mcustomer_newsletter");
 }
示例#8
0
 public function __construct()
 {
     parent::__construct();
     $this->load->helper("url");
     $this->load->model("mmarketing");
 }
示例#9
0
 function __construct($studentid)
 {
     $database = new Database();
     if ($database->connect()) {
         $studentDetails = $database->getStudentDetails($studentid);
         $database->disconnect();
         unset($database);
         if ($studentDetails != NULL) {
             parent::__construct($studentid);
         }
     }
 }