[ Index ]
 

Code source de SPIP Agora 1.4

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

title

Body

[fermer]

/Agora1-4/ecrire/install/ -> SQLScript.php (sommaire)

(pas de description)

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

Définit 1 class

SQLScript:: (10 méthodes):
  SQLScript()
  _SQLScript()
  getSqlFile()
  getFileType()
  setSqlFile()
  setFileType()
  executeScript()
  _buildBlockMode()
  _buildLineMode()
  _executeQuery()


Classe: SQLScript  - X-Ref

SQLScript is a helper class to execute
specially formatted SQL scripts. It offers two main methods
one executing [action] formatted blocks, the other one
executing a SQL file line by line

SQLScript($sqlFile, $fileType = BLOCKMODE)   X-Ref
Pas de description

_SQLScript()   X-Ref
Pas de description

getSqlFile()   X-Ref
returns the SQL file name

return: String

getFileType()   X-Ref
returns the file type

return: int

setSqlFile($sqlFile)   X-Ref
sets the SQL file name


setFileType($fileType)   X-Ref
sets the file type


executeScript(&$dbInstance)   X-Ref
Execute the specified script

param: $db DB or MDB reference to an open connection
return: int    1 on success, other if an error occured (see constants for error codes)

_buildBlockMode()   X-Ref
Pas de description

_buildLineMode()   X-Ref
builds the specified script in line mode

param: $db DB or MDB reference to an open connection
return: array

_executeQuery(&$dbInstance, $query)   X-Ref
Execute the passed query. Subclasses can override this method
in order to be compliant with the BD object passed, or to do
any processing prior to executing the query.

param: $db DB or MDB reference to an open connection
param: $query String representing the SQL query to execute



Généré le : Sat Feb 24 14:40:03 2007 par Balluche grâce à PHPXref 0.7