PhpMyObject
[ class tree: PhpMyObject ] [ index: PhpMyObject ] [ all elements ]

Class: PMO_Parser

Source Location: /fichiers/v0.15/PMO_core/PMO_Parser.php

Interface Overview


This interface defines the methods a class must implement to provide a working parser class capable of parsing a SQL query.


Author(s):

Methods



Class Details

[line 50]
This interface defines the methods a class must implement to provide a working parser class capable of parsing a SQL query.



Tags:

see:  PMO_MyParser


[ Top ]


Class Methods


method addField [line 58]

void addField( $field)

Add a field viewed by parser



Tags:

throws:  Exception
access:  public


Parameters:

   $field  

[ Top ]

method addFunction [line 74]

void addFunction( $fonction)

add an sql function into function array



Tags:

access:  public


Parameters:

   $fonction  

[ Top ]

method addTable [line 66]

void addTable( $table)

Add a table viewed by parser



Tags:

throws:  Exception
access:  public


Parameters:

   $table  

[ Top ]

method countFields [line 81]

int countFields( )

count the number of fields seen by parser



Tags:

access:  public


[ Top ]

method fetchField [line 99]

string fetchField( )

fetch the fieldname stocked in fields PMO_MyArray.



Tags:

access:  public


[ Top ]

method fetchFunction [line 115]

string fetchFunction( )

fetch sql function stocked in the functions PMO_MyArray



Tags:

access:  public


[ Top ]

method fetchTable [line 107]

string fetchTable( )

fetch tablename stocked in the fields PMO_MyArray



Tags:

access:  public


[ Top ]

method parseRequest [line 91]

TRUE parseRequest( $string)

extract the name of the tables and fields from an SQL query and put them into fields & tables variables



Tags:

throws:  Exception
access:  public


Parameters:

   $string  

[ Top ]


Documentation generated on Wed, 15 Oct 2008 09:18:04 -0400 by phpDocumentor 1.4.1