<?php 
 
/** 
 * LICENSE 
 * 
 * This source file is subject to the new BSD license 
 * It is  available through the world-wide-web at this URL: 
 * http://www.petala-azul.com/bsd.txt 
 * If you did not receive a copy of the license and are unable to 
 * obtain it through the world-wide-web, please send an email 
 * to [email protected] so we can send you a copy immediately. 
 * 
 * @package   Bvb_Grid 
 * @author    Bento Vilas Boas <[email protected]> 
 * @copyright 2010 ZFDatagrid 
 * @license   http://www.petala-azul.com/bsd.txt   New BSD License 
 * @version   $Id$ 
 * @link      http://zfdatagrid.com 
 */ 
 
class Bvb_Grid_Filters 
{ 
 
    protected $_filters = array(); 
 
 
    /** 
     * Adds a new filters 
     * 
     * @param string $field   The field to be added 
     * @param array  $options Options for the field 
     * 
     * @return Bvb_Grid_Filters 
     */ 
    public function addFilter ($field, array $options = array()) 
    { 
        $this->_filters[$field] = $options; 
        return $this; 
    } 
     
    /** 
     * Returns current filters 
     * 
     * @return array 
     */ 
    public function getFilters() 
    { 
        return $this->_filters; 
    } 
}
 
 |