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; }
public static function load($health) { $dbConnection = db_base::GetDBConnection(); $result = $dbConnection->execSQLStmt(self::LOAD_SQL . " WHERE health = {$health}"); return $result; }
protected function __construct($tblName = __CLASS__) { parent::__construct($tblName); }
public static function SetIsDaemon($isDaemon) { self::$m_isDaemon = $isDaemon; }