[ Index ]
 

Code source de PHP PEAR 1.4.5

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

title

Body

[fermer]

/MDB/Modules/Manager/ -> Common.php (sommaire)

(pas de description)

Poids: 723 lignes (30 kb)
Inclus ou requis: 7 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 1 class

MDB_Manager_Common:: (23 méthodes):
  getFieldDeclaration()
  getFieldDeclarationList()
  _isSequenceName()
  createDatabase()
  dropDatabase()
  createTable()
  dropTable()
  alterTable()
  listDatabases()
  listUsers()
  listViews()
  listFunctions()
  listTables()
  listTableFields()
  getTableFieldDefinition()
  createIndex()
  dropIndex()
  listTableIndexes()
  getTableIndexDefinition()
  createSequence()
  dropSequence()
  listSequences()
  getSequenceDefinition()


Classe: MDB_Manager_Common  - X-Ref

Base class for the management modules that is extended by each MDB driver

getFieldDeclaration(&$db, $field_name, $field)   X-Ref
get declaration of a field

param: object    $dbs        database object that is extended by this class
param: string $field_name name of the field to be created
param: string $field  associative array with the name of the properties
return: mixed string on success, a MDB error on failure

getFieldDeclarationList(&$db, $fields)   X-Ref
get declaration of a number of field in bulk

param: object    $dbs        database object that is extended by this class
param: string $fields  a multidimensional associative array.
return: mixed string on success, a MDB error on failure

_isSequenceName(&$db, $sqn)   X-Ref
list all tables in the current database

param: object    $dbs        database object that is extended by this class
param: string $sqn string that containts name of a potential sequence
return: mixed name of the sequence if $sqn is a name of a sequence, else FALSE

createDatabase(&$db, $database)   X-Ref
create a new database

param: object    $dbs        database object that is extended by this class
param: string $name name of the database that should be created
return: mixed MDB_OK on success, a MDB error on failure

dropDatabase(&$db, $database)   X-Ref
drop an existing database

param: object    $dbs        database object that is extended by this class
param: string $name name of the database that should be dropped
return: mixed MDB_OK on success, a MDB error on failure

createTable(&$db, $name, $fields)   X-Ref
create a new table

param: object    $dbs        database object that is extended by this class
param: string $name     Name of the database that should be created
param: array $fields Associative array that contains the definition of each field of the new table
return: mixed MDB_OK on success, a MDB error on failure

dropTable(&$db, $name)   X-Ref
drop an existing table

param: object    $dbs        database object that is extended by this class
param: string $name name of the table that should be dropped
return: mixed MDB_OK on success, a MDB error on failure

alterTable(&$db, $name, $changes, $check)   X-Ref
alter an existing table

param: object    $dbs        database object that is extended by this class
param: string $name         name of the table that is intended to be changed.
param: array $changes     associative array that contains the details of each type
param: boolean $check     indicates whether the function should just check if the DBMS driver
return: mixed MDB_OK on success, a MDB error on failure

listDatabases(&$db)   X-Ref
list all databases

param: object    $dbs        database object that is extended by this class
return: mixed data array on success, a MDB error on failure

listUsers(&$db)   X-Ref
list all users

param: object    $dbs        database object that is extended by this class
return: mixed data array on success, a MDB error on failure

listViews(&$db)   X-Ref
list all views in the current database

param: object    $dbs        database object that is extended by this class
return: mixed data array on success, a MDB error on failure

listFunctions(&$db)   X-Ref
list all functions in the current database

param: object    $dbs        database object that is extended by this class
return: mixed data array on success, a MDB error on failure

listTables(&$db)   X-Ref
list all tables in the current database

param: object    $dbs        database object that is extended by this class
return: mixed data array on success, a MDB error on failure

listTableFields(&$db, $table)   X-Ref
list all fields in a tables in the current database

param: object    $dbs        database object that is extended by this class
param: string $table name of table that should be used in method
return: mixed data array on success, a MDB error on failure

getTableFieldDefinition(&$db, $table, $field)   X-Ref
get the stucture of a field into an array

param: object    $dbs        database object that is extended by this class
param: string    $table         name of table that should be used in method
param: string    $fields     name of field that should be used in method
return: mixed data array on success, a MDB error on failure

createIndex(&$db, $table, $name, $definition)   X-Ref
get the stucture of a field into an array

param: object    $dbs        database object that is extended by this class
param: string    $table         name of the table on which the index is to be created
param: string    $name         name of the index to be created
param: array     $definition        associative array that defines properties of the index to be created.
return: mixed MDB_OK on success, a MDB error on failure

dropIndex(&$db, $table, $name)   X-Ref
drop existing index

param: object    $dbs        database object that is extended by this class
param: string    $table         name of table that should be used in method
param: string    $name         name of the index to be dropped
return: mixed MDB_OK on success, a MDB error on failure

listTableIndexes(&$db, $table)   X-Ref
list all indexes in a table

param: object    $dbs        database object that is extended by this class
param: string    $table      name of table that should be used in method
return: mixed data array on success, a MDB error on failure

getTableIndexDefinition(&$db, $table, $index)   X-Ref
get the stucture of an index into an array

param: object    $dbs        database object that is extended by this class
param: string    $table      name of table that should be used in method
param: string    $index      name of index that should be used in method
return: mixed data array on success, a MDB error on failure

createSequence(&$db, $name, $start)   X-Ref
create sequence

param: object    $dbs        database object that is extended by this class
param: string    $seq_name     name of the sequence to be created
param: string    $start         start value of the sequence; default is 1
return: mixed MDB_OK on success, a MDB error on failure

dropSequence(&$db, $name)   X-Ref
drop existing sequence

param: object    $dbs        database object that is extended by this class
param: string    $seq_name     name of the sequence to be dropped
return: mixed MDB_OK on success, a MDB error on failure

listSequences(&$db)   X-Ref
list all sequences in the current database

param: object    $dbs        database object that is extended by this class
return: mixed data array on success, a MDB error on failure

getSequenceDefinition(&$db, $sequence)   X-Ref
get the stucture of a sequence into an array

param: object    $dbs        database object that is extended by this class
param: string    $sequence   name of sequence that should be used in method
return: mixed data array on success, a MDB error on failure



Généré le : Sun Feb 25 14:08:00 2007 par Balluche grâce à PHPXref 0.7