/** * Creates a DAO. * * @param array|string $data the connection information (expressed as an array) or * the DSN if only a string is provided. * @param string $login the login (if not NULL, replace the login give in $data) * @param string $password the password (if not NULL, replace the password give in $data) */ public function __construct($data, $login = null, $password = null) { parent::__construct(); $this->converter = new BasicConverter(); $this->connect($data, $login, $password); }