eZ Publish Community Project (Legacy Stack) 2013.4
Class

eZMySQLiDB

class eZMySQLiDB extends eZDBInterface

Constants

BINDING_NO

BINDING_NAME

BINDING_ORDERED

RELATION_TABLE

RELATION_SEQUENCE

RELATION_TRIGGER

RELATION_VIEW

RELATION_INDEX

RELATION_TABLE_BIT

RELATION_SEQUENCE_BIT

RELATION_TRIGGER_BIT

RELATION_VIEW_BIT

RELATION_INDEX_BIT

RELATION_NONE

RELATION_MASK

ERROR_MISSING_EXTENSION

SERVER_MASTER

SERVER_SLAVE

RELATION_FOREIGN_KEY

RELATION_FOREIGN_KEY_BIT

Properties

string $Server Contains the current server
int $Port Contains the current port
string $SocketPath The socket path, used by MySQL
string $DB The current database name
resource|bool $DBConnection The current connection, false if not connection has been made
resource|bool $DBWriteConnection Contains the write database connection if used
string $User Stores the database connection user
string $Password Stores the database connection password
string $Charset The charset used for the current database
int $ConnectRetries The number of times to retry a connection if it fails
eZTextCodec|null|bool $OutputTextCodec Instance of a textcodec which handles text conversion, may not be set if no builtin encoding is used
eZTextCodec|null|bool $InputTextCodec Instance of a textcodec which handles text conversion, may not be set if no builtin encoding is used
bool $UseBuiltinEncoding True if a builtin encoder is to be used, this means that all input/output text is converted
bool $OutputSQL Setting if SQL queries should be sent to debug output
bool $IsConnected Contains true if we're connected to the database backend
int $NumQueries Contains number of queries sended to DB
bool|float $StartTime The start time of the timer
bool|float $EndTime The end time of the timer
bool|float $TimeTaken The total number of milliseconds the timer took
string $ErrorMessage The database error message of the last executed function
int $ErrorNumber The database error message number of the last executed function
bool $RecordError If true then ErrorMessage and ErrorNumber get filled
bool $UsePersistentConnection If true then the database connection should be persistent
bool $UseSlaveServer True if slave servers are enabled
string $SlaveDB The slave database name
string $SlaveServer The slave server name
int $SlavePort The slave server port
string $SlaveUser The slave database user
string $SlavePassword The slave database user password
int $TransactionCounter The transaction counter, 0 means no transaction
bool $TransactionIsValid Flag which tells if a transaction is considered valid or not.
array|bool $TransactionStackTree Holds the transactions

Methods

eZDBInterface(array $parameters)

Creates a new eZDBInterface object and connects to the database backend.

from eZDBInterface
array attributes()

Returns the available attributes for this database handler.

from eZDBInterface
bool hasAttribute(string $name)

Returns true if the attribute $name exists for this database handler.

from eZDBInterface
null attribute(string $name)

Returns the value of the attribute $name if it exists, otherwise null.

from eZDBInterface
bool checkCharset(string|array $charset, string $currentCharset)

Checks if the requested character set matches the one used in the database.

array prepareSqlQuery(resource $fd, string $buffer)

Prepare the sql file so we can create the database.

from eZDBInterface
bool insertFile(string $path, string $sqlFile, bool $usePathType = true)

Inserts the SQL file $sqlFile found in the path $path into the currently connected database.

from eZDBInterface
reportQuery(string $class, string $sql, int|string $numRows, int|string $timeTaken, bool $asDebug = false)

Writes a debug notice with query information.

from eZDBInterface
setIsSQLOutputEnabled(bool $enabled)

Enabled or disables sql output.

from eZDBInterface
startTimer()

Records the current micro time.

from eZDBInterface
endTimer()

Stops the current timer and calculates the time taken.

from eZDBInterface
bool|float startTime()

Returns the micro time when the timer was start or false if no timer.

from eZDBInterface
bool|float endTime()

Returns the micro time when the timer was ended or false if no timer.

from eZDBInterface
bool|float timeTaken()

Returns the number of milliseconds the last operation took or false if no value.

from eZDBInterface
string databaseName()

Returns the name of driver, this is used to determine the name of the database type.

string|bool socketPath()

Returns the socket path for the database or false if no socket path was defined.

from eZDBInterface
int connectRetryCount()

