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

Class: PMO_MyController

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

Class Overview


PMO_MyController enable you to send queries to you database and returns the data.


Implements interfaces:

Variables

Methods



Class Details

[line 71]
PMO_MyController enable you to send queries to you database and returns the data.

This class also enables you to execute raw sql query and transform each tuples result into distinct PMO_Object.

Iterations schema is
For each tuple > For each Table > Build an object > For each column > Set the value of object

Before instanciation, a new object controller checks if it already exists in a hash map. If it does exist, the controller will retrieve its reference.

Objects are always referenced in this hash map after their instanciation.




[ Top ]


Class Variables

$array_iterator =

[line 102]

ArrayIterator SPL Object.



Tags:

var:  ArrayIterator object
access:  protected

Type:   object a


[ Top ]

$dbms_instance =

[line 78]

the Dbms instance



Tags:

access:  protected

Type:   object


[ Top ]

$map_objects =

[line 86]

the map of PMO_MyObject objects this controller holds



Tags:

var:  PMO_MyMap object that holds the retrieved objects
access:  protected

Type:   object a


[ Top ]

$map_tables =

[line 94]

a map of PMO_MyTable objects



Tags:

var:  PMO_MyMapTable objects
access:  protected

Type:   object a


[ Top ]

$parsersql =

[line 110]

the SQL parser object



Tags:

var:  PMO_MyParser object
access:  protected

Type:   object a


[ Top ]



Class Methods


constructor __construct [line 121]

object returns __construct( [ $object = NULL])

the constructor the constrortor instanciates the Ddms engine and initialize itself



Tags:

return:  the PMO_MyController object
access:  public


Parameters:

object   $object   a PDO object to use fr the database requests. If NULL, the Ddms driver specified by the configuration will be used

[ Top ]

method getMapObjects [line 265]

PMO_Map getMapObjects( )

Return map of objects allready loaded by query()



Tags:

throws:  Exception
access:  public



Implementation of:
PMO_Controller::getMapObjects()
Return map of objects already loaded through query()
[ Top ]

method init [line 341]

void init( )

initializes the controller



Tags:

access:  public


[ Top ]

method objectquery [line 279]

PMO_Map objectquery( PMO_Request $request)

Execute a PMO_MyRequest query



Tags:

return:  a PMO_Map object
access:  public



Implementation of:
PMO_Controller::objectquery()
Execute a PMO_Request query

Parameters:

object request   $request   a PMO_Request object that has been used to build the query

[ Top ]

method query [line 291]

PMO_Map query( string $query)

Execute an sql query and return the corresponding PMO_Map fill with PMO_Object



Tags:

throws:  Exception
access:  public



Implementation of:
PMO_Controller::query()
Execute an sql query and return the corresponding PMO_Map fill with PMO_Object

Parameters:

string   $query   the SQL query to execute

[ Top ]

method queryAll [line 321]

PMO_Map queryAll( PMO_Table $table)

Should not be use return all tuples of one table equivalent : SELECT * table;



Tags:

throws:  Exception
access:  public



Implementation of:
PMO_Controller::queryAll()
Should not be use return all tuples of one table equivalent : SELECT * table;

Parameters:

object   $table   a PMO_Table object

[ Top ]

method rawquery [line 307]

object|resource rawquery( string $query)

Execute an sql query without traitment



Tags:

return:  the method will return either a PDO object or a DBMS resource link, depending on the selected driver
access:  public



Implementation of:
PMO_Controller::rawquery()
Execute an sql query without treatment

Parameters:

string   $query   the SQL query

[ Top ]


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