Exemplo n.º 1
0
 public static function saveUser($firstName, $lastName, $emailId, $facebookId, $dateOfBirth)
 {
     $dbConnection = db_base::GetDBConnection();
     $dbConnection->execSQLStmt(self::SAVE_SQL . "'{$firstName}', '{$lastName}', '{$emailId}', '{$facebookId}', '{$dateOfBirth}')");
     $id = $dbConnection->last_insert_id();
     $result['id'] = $id;
     return $result;
 }
Exemplo n.º 2
0
 public static function load($health)
 {
     $dbConnection = db_base::GetDBConnection();
     $result = $dbConnection->execSQLStmt(self::LOAD_SQL . " WHERE health = {$health}");
     return $result;
 }
Exemplo n.º 3
0
 protected function __construct($tblName = __CLASS__)
 {
     parent::__construct($tblName);
 }
Exemplo n.º 4
0
 public static function SetIsDaemon($isDaemon)
 {
     self::$m_isDaemon = $isDaemon;
 }