Returns the number of times the db handler should try to reconnect if it fails.

from eZDBInterface
int connectRetryWaitTime()

Returns the number of seconds the db handler should wait before rereconnecting.

from eZDBInterface
int supportedRelationTypeMask()

Returns a mask of the relation type it supports.

bool useShortNames()

Returns if the short column names should be used insted of default ones

from eZDBInterface
array supportedRelationTypes()

Returns an array of the relation types.

string subString(string $string, int $from, int $len = null)

Returns a sql-expression(string) to get substring.

string concatString(array $strings = array())

Returns a sql-expression(string) to concatenate strings.

string md5(string $str)

Returns a sql-expression(string) to generate a md5 sum of the string.

string bitAnd(string $arg1, string $arg2)

Returns a sql-expression(string) to generate a bit and of the argument.

string bitOr(string $arg1, string $arg2)

Returns a sql-expression(string) to generate a bit and of the argument.

bool hasRequiredServerVersion(string $minVersion, string|bool $name = false)

Checks if the version number of the server is equal or larger than $minVersion.

from eZDBInterface
string|bool databaseServerVersion()

Returns the version of the database server or false if no version could be retrieved/

string|bool databaseClientVersion()

Returns the version of the database client or false if no version could be retrieved/

bool isCharsetSupported(string $charset)

Returns true if the charset $charset is supported by the connected database.

string charset()

Returns the charset which the database is encoded in.

from eZDBInterface
bool usesBuiltinEncoding()

Returns true if the database handles encoding itself.

from eZDBInterface
int bindingType()

Returns type of binding used in database plugin.

mixed bindVariable(mixed $value, mixed $fieldDef = false)

Binds variable.

mixed query(string $sql, int|bool $server = false)

Execute a query on the global MySQL database link.

array arrayQuery(string $sql, array $params = array(), int|bool $server = false)

Executes an SQL query and returns the result as an array of accociative arrays.

lock(string|array $table)

Locks one or several tables

void unlock()

Releases table locks.

bool begin()

Begin a new transaction.

from eZDBInterface
bool beginQuery()

The query to start a transaction.

bool commit()

Commits the current transaction.

from eZDBInterface
bool commitQuery()

The query to commit the transaction.

bool rollback()

Cancels the transaction.

from eZDBInterface
bool|string generateFailedTransactionStack()

Goes through the transaction stack tree {see eZDBInterface::$TransactionStackTree}, generates the text output for it and returns it.

from eZDBInterface
string generateFailedTransactionStackEntry(array $stack, int $indentCount)

Recursive helper function for generating stack tree output.

from eZDBInterface
string generateTraceEntry(array $entry)

Helper function for generating output for one stack-trace entry.

from eZDBInterface
bool rollbackQuery()

The query to cancel the transaction.

bool invalidateTransaction()

Invalidates the current transaction, see {see commit()} for more details on this.

from eZDBInterface
reportError()

This is called whenever an error occurs in one of the database handlers.

from eZDBInterface
bool isTransactionValid()

Returns if the current or last running transaction is valid

from eZDBInterface
int transactionCounter()

Returns the current transaction counter.

from eZDBInterface
int relationCounts(int $relationMask)

Returns the relation count for all relation types in the mask $relationMask.

int relationCount(int $relationType = eZDBInterface::RELATION_TABLE)

Returns the number of relation objects in the database for the relation type $relationType.

array eZTableList(int $server = eZDBInterface::SERVER_MASTER)

Returns the existing ez publish tables in database

array relationList(int $relationType = eZDBInterface::RELATION_TABLE)

Returns the relation names in the database as an array for the relation type $relationType.

bool removeRelation(string $relationName, int $relationType)

Tries to remove the relation type $relationType named $relationName

string|false relationName($relationType $relationType)

Local eZDBInterface::relationName() override to support the foreign keys type relation

bool relationMatchRegexp(int $relationType)

Return A regexp (PCRE) that can be used to filter out certain relation elements.

string implodeWithTypeCast(string $glue, array $pieces, string $type)

Casts elements of $pieces to type $type and returns them as string separated by $glue.

from eZDBInterface
int|bool lastSerialID(string|bool $table = false, string|bool $column = false)

Returns the last serial ID generated with an auto increment field.

string escapeString(string $str)

Will escape a string so it's ready to be inserted in the database.

void close()

Will close the database connection.

