Exemplo n.º 1
0
 public function __construct()
 {
     $this->tableName = strtolower(substr(get_class($this), 0, strlen(get_class($this)) - 3));
     //        echo "<h1>".$this->tableName."<h1>";
     //        global $dbadapter;
     $this->dbAdapter = PDODBAdapter::getInstance();
 }
Exemplo n.º 2
0
 public static function getInstance()
 {
     if (!isset(self::$instance)) {
         self::$instance = new self();
         // On s'instancie nous-mêmes. :)
     }
     return self::$instance;
 }
Exemplo n.º 3
0
 /**
  * Constructor
  */
 public function __construct()
 {
     $this->pdodbadapter = PDODBAdapter::getInstance();
 }