TYPO3 API  SVNRelease
Public Member Functions | Public Attributes
tx_dbal_handler_xmldb Class Reference
Inheritance diagram for tx_dbal_handler_xmldb:
Inheritance graph
[legend]
Collaboration diagram for tx_dbal_handler_xmldb:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 init ($config, $pObj)
 readDataSource ($table)
 saveDataSource ($table)
 xmlDB_writeStructure ()
 xmlDB_readStructure ()
 admin_get_tables ()
 admin_get_fields ($tableName)
 admin_get_keys ($tableName)
 admin_query ($query)

Public Attributes

 $config = array()
 $pObj
 $DBdir = ''
 $DBstructure

Detailed Description

Definition at line 74 of file class.tx_dbal_handler_xmldb.php.


Member Function Documentation

tx_dbal_handler_xmldb::admin_get_fields ( tableName)

Returns information about each field in the $table

Parameters:
stringTable name
Returns:
array Field information in an associative array with fieldname => field row

Reimplemented from tx_dbal_sqlengine.

Definition at line 244 of file class.tx_dbal_handler_xmldb.php.

tx_dbal_handler_xmldb::admin_get_keys ( tableName)

Returns information about each index key in the $table

Parameters:
stringTable name
Returns:
array Key information in a numeric array

Reimplemented from tx_dbal_sqlengine.

Definition at line 278 of file class.tx_dbal_handler_xmldb.php.

tx_dbal_handler_xmldb::admin_get_tables ( )

Returns the list of tables from the database

Returns:
array Tables in an array (tablename is in both key and value)
Todo:
Should return table details in value! see t3lib_db::admin_get_tables()

Reimplemented from tx_dbal_sqlengine.

Definition at line 219 of file class.tx_dbal_handler_xmldb.php.

tx_dbal_handler_xmldb::admin_query ( query)

mysql() wrapper function, used by the Install Tool and EM for all queries regarding management of the database!

Parameters:
stringQuery to execute
Returns:
pointer Result pointer

Reimplemented from tx_dbal_sqlengine.

Definition at line 316 of file class.tx_dbal_handler_xmldb.php.

References $query, debug(), t3lib_sqlparser\parseSQL(), t3lib_div\writeFile(), and xmlDB_writeStructure().

tx_dbal_handler_xmldb::init ( config,
pObj 
)

Initialize handler

Parameters:
arrayConfiguration from DBAL
objectParent object
Returns:
void

Reimplemented from tx_dbal_sqlengine.

Definition at line 92 of file class.tx_dbal_handler_xmldb.php.

References $config, debug(), t3lib_div\getFileAbsFileName(), xmlDB_readStructure(), and xmlDB_writeStructure().

tx_dbal_handler_xmldb::readDataSource ( table)

Setting table data (overriding function)

Parameters:
stringTable name
Returns:
void

Reimplemented from tx_dbal_sqlengine.

Definition at line 129 of file class.tx_dbal_handler_xmldb.php.

References t3lib_div\xml2array().

tx_dbal_handler_xmldb::saveDataSource ( table)

Saving data source

Parameters:
stringTable name
Returns:
boolean True on success

Reimplemented from tx_dbal_sqlengine.

Definition at line 158 of file class.tx_dbal_handler_xmldb.php.

References $content, $GLOBALS, t3lib_div\array2xml(), t3lib_div\getFileAbsFileName(), and t3lib_div\writeFile().

tx_dbal_handler_xmldb::xmlDB_readStructure ( )

Reading database structure

Returns:
void

Definition at line 194 of file class.tx_dbal_handler_xmldb.php.

References t3lib_div\xml2array().

Referenced by init().

tx_dbal_handler_xmldb::xmlDB_writeStructure ( )

Writing database structure

Returns:
void

Definition at line 185 of file class.tx_dbal_handler_xmldb.php.

References t3lib_div\array2xml(), and t3lib_div\writeFile().

Referenced by admin_query(), and init().


Member Data Documentation

tx_dbal_handler_xmldb::$config = array()

Definition at line 76 of file class.tx_dbal_handler_xmldb.php.

Referenced by init().

tx_dbal_handler_xmldb::$DBdir = ''

Definition at line 80 of file class.tx_dbal_handler_xmldb.php.

tx_dbal_handler_xmldb::$DBstructure
Initial value:
 array(
        'tables' => array()
    )

Definition at line 81 of file class.tx_dbal_handler_xmldb.php.

tx_dbal_handler_xmldb::$pObj

Definition at line 77 of file class.tx_dbal_handler_xmldb.php.


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