[ Index ]
 

Code source de Symfony 1.0.0

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/lib/vendor/propel-generator/classes/propel/phing/ -> PropelDataDumpTask.php (sommaire)

(pas de description)

Poids: 383 lignes (12 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 1 class

PropelDataDumpTask:: (16 méthodes):
  setDataDbMap()
  getDataDbMap()
  getDatabaseName()
  setDatabaseName()
  getDatabaseUrl()
  setDatabaseUrl()
  getDatabaseUser()
  setDatabaseUser()
  getDatabasePassword()
  setDatabasePassword()
  getDatabaseDriver()
  setDatabaseDriver()
  createDataDbMap()
  main()
  getTableDataRS()
  createXMLDoc()


Classe: PropelDataDumpTask  - X-Ref

Dumps the contenst of selected databases to XML data dump file.

The generated XML files can have corresponding DTD files generated using the
PropelDataDTDTask.  The results of the data dump can be converted to SQL using
the PropelDataSQLTask class.

The database may be specified (via 'databaseName' attribute) if you only want to dump
the contents of one database.  Otherwise it is assumed that all databases described
by datamodel schema file(s) will be dumped.

setDataDbMap(PhingFile $datadbmap)   X-Ref
Set the file that maps between data XML files and databases.

param: PhingFile $sqldbmap the db map
return: void

getDataDbMap()   X-Ref
Get the file that maps between data XML files and databases.

return: PhingFile $datadbmap.

getDatabaseName()   X-Ref
Get the database name to dump

return: The DatabaseName value

setDatabaseName($v)   X-Ref
Set the database name

param: v The new DatabaseName value

getDatabaseUrl()   X-Ref
Get the database url

return: The DatabaseUrl value

setDatabaseUrl($v)   X-Ref
Set the database url

param: string $v The PEAR-compatible database DSN URL.

getDatabaseUser()   X-Ref
Get the database user

return: string database user

setDatabaseUser($v)   X-Ref
Set the database user

param: string $v The new DatabaseUser value

getDatabasePassword()   X-Ref
Get the database password

return: string database password

setDatabasePassword($v)   X-Ref
Set the database password

param: string $v The new DatabasePassword value

getDatabaseDriver()   X-Ref
Get the database driver name

return: string database driver name

setDatabaseDriver($v)   X-Ref
Set the database driver name

param: string $v The new DatabaseDriver value

createDataDbMap()   X-Ref
Create the data XML -> database map.

This is necessary because there is currently no other method of knowing which
data XML files correspond to which database.  This map allows us to convert multiple
data XML files into SQL.


main()   X-Ref
Iterates through each datamodel/database, dumps the contents of all tables and creates a DOM XML doc.

return: void

getTableDataRS($tableName)   X-Ref
Gets ResultSet of query to fetch all data from a table.

param: string $tableName
return: ResultSet

createXMLDoc(Database $database)   X-Ref
Creates a DOM document containing data for specified database.

param: Database $database
return: DOMDocument



Généré le : Fri Mar 16 22:42:14 2007 par Balluche grâce à PHPXref 0.7