1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- <?php
- namespace Sonata\AdminBundle\Event;
- use Sonata\AdminBundle\Admin\AdminInterface;
- use Sonata\AdminBundle\Datagrid\ProxyQueryInterface;
- use Symfony\Component\EventDispatcher\Event;
- class ConfigureQueryEvent extends Event
- {
-
- protected $admin;
-
- protected $proxyQuery;
-
- protected $context;
-
- public function __construct(AdminInterface $admin, ProxyQueryInterface $proxyQuery, $context)
- {
- $this->admin = $admin;
- $this->proxyQuery = $proxyQuery;
- $this->context = $context;
- }
-
- public function getAdmin()
- {
- return $this->admin;
- }
-
- public function getContext()
- {
- return $this->context;
- }
-
- public function getProxyQuery()
- {
- return $this->proxyQuery;
- }
- }
|