| 1 | <?php |
||
| 7 | class MySQLANSIDatabase extends MySQLDatabase |
||
|
|
|||
| 8 | { |
||
| 9 | /** |
||
| 10 | * Connection to the DBMS. |
||
| 11 | * @var resource |
||
| 12 | */ |
||
| 13 | private $dbConn; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * True if we are connected to a database. |
||
| 17 | * @var boolean |
||
| 18 | */ |
||
| 19 | private $active; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * The name of the database. |
||
| 23 | * @var string |
||
| 24 | */ |
||
| 25 | private $database; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Connect to a MySQL database. |
||
| 29 | * @param array $parameters An map of parameters, which should include: |
||
| 30 | * - server: The server, eg, localhost |
||
| 31 | * - username: The username to log on with |
||
| 32 | * - password: The password to log on with |
||
| 33 | * - database: The database to connect to |
||
| 34 | */ |
||
| 35 | public function __construct($parameters) |
||
| 40 | } |
||
| 41 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.