. */ /** * Doctrine_Resource_Client * * @author Konsta Vesterinen * @package Doctrine * @license http://www.opensource.org/licenses/lgpl-license.php LGPL * @version $Revision$ * @category Object Relational Mapping * @link www.phpdoctrine.com * @since 1.0 */ class Doctrine_Resource_Client extends Doctrine_Resource { public $config = array(); public function __construct($config) { $this->config = $config; } public function newQuery() { return new Doctrine_Resource_Query($this->config); } public function newRecord($model) { return new Doctrine_Resource_Record($model, $this->config); } public function newCollection($model) { return new Doctrine_Resource_Collection($model, $this->config); } }