function DataAccessManager($in_dbhost, $in_dbuser, $in_dbpass, $in_dbname) { $this->host = $in_dbhost; $this->user = $in_dbuser; $this->pass = $in_dbpass; $this->dbname = $in_dbname; parent::__construct($this->host, $this->user, $this->pass, $this->dbname); if ($this->hasError()) { print_r($this->getError()); } }
function __construct() { parent::__construct($this->connection); }