1
0
mirror of synced 2024-12-15 15:46:02 +03:00
doctrine2/website/plugins/sfDoctrinePlugin/lib/sfDoctrineDataRetriever.class.php
2007-09-12 21:56:14 +00:00

25 lines
741 B
PHP

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