bool isConnected()

Returns true if we're connected to the database backend.

from eZDBInterface
void createDatabase(string $dbName)

Create a new database

void removeDatabase(string $dbName)

Removes a database

createTempTable(string $createTableQuery = '', int $server = self::SERVER_SLAVE)

Create a new temporary table

from eZDBInterface
void dropTempTable(string $dropTableQuery = '', int $server = self::SERVER_SLAVE)

Drop temporary table

dropTempTableList(array $tableList, int $server = self::SERVER_SLAVE)

Drop temporary table list

from eZDBInterface
void setError(MySQLi $connection = false)

Sets the internal error messages & number

string errorMessage()

Returns the error message

from eZDBInterface
int errorNumber()

Returns the error number

from eZDBInterface
array|null|bool availableDatabases()

Returns an array of available databases in the database, null of none available, false if listing databases not supported by database

string generateUniqueTempTableName(string $pattern, bool $randomizeIndex = false, int $server = self::SERVER_SLAVE)

Generate unique table name basing on the given pattern.

from eZDBInterface
string|bool version()

Get database version number

from eZDBInterface
string generateSQLINStatement(int|array $elements, string $columnName = '', bool $not = false, $unique $unique = true, $type $type = false)

This function can be used to create a SQL IN statement to be used in a WHERE clause:

from eZDBInterface
bool supportsDefaultValuesInsertion()

Returns true if the database handler support the insertion of default values, false if not

setErrorHandling(int $errorHandling)

Sets the eZDB error handling mode

from eZDBInterface
eZMySQLiDB($parameters)

connect($server, $db, $user, $password, $socketPath, $charset = null, $port = false)

checkCharsetPriv($charset, $currentCharset)

Details

in eZDBInterface at line 50
public eZDBInterface(array $parameters)

Creates a new eZDBInterface object and connects to the database backend.

Parameters

array $parameters

in eZDBInterface at line 166
public array attributes()

Returns the available attributes for this database handler.

Return Value

array

in eZDBInterface at line 177
public bool hasAttribute(string $name)

Returns true if the attribute $name exists for this database handler.

Parameters

string $name

Return Value

bool

in eZDBInterface at line 192
public null attribute(string $name)

Returns the value of the attribute $name if it exists, otherwise null.

Parameters

string $name

Return Value

null

at line 191
public bool checkCharset(string|array $charset, string $currentCharset)

Checks if the requested character set matches the one used in the database.

The default is to always return true, see the specific database handler for more information.

Parameters

string|array $charset
string $currentCharset The charset that the database uses, will only be set if the match fails.

Return Value

bool true if it matches or false if it differs.

in eZDBInterface at line 228
public array prepareSqlQuery(resource $fd, string $buffer)

Prepare the sql file so we can create the database.

Parameters

resource $fd The file descriptor
string $buffer Reference to string buffer for SQL queries.

Return Value

array

in eZDBInterface at line 280
public bool insertFile(string $path, string $sqlFile, bool $usePathType = true)

Inserts the SQL file $sqlFile found in the path $path into the currently connected database.

Parameters

string $path
string $sqlFile
bool $usePathType

Return Value

bool true if succesful.

in eZDBInterface at line 339
public reportQuery(string $class, string $sql, int|string $numRows, int|string $timeTaken, bool $asDebug = false)

Writes a debug notice with query information.

Parameters

string $class
string $sql
int|string $numRows
int|string $timeTaken
bool $asDebug

in eZDBInterface at line 356
public setIsSQLOutputEnabled(bool $enabled)

Enabled or disables sql output.

Parameters

bool $enabled

in eZDBInterface at line 366
public startTimer()

Records the current micro time.

End the timer with endTimer() and fetch the result with timeTaken();

in eZDBInterface at line 376
public endTimer()

Stops the current timer and calculates the time taken.

in eZDBInterface at line 390
public bool|float startTime()

Returns the micro time when the timer was start or false if no timer.

Return Value

bool|float

in eZDBInterface at line 401
public bool|float endTime()

Returns the micro time when the timer was ended or false if no timer.

Return Value

bool|float

in eZDBInterface at line 412
public bool|float timeTaken()

Returns the number of milliseconds the last operation took or false if no value.

Return Value

bool|float

at line 168
public string databaseName()

Returns the name of driver, this is used to determine the name of the database type.

