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

Class: PMO_MyParser

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

Class Overview


This class is used to parse SQL query and extract the tablename and the fields used


Implements interfaces:

Variables

Methods



Class Details

[line 46]
This class is used to parse SQL query and extract the tablename and the fields used



[ Top ]


Class Variables

$array_fields =

[line 50]



Tags:

access:  protected

Type:   mixed


[ Top ]

$array_functions =

[line 48]



Tags:

access:  protected

Type:   mixed


[ Top ]

$array_tables =

[line 49]



Tags:

access:  protected

Type:   mixed


[ Top ]



Class Methods


constructor __construct [line 52]

PMO_MyParser __construct( )



Tags:

access:  public


[ Top ]

method addField [line 150]

void addField( $field)

add a field name to field array



Tags:

access:  public



Implementation of:
PMO_Parser::addField()
Add a field viewed by parser

Parameters:

   $field  

[ Top ]

method addFunction [line 140]

void addFunction( $function)

add an sql function into function array



Tags:

access:  public



Implementation of:
PMO_Parser::addFunction()
add an sql function into function array

Parameters:

   $function  

[ Top ]

method addTable [line 127]

void addTable( $tablename)

add a tablename stocked in tables array



Tags:

throws:  Exception
access:  public



Implementation of:
PMO_Parser::addTable()
Add a table viewed by parser

Parameters:

   $tablename  

[ Top ]

method countFields [line 160]

int countFields( )

count the number of fields



Tags:

access:  public



Implementation of:
PMO_Parser::countFields()
count the number of fields seen by parser
[ Top ]

method fetchField [line 170]

string fetchField( )

fetch fieldname stocked in the fields PMO_MyArray



Tags:

access:  public



Implementation of:
PMO_Parser::fetchField()
fetch the fieldname stocked in fields PMO_MyArray.
[ Top ]

method fetchFunction [line 180]

string fetchFunction( )

fetch sql function stocked in the functions PMO_MyArray



Tags:

access:  public



Implementation of:
PMO_Parser::fetchFunction()
fetch sql function stocked in the functions PMO_MyArray
[ Top ]

method fetchTable [line 190]

string fetchTable( )

fetch tablename stocked in the fields PMO_MyArray



Tags:

access:  public



Implementation of:
PMO_Parser::fetchTable()
fetch tablename stocked in the fields PMO_MyArray
[ Top ]

method parseRequest [line 66]

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



Implementation of:
PMO_Parser::parseRequest()
extract the name of the tables and fields from an SQL query and put them into fields & tables variables

Parameters:

   $string  

[ Top ]


Documentation generated on Wed, 15 Oct 2008 09:17:39 -0400 by phpDocumentor 1.4.1