Source for file PMO_Controller.php
Documentation is available at PMO_Controller.php
* This file contains the PMO_Controller interface.
* This file is part of the PhpMyObject project,
* an Object-Relational Mapping (ORM) system.
* For questions, help, comments, discussion, etc., please join our
* forum at {@link http://www.developpez.net/forums/forumdisplay.php?f=770}
* or our mailing list at {@link http://groups.google.com/group/pmo-dev}.
* PhpMyObject is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with this program. If not, see {@link http://www.gnu.org/licenses/}.
* @author Nicolas Boiteux <nicolas_boiteux@yahoo.fr>
* @link http://pmo.developpez.com/
* @since PhpMyObject v0.1
* @copyright Copyright (C) 2007-2008 Nicolas Boiteux
* @license GPLv3 {@link http://www.gnu.org/licenses/gpl}
* This interface defines the methods a class must implement
* to provide a working controller class that will be able
* to query the data and return a {@link PMO_MyMap} map
* Return map of objects already loaded through {@link query()}
* Execute an sql query without treatment
* @param string $query the query to execute
* @return object|resource the method must return either a PDO object
* or a DBMS resource link, depending on the
* Execute a PMO_Request query
* @param object $request a {@link PMO_Request} object
* Execute an sql query and
* return the corresponding PMO_Map fill with PMO_Object
* @param string $query the query to execute
public function query($query);
* return all tuples of one table
* equivalent : SELECT * table;
* @param object $table a {@link PMO_Table} object
public function queryAll(PMO_Table $table);
|