For instance multiple implementations of the MySQL database will all return 'mysql'.

Return Value

string

in eZDBInterface at line 434
public string|bool socketPath()

Returns the socket path for the database or false if no socket path was defined.

Return Value

string|bool

in eZDBInterface at line 444
public int connectRetryCount()

Returns the number of times the db handler should try to reconnect if it fails.

Return Value

int

in eZDBInterface at line 454
public int connectRetryWaitTime()

Returns the number of seconds the db handler should wait before rereconnecting.

Return Value

int

at line 554
public int supportedRelationTypeMask()

Returns a mask of the relation type it supports.

Return Value

int

in eZDBInterface at line 474
public bool useShortNames()

Returns if the short column names should be used insted of default ones

Return Value

bool

at line 559
public array supportedRelationTypes()

Returns an array of the relation types.

Return Value

array

at line 522
public string subString(string $string, int $from, int $len = null)

Returns a sql-expression(string) to get substring.

Parameters

string $string
int $from
int $len

Return Value

string

at line 533
public string concatString(array $strings = array())

Returns a sql-expression(string) to concatenate strings.

Parameters

array $strings

Return Value

string

at line 539
public string md5(string $str)

Returns a sql-expression(string) to generate a md5 sum of the string.

Parameters

string $str

Return Value

string

at line 544
public string bitAnd(string $arg1, string $arg2)

Returns a sql-expression(string) to generate a bit and of the argument.

Parameters

string $arg1
string $arg2

Return Value

string

at line 549
public string bitOr(string $arg1, string $arg2)

Returns a sql-expression(string) to generate a bit and of the argument.

Parameters

string $arg1
string $arg2

Return Value

string

in eZDBInterface at line 556
public bool hasRequiredServerVersion(string $minVersion, string|bool $name = false)

Checks if the version number of the server is equal or larger than $minVersion.

Will also check if the database type is correct if $name is set.

Parameters

string $minVersion A string denoting the min. required version.
string|bool $name The name of the database type it requires or false if it does not matter.

Return Value

bool true if the server fulfills the requirements.

at line 929
public string|bool databaseServerVersion()

Returns the version of the database server or false if no version could be retrieved/

Return Value

string|bool

at line 944
public string|bool databaseClientVersion()

Returns the version of the database client or false if no version could be retrieved/

Return Value

string|bool

at line 954
public bool isCharsetSupported(string $charset)

Returns true if the charset $charset is supported by the connected database.

Parameters

string $charset

Return Value

bool

in eZDBInterface at line 602
public string charset()

Returns the charset which the database is encoded in.

Return Value

string

See also

usesBuiltinEncoding()

in eZDBInterface at line 614
public bool usesBuiltinEncoding()

Returns true if the database handles encoding itself.

If not, all queries and returned data must be decoded yourselves.

This functionality might be removed in the future

Return Value

bool

at line 173
public int bindingType()

Returns type of binding used in database plugin.

Return Value

int

at line 178
public mixed bindVariable(mixed $value, mixed $fieldDef = false)

Binds variable.

Parameters

mixed $value
mixed $fieldDef

Return Value

mixed

at line 262
public mixed query(string $sql, int|bool $server = false)

Execute a query on the global MySQL database link.

If it returns an error, the script is halted and the attempted SQL query and MySQL error message are printed.

Parameters

string $sql SQL query to execute.
int|bool $server

Return Value

mixed

at line 437
public array arrayQuery(string $sql, array $params = array(), int|bool $server = false)

Executes an SQL query and returns the result as an array of accociative arrays.

Example: $db->arrayQuery( 'SELECT * FROM eztable', array( 'limit' => 10, 'offset' => 5 ) );

Parameters

string $sql SQL query to execute.
array $params Associative array containing extra parameters, can contain: - offset -> The offset of the query. - limit -> The limit of the query. - column - Limit returned row arrays to only contain this column.
int|bool $server Which server to execute the query on, either eZDBInterface::SERVERMASTER or eZDBInterface::SERVERSLAVE

Return Value

array

at line 760
public lock(string|array $table)

Locks one or several tables

Parameters

string|array $table

at line 785
public void unlock()

Releases table locks.

Return Value

void

in eZDBInterface at line 696
public bool begin()

Begin a new transaction.

If we are already in transaction then we omit this new transaction and its matching commit or rollback.

Return Value

bool

at line 796
public bool beginQuery()

The query to start a transaction.

This function must be reimplemented in the subclasses.

Return Value

bool

in eZDBInterface at line 771
public bool commit()

Commits the current transaction.

If this is not the outermost it will not commit to the database immediately but instead decrease the transaction counter.

If the current transaction had any errors in it the transaction will be rollbacked instead of commited. This ensures that the database is in a valid state. Also the PHP execution will be stopped.

Return Value

bool true if the transaction was successful, false otherwise.

at line 804
public bool commitQuery()

The query to commit the transaction.

This function must be reimplemented in the subclasses.

Return Value

bool

in eZDBInterface at line 850
public bool rollback()

Cancels the transaction.

Return Value

bool

in eZDBInterface at line 888
public bool|string generateFailedTransactionStack()

Goes through the transaction stack tree {see eZDBInterface::$TransactionStackTree}, generates the text output for it and returns it.

Return Value

bool|string The generated string or false if it is disabled.

in eZDBInterface at line 905
public string generateFailedTransactionStackEntry(array $stack, int $indentCount)

Recursive helper function for generating stack tree output.

Parameters

array $stack
int $indentCount

Return Value

string The generated string

in eZDBInterface at line 954
public string generateTraceEntry(array $entry)

Helper function for generating output for one stack-trace entry.

Parameters

array $entry

Return Value

string The generated string

at line 812
public bool rollbackQuery()

The query to cancel the transaction.

This function must be reimplemented in the subclasses.

Return Value

bool

in eZDBInterface at line 1012
public bool invalidateTransaction()

Invalidates the current transaction, see {see commit()} for more details on this.

Return Value

bool true if it was invalidated or false if there is no transaction to invalidate.

See also

isTransactionValid()

in eZDBInterface at line 1028
public reportError()

This is called whenever an error occurs in one of the database handlers.

If a transaction is active it will be invalidated as well.

Exceptions

eZDBException

in eZDBInterface at line 1113
public bool isTransactionValid()

Returns if the current or last running transaction is valid

Return Value

bool true if the current or last running transaction was valid, false otherwise

See also

invalidateTransaction()

in eZDBInterface at line 1126
public int transactionCounter()

Returns the current transaction counter.

0 means no transactions, 1 or higher means 1 or more transactions are running and a negative value means something is wrong.

Return Value

int

at line 564
public int relationCounts(int $relationMask)

Returns the relation count for all relation types in the mask $relationMask.

Parameters

int $relationMask

Return Value

int

at line 572
public int relationCount(int $relationType = eZDBInterface::RELATION_TABLE)

Returns the number of relation objects in the database for the relation type $relationType.

Parameters

int $relationType

Return Value

int

at line 680
public array eZTableList(int $server = eZDBInterface::SERVER_MASTER)

Returns the existing ez publish tables in database

Parameters

int $server

Return Value

array

at line 602
public array relationList(int $relationType = eZDBInterface::RELATION_TABLE)

Returns the relation names in the database as an array for the relation type $relationType.

Parameters

int $relationType

Return Value

array

at line 717
public bool removeRelation(string $relationName, int $relationType)

Tries to remove the relation type $relationType named $relationName

Parameters

string $relationName
int $relationType

Return Value

bool true if successful

at line 752
public string|false relationName($relationType $relationType)

Local eZDBInterface::relationName() override to support the foreign keys type relation

Parameters

$relationType $relationType

Return Value

string|false

at line 712
public bool relationMatchRegexp(int $relationType)

Return A regexp (PCRE) that can be used to filter out certain relation elements.

If no special regexp is provided it will return false.

An example, will only match tables that start with 'ez'. return "#^ez#";

This function is currently used by the eZDBTool class to remove relation elements of a specific kind (Most likely eZ Publish related elements).

Parameters

int $relationType The type which needs to be filtered, this allows one regexp per type.

Return Value

bool

in eZDBInterface at line 1238
public string implodeWithTypeCast(string $glue, array $pieces, string $type)

Casts elements of $pieces to type $type and returns them as string separated by $glue.

Use {see generateSQLINStatement()} if you intend to use this for IN statments! Example: $this->implodeWithTypeCast( ',', $myArray, 'int' );

Parameters

string $glue The separator.
array $pieces The array containing the elements.
string $type The type to cast to.

Return Value

string

