<?php
/*
* This file is part of the pwp package.
* (c) 2009-2010 Victor Rad' <victor.v.rad[at]gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
/**
* This class has been auto-generated by the Doctrine ORM Framework
*/
class NewsProvidersTable extends Doctrine_Table
{
public function getActiveFormChoice()
{
$newsProviders = DFactory::get('NewsProviders')->getBuilder()->getQuery()
->where('status = ?', 'active')
->execute();
foreach ($newsProviders as $row){
$newsProvidersMap[$row->getName()] = $row->getName();
}
return $newsProvidersMap;
}
}