[ Index ]
 

Code source de phpMyAdmin 2.10.3

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/libraries/ -> sqlvalidator.class.php (sommaire)

PHP interface to MimerSQL Validator

Author: Robin Johnson <robbat2@users.sourceforge.net>
Version: $Id: sqlvalidator.class.php 9550 2006-10-13 08:21:55Z nijel $
Poids: 411 lignes (14 kb)
Inclus ou requis: 1 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 1 class

PMA_SQLValidator:: (19 méthodes):
  _openService()
  _openSession()
  _validateSQL()
  _validate()
  PMA_SQLValidator()
  setCredentials()
  setCallingProgram()
  appendCallingProgram()
  setTargetDbms()
  appendTargetDbms()
  setConnectionTechnology()
  appendConnectionTechnology()
  setInteractive()
  setOutputType()
  startService()
  startSession()
  start()
  isValid()
  validationString()


Classe: PMA_SQLValidator  - X-Ref

_openService($url)   X-Ref
Service opening

param: string  URL of Mimer SQL Validator WSDL file
return: object  Object to use

_openSession($obj, $username, $password,$calling_program, $calling_program_version,$target_dbms, $target_dbms_version,$connection_technology, $connection_technology_version,$interactive)   X-Ref
Service initializer to connect to server

param: object   Service object
param: string   Username
param: string   Password
param: string   Name of calling program
param: string   Version of calling program
param: string   Target DBMS
param: string   Version of target DBMS
param: string   Connection Technology
param: string   version of Connection Technology
param: integer  boolean of 1/0 to specify if we are an interactive system
return: object   stdClass return object with data

_validateSQL($obj, $session, $sql, $method)   X-Ref
Validator sytem call

param: object  Service object
param: object  Session object
param: string  SQL Query to validate
param: string  Data return type
return: object  stClass return with data

_validate($sql)   X-Ref
Validator sytem call

param: string  SQL Query to validate
return: object  stdClass return with data

PMA_SQLValidator()   X-Ref
Constructor


setCredentials($username, $password)   X-Ref
Sets credentials

param: string  the username
param: string  the password

setCallingProgram($calling_program, $calling_program_version)   X-Ref
Sets the calling program

param: string  the calling program name
param: string  the calling program revision

appendCallingProgram($calling_program, $calling_program_version)   X-Ref
Appends the calling program

param: string  the calling program name
param: string  the calling program revision

setTargetDbms($target_dbms, $target_dbms_version)   X-Ref
Sets the target DBMS

param: string  the target DBMS name
param: string  the target DBMS revision

appendTargetDbms($target_dbms, $target_dbms_version)   X-Ref
Appends the target DBMS

param: string  the target DBMS name
param: string  the target DBMS revision

setConnectionTechnology($connection_technology, $connection_technology_version)   X-Ref
Sets the connection technology used

param: string  the connection technology name
param: string  the connection technology revision

appendConnectionTechnology($connection_technology, $connection_technology_version)   X-Ref
Appends the connection technology used

param: string  the connection technology name
param: string  the connection technology revision

setInteractive($interactive)   X-Ref
Sets whether interactive mode should be used or not

param: integer  whether interactive mode should be used or not

setOutputType($output_type)   X-Ref
Sets the output type to use

param: string  the output type to use

startService()   X-Ref
Starts service


startSession()   X-Ref
Starts session


start()   X-Ref
Do start service and session


isValid($sql)   X-Ref
Call to determine just if a query is valid or not.

param: string SQL statement to validate
return: string Validator string from Mimer

validationString($sql)   X-Ref
Call for complete validator response

param: string SQL statement to validate
return: string Validator string from Mimer



Généré le : Mon Nov 26 15:18:20 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics