forked from sonata-project/SonataAdminBundle
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Thomas Rabaix
committed
Mar 7, 2012
1 parent
19a7b76
commit 309d399
Showing
4 changed files
with
102 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
<?php | ||
/* | ||
* This file is part of the Sonata package. | ||
* | ||
* (c) Thomas Rabaix <[email protected]> | ||
* | ||
* 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\AdminBundle\Validator\ErrorElement; | ||
use Sonata\AdminBundle\Admin\AdminInterface; | ||
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 $filter) | ||
{} | ||
|
||
/** | ||
* {@inheritdoc} | ||
*/ | ||
public function configureRoutes(AdminInterface $admin, RouteCollection $collection) | ||
{} | ||
|
||
/** | ||
* {@inheritdoc} | ||
*/ | ||
public function configureSideMenu(AdminInterface $admin, MenuItemInterface $menu, $action, AdminInterface $childAdmin = null) | ||
{} | ||
|
||
/** | ||
* {@inheritdoc} | ||
*/ | ||
public function validate(AdminInterface $admin, ErrorElement $errorElement, $object) | ||
{} | ||
|
||
/** | ||
* {@inheritdoc} | ||
*/ | ||
public function configureQuery(AdminInterface $admin, ProxyQueryInterface $query, $context = 'list') | ||
{} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters