CWIS Developer Documentation
Public Member Functions | List of all members
MysqlSystemVariables Class Reference

Class that allows permits easier access to MySQL system variables. More...

Public Member Functions

 __construct (Database $DB)
 Object Constructor. More...
 
 Get ($Variable)
 Get the specified MySQL system variable. More...
 
 GetStopWords ()
 Get the MySQL stopword list the database is using. More...
 

Detailed Description

Class that allows permits easier access to MySQL system variables.

Definition at line 13 of file MysqlSystemVariables.php.

Constructor & Destructor Documentation

MysqlSystemVariables::__construct ( Database  $DB)

Object Constructor.

Parameters
Database$DBAxis database of which to get the system variables

Definition at line 20 of file MysqlSystemVariables.php.

References Database\FetchRow(), and Database\Query().

Member Function Documentation

MysqlSystemVariables::Get (   $Variable)

Get the specified MySQL system variable.

Parameters
string$VariableThe MySQL system variable to fetch
Returns
the value of the variable specified or NULL if non-existent

Definition at line 34 of file MysqlSystemVariables.php.

Referenced by GetStopWords().

Here is the caller graph for this function:

MysqlSystemVariables::GetStopWords ( )

Get the MySQL stopword list the database is using.

If the stopword file is unreadable, the default list for MySQL 5 will be returned instead.

Returns
an array of the stopwords

Definition at line 45 of file MysqlSystemVariables.php.

References Get().


The documentation for this class was generated from the following file: