123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899 |
- <?php
- /*
- * This file is part of the Sonata package.
- *
- * (c) Thomas Rabaix <thomas.rabaix@sonata-project.org>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- *
- */
- namespace Sonata\AdminBundle\Datagrid;
- use Sonata\AdminBundle\Filter\FilterInterface;
- interface DatagridInterface
- {
- /**
- * @abstract
- * @return \Sonata\AdminBundle\Datagrid\PagerInterface
- */
- function getPager();
- /**
- * @abstract
- * @return \Sonata\AdminBundle\Datagrid\ProxyQueryInterface
- */
- function getQuery();
- /**
- * @abstract
- * @return array
- */
- function getResults();
- /**
- * @abstract
- * @return void
- */
- function buildPager();
- /**
- * @abstract
- * @param \Sonata\AdminBundle\Filter\FilterInterface $filter
- * @return \Sonata\AdminBundle\Filter\FilterInterface
- */
- function addFilter(FilterInterface $filter);
- /**
- * @abstract
- * @return array
- */
- function getFilters();
- /**
- * @abstract
- * @return array
- */
- function getValues();
- /**
- * @abstract
- * @return array
- */
- function getColumns();
- /**
- * @abstract
- * @param $name
- * @param $operator
- * @param $value
- */
- function setValue($name, $operator, $value);
- /**
- * @abstract
- * @return \Symfony\Component\Form\Form
- */
- function getForm();
- /**
- * @abstract
- * @param $name
- * @return \Sonata\AdminBundle\Filter\FilterInterface
- */
- function getFilter($name);
- /**
- * @abstract
- * @param $name
- * @return bool
- */
- function hasFilter($name);
- /**
- * @abstract
- * @param $name
- */
- function removeFilter($name);
- }
|