123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- <?php
- /*
- * This file is part of the Sonata Project 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\Builder;
- use Sonata\AdminBundle\Admin\AdminInterface;
- use Sonata\AdminBundle\Admin\FieldDescriptionCollection;
- use Sonata\AdminBundle\Admin\FieldDescriptionInterface;
- /**
- * @author Thomas Rabaix <thomas.rabaix@sonata-project.org>
- */
- interface ListBuilderInterface extends BuilderInterface
- {
- /**
- * @param array $options
- *
- * @return FieldDescriptionCollection
- */
- public function getBaseList(array $options = array());
- /**
- * Modify a field description to display it in the list view.
- *
- * @param null|mixed $type
- * @param FieldDescriptionInterface $fieldDescription
- * @param AdminInterface $admin
- */
- public function buildField($type, FieldDescriptionInterface $fieldDescription, AdminInterface $admin);
- /**
- * Modify a field description and add it to the displayed columns.
- *
- * @param FieldDescriptionCollection $list
- * @param null|mixed $type
- * @param FieldDescriptionInterface $fieldDescription
- * @param AdminInterface $admin
- */
- public function addField(FieldDescriptionCollection $list, $type, FieldDescriptionInterface $fieldDescription, AdminInterface $admin);
- }
|