Example #1
0
 public function __wakeup()
 {
     Controller::setResselerId($this->resellerId);
     Controller::setSessionId($this->sessionId);
     $this->pdo = new PDO("mysql:host=localhost;dbname=virtualhome", "vh_web", '6EusrWvUBHKJQnQF', array(PDO::ATTR_PERSISTENT => true));
     $this->pdo->exec("SET NAMES UTF8");
     $this->pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
 }