at line 824
public int|bool lastSerialID(string|bool $table = false, string|bool $column = false)

Returns the last serial ID generated with an auto increment field.

Parameters

string|bool $table
string|bool $column

Return Value

int|bool The most recent value for the sequence

at line 835
public string escapeString(string $str)

Will escape a string so it's ready to be inserted in the database.

Parameters

string $str

Return Value

string mixed

at line 848
public void close()

Will close the database connection.

Return Value

void

in eZDBInterface at line 1290
public bool isConnected()

Returns true if we're connected to the database backend.

Return Value

bool

at line 858
public void createDatabase(string $dbName)

Create a new database

Parameters

string $dbName

Return Value

void

at line 867
public void removeDatabase(string $dbName)

Removes a database

Parameters

string $dbName

Return Value

void

in eZDBInterface at line 1321
public createTempTable(string $createTableQuery = '', int $server = self::SERVER_SLAVE)

Create a new temporary table

Parameters

string $createTableQuery
int $server

at line 964
public void dropTempTable(string $dropTableQuery = '', int $server = self::SERVER_SLAVE)

Drop temporary table

Parameters

string $dropTableQuery
int $server

Return Value

void

in eZDBInterface at line 1344
public dropTempTableList(array $tableList, int $server = self::SERVER_SLAVE)

Drop temporary table list

Parameters

array $tableList
int $server

at line 880
public void setError(MySQLi $connection = false)

Sets the internal error messages & number

Parameters

MySQLi $connection database connection handle, overrides the current one if given

Return Value

void

in eZDBInterface at line 1364
public string errorMessage()

Returns the error message

Return Value

string

in eZDBInterface at line 1374
public int errorNumber()

Returns the error number

Return Value

int

at line 900
public array|null|bool availableDatabases()

Returns an array of available databases in the database, null of none available, false if listing databases not supported by database

Return Value

array|null|bool

in eZDBInterface at line 1406
public string generateUniqueTempTableName(string $pattern, bool $randomizeIndex = false, int $server = self::SERVER_SLAVE)

Generate unique table name basing on the given pattern.

If the pattern contains a (%) character then the character is replaced with a part providing uniqueness (e.g. random number).

Parameters

string $pattern
bool $randomizeIndex
int $server

Return Value

string

in eZDBInterface at line 1427
public string|bool version()

Get database version number

Return Value

string|bool Version number, false if not supported

in eZDBInterface at line 1463
public string generateSQLINStatement(int|array $elements, string $columnName = '', bool $not = false, $unique $unique = true, $type $type = false)

This function can be used to create a SQL IN statement to be used in a WHERE clause:

WHERE columnName IN ( element1, element2, ... ) By default, the elements that can be submitted as an anonymous array (or an integer value in case of a single element) will just be imploded. Drivers for databases with a limitation of the elements within an IN statement have to reimplement this function. It is also possible to negate the "IN" to a "NOT IN" by using the last parameter of this function.

Usage:

$db =& eZDB::instance(); $db->generateSQLINStatement( array( 2, 5, 43, ) );

Parameters

int|array $elements Elements that should (not) be matched by the IN statment as an integer or anonymous array
string $columnName Column name of the database table the IN statement should be created for
bool $not Will generate a "NOT IN" ( if set to true ) statement instead of an "IN" ( if set to false , default )
$unique $unique Wether or not to make the array unique. Not implemented in this class, but can be used by extending classes (oracle does use it)
$type $type The type to cast the array elements to

Return Value

string A string with the correct IN statement like for example "columnName IN ( element1, element2 )"

at line 959
public bool supportsDefaultValuesInsertion()

Returns true if the database handler support the insertion of default values, false if not

Return Value

bool

in eZDBInterface at line 1501
public setErrorHandling(int $errorHandling)

Sets the eZDB error handling mode

Parameters

int $errorHandling Possible values are:pm - eZDB::ERRORHANDLINGSTANDARD: backward compatible error handling, using reportError - eZDB::ERRORHANDLINGEXCEPTION: using exceptions

at line 28
public eZMySQLiDB($parameters)

Parameters

$parameters

at line 84
public connect($server, $db, $user, $password, $socketPath, $charset = null, $port = false)

Parameters

$server
$db
$user
$password
$socketPath
$charset
$port

at line 214
public checkCharsetPriv($charset, $currentCharset)

Parameters

$charset
$currentCharset