Method | Description | |
---|---|---|
__construct ( string $file ) | ||
getConfig ( ) : array | content of previous $dbSettings field of the DatabaseHelper | |
getConnection ( ) : PDO | Connects to the database without initializing magento | |
getDatabaseName ( ) : string | ||
getDsn ( ) : string | Get Mysql PDO DSN | |
getHost ( ) : string | ||
getIterator ( ) : ArrayIterator | ||
getMysqlClientToolConnectionString ( ) | ||
getPassword ( ) : string | ||
getPort ( ) : string | ||
getTablePrefix ( ) : string | ||
getUnixSocket ( ) : string | ||
getUsername ( ) : string | ||
isSocketConnect ( ) : boolean | ||
offsetExists ( $offset ) : boolean | ||
offsetGet ( $offset ) : mixed | ||
offsetSet ( mixed $offset, mixed $value ) | ||
offsetUnset ( mixed $offset ) | ||
setFile ( string $file ) |
Method | Description | |
---|---|---|
parseResources ( SimpleXMLElement $resources ) | helper method to parse config file segment related to the database settings | |
quoteIdentifier ( string $identifier ) : string | Mysql quoting of an identifier |
public __construct ( string $file ) | ||
$file | string | path to app/etc/local.xml |
public getConnection ( ) : PDO | ||
return | PDO |
public getDatabaseName ( ) : string | ||
return | string | of the database identifier, null if not in use |
public getTablePrefix ( ) : string | ||
return | string | table prefix, null if not in the settings (no or empty prefix) |
public getUnixSocket ( ) : string | ||
return | string | unix socket, null if not in use |
public offsetExists ( $offset ) : boolean | ||
return | boolean | true on success or false on failure. |