ShowBuilderInterface.php 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. /*
  3. * This file is part of the Sonata package.
  4. *
  5. * (c) Thomas Rabaix <thomas.rabaix@sonata-project.org>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace Sonata\AdminBundle\Builder;
  11. use Sonata\AdminBundle\Admin\FieldDescriptionInterface;
  12. use Sonata\AdminBundle\Admin\AdminInterface;
  13. use Sonata\AdminBundle\Admin\FieldDescriptionCollection;
  14. interface ShowBuilderInterface extends BuilderInterface
  15. {
  16. /**
  17. * @abstract
  18. *
  19. * @param array $options
  20. *
  21. * @return void
  22. */
  23. public function getBaseList(array $options = array());
  24. /**
  25. * @abstract
  26. *
  27. * @param \Sonata\AdminBundle\Admin\FieldDescriptionCollection $list
  28. * @param null $type
  29. * @param \Sonata\AdminBundle\Admin\FieldDescriptionInterface $fieldDescription
  30. * @param \Sonata\AdminBundle\Admin\AdminInterface $admin
  31. *
  32. * @return void
  33. */
  34. public function addField(FieldDescriptionCollection $list, $type = null, FieldDescriptionInterface $fieldDescription, AdminInterface $admin);
  35. }