function __construct($table, $db = null, $user = null, $password = null) { $this->pdo = db_connect_singleton::getInstance($db ? $db : DB_NAME)->pdo; $this->table = $table; $this->init(); }