public function __construct()
 {
     if (isset($_POST['Course_id']) && isset($_POST['Course_name'])) {
         $this->CourseID = $_POST['Course_id'];
         $this->CourseName = $_POST['Course_name'];
         $this->script = "success";
         parent::__construct();
     } else {
         parent::__construct();
     }
 }
예제 #2
0
 public function __construct(DbChangesSettings $settings)
 {
     $this->settings = $settings;
     $dbConn = $settings->getDbConn('cache');
     //if there is no cache connection use the standard one
     if (empty($dbConn)) {
         $dbConn = $settings->getDbConn('standard');
     }
     parent::__construct($dbConn);
     //check table
     if (isset($dbConn['cache_table'])) {
         $this->cacheTable = (string) $dbConn['cache_table'];
     }
     //$this->checkCacheTable();
 }
예제 #3
0
 public function __construct($dbHost, $dbName, $dbLogin, $dbPassword, $dbInitCommand, $dbOptions = -1)
 {
     parent::__construct($dbHost, $dbName, $dbLogin, $dbPassword, $dbInitCommand, $dbOptions);
 }
 function __construct()
 {
     parent::__construct();
 }
 public function __construct()
 {
     $this->LoginId = $_POST['id'];
     $this->LoginPassword = $_POST['pwd'];
     parent::__construct();
 }