123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138 |
- <?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\Admin;
- use Sonata\AdminBundle\Form\FormMapper;
- use Sonata\AdminBundle\Datagrid\ListMapper;
- use Sonata\AdminBundle\Datagrid\DatagridMapper;
- use Sonata\AdminBundle\Show\ShowMapper;
- use Sonata\AdminBundle\Route\RouteCollection;
- use Sonata\CoreBundle\Validator\ErrorElement;
- use Sonata\AdminBundle\Datagrid\ProxyQueryInterface;
- use Knp\Menu\ItemInterface as MenuItemInterface;
- abstract class AdminExtension implements AdminExtensionInterface
- {
- /**
- * {@inheritdoc}
- */
- public function configureFormFields(FormMapper $form)
- {}
- /**
- * {@inheritdoc}
- */
- public function configureListFields(ListMapper $list)
- {}
- /**
- * {@inheritdoc}
- */
- public function configureDatagridFilters(DatagridMapper $filter)
- {}
- /**
- * {@inheritdoc}
- */
- public function configureShowFields(ShowMapper $show)
- {}
- /**
- * {@inheritdoc}
- */
- public function configureRoutes(AdminInterface $admin, RouteCollection $collection)
- {}
- /**
- * {@inheritdoc}
- */
- public function configureSideMenu(AdminInterface $admin, MenuItemInterface $menu, $action, AdminInterface $childAdmin = null)
- {}
- /**
- * {@inheritdoc}
- */
- public function configureTabMenu(AdminInterface $admin, MenuItemInterface $menu, $action, AdminInterface $childAdmin = null)
- {
- // Use configureSideMenu not to mess with previous overrides
- // TODO remove once deprecation period is over
- $this->configureSideMenu($admin, $menu, $action, $childAdmin);
- }
- /**
- * {@inheritdoc}
- */
- public function validate(AdminInterface $admin, ErrorElement $errorElement, $object)
- {}
- /**
- * {@inheritdoc}
- */
- public function configureQuery(AdminInterface $admin, ProxyQueryInterface $query, $context = 'list')
- {}
- /**
- * {@inheritdoc}
- */
- public function alterNewInstance(AdminInterface $admin, $object)
- {}
- /**
- * {@inheritdoc}
- */
- public function alterObject(AdminInterface $admin, $object)
- {}
- /**
- * {@inheritdoc}
- */
- public function getPersistentParameters(AdminInterface $admin)
- {
- return array();
- }
- /**
- * {@inheritdoc}
- */
- public function preUpdate(AdminInterface $admin, $object)
- {}
- /**
- * {@inheritdoc}
- */
- public function postUpdate(AdminInterface $admin, $object)
- {}
- /**
- * {@inheritdoc}
- */
- public function prePersist(AdminInterface $admin, $object)
- {}
- /**
- * {@inheritdoc}
- */
- public function postPersist(AdminInterface $admin, $object)
- {}
- /**
- * {@inheritdoc}
- */
- public function preRemove(AdminInterface $admin, $object)
- {}
- /**
- * {@inheritdoc}
- */
- public function postRemove(AdminInterface $admin, $object)
- {}
- }
|