1
0
mirror of synced 2024-12-15 07:36:03 +03:00
doctrine2/website/plugins/sfDoctrinePlugin/lib/sfDoctrineDataRetriever.class.php

25 lines
741 B
PHP
Raw Normal View History

2007-09-01 03:41:48 +04:00
<?php
/*
* This file is part of the sfDoctrine package.
* (c) 2006-2007 Olivier Verdier <Olivier.Verdier@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
/**
* @package symfony.plugins
* @subpackage sfDoctrine
* @author Olivier Verdier <Olivier.Verdier@gmail.com>
* @version SVN: $Id: sfDoctrineDataRetriever.class.php 3437 2007-02-10 09:04:27Z chtito $
*/
class sfDoctrineDataRetriever
{
static public function retrieveObjects($class, $peer_method = 'findAll')
{
if (!$peer_method)
$peer_method = 'findAll';
$table = sfDoctrine::getTable($class);
return call_user_func(array($table, $peer_method));
}
}