Actions

Source Code of This Project

/lib/model/DBuilder/Model/NewsProviders.php

<?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.
 */

/**
 * See DBuilder
 *
 * @package    pwp
 * @subpackage DBuilder
 * @author     Victor Rad'
 */
class DBuilder_Model_NewsProviders extends DBuilder
{
  
    public function __construct(DBuilder_Query $query, $indexBy = null)
    {
        parent::__construct($query);
        // do base request
        $this->getQuery()->from('NewsProviders np' . ((null !== $indexBy) ? ' INDEXBY np.' . $indexBy : ''))->select('np.*');
    }
}