[ Index ]
 

Code source de Typo3 4.1.3

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/typo3/sysext/dbal/handlers/ -> class.tx_dbal_handler_openoffice.php (sommaire)

Contains an example DBAL handler class $Id: class.tx_dbal_handler_openoffice.php 945 2005-12-27 15:00:34Z k-fish $

Author: Kasper Skaarhoj <kasper@typo3.com>
Poids: 234 lignes (6 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 1 class

tx_dbal_handler_openoffice:: (7 méthodes):
  init()
  readDataSource()
  saveDataSource()
  admin_get_tables()
  admin_get_fields()
  admin_get_keys()
  admin_query()


Classe: tx_dbal_handler_openoffice  - X-Ref

Example DBAL handler class
Stores data in an Open Office Calc Spreadsheet

init($config, &$pObj)   X-Ref
Initialize handler

param: array        Configuration from DBAL
param: object        Parent object
return: boolean        True on success.

readDataSource($table)   X-Ref
Setting table data (overriding function)

param: string        Table name
return: void

saveDataSource($table)   X-Ref
Saving data source

param: string        Table name
return: boolean        True on success

admin_get_tables()   X-Ref
Returns the list of tables from the database

return: array        Tables in an array (tablename is in both key and value)

admin_get_fields($tableName)   X-Ref
Returns information about each field in the $table

param: string        Table name
return: array        Field information in an associative array with fieldname => field row

admin_get_keys($tableName)   X-Ref
Returns information about each index key in the $table

param: string        Table name
return: array        Key information in a numeric array

admin_query($query)   X-Ref
mysql() wrapper function, used by the Install Tool and EM for all queries regarding management of the database!

param: string        Query to execute
return: pointer        Result pointer



Généré le : Sun Nov 25 17:13:16 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics