1
0
mirror of synced 2025-01-31 12:32:59 +03:00
2007-09-22 01:32:48 +00:00

25 lines
548 B
PHP

<?php
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);
}
}