PHP 클래스 Elcodi\Admin\CoreBundle\Controller\Abstracts\AbstractAdminController

상속: extends Symfony\Bundle\FrameworkBundle\Controller\Controller
파일 보기 프로젝트 열기: elcodi/bamboo 1 사용 예제들

보호된 메소드들

메소드 설명
deleteAction ( Request $request, Mixed $entity, string $redirectPath = null ) : RedirectResponse Updated edited element action
disableAction ( Request $request, Elcodi\Component\Core\Entity\Interfaces\EnabledInterface $entity ) : array Disable entity
disableEntity ( Elcodi\Component\Core\Entity\Interfaces\EnabledInterface $entity ) Disables the given entity
enableAction ( Request $request, Elcodi\Component\Core\Entity\Interfaces\EnabledInterface $entity ) : array Enable entity
enableEntity ( Elcodi\Component\Core\Entity\Interfaces\EnabledInterface $entity ) Enables the given entity
flush ( mixed $entity ) Save an entity. To ensure the method is simple, the entity will be persisted always
flushCache ( ) Flush cache
getFailResponse ( Request $request, Exception $exception ) : mixed Return fail response
getOkResponse ( Request $request, string $redirectPath = null ) : mixed Return ok response
getResponse ( Request $request, Closure $closure, string $redirectPath = null ) : mixed Return response
redirectRoute ( string $route, array $params = [] ) : RedirectResponse Return a RedirectResponse given a route name and an array of parameters
translate ( string $string ) : string Translate

비공개 메소드들

메소드 설명
getManagerForClass ( Mixed $entity ) : Doctrine\Common\Persistence\ObjectManager Get entity manager from an entity

메소드 상세

deleteAction() 보호된 메소드

Updated edited element action
protected deleteAction ( Request $request, Mixed $entity, string $redirectPath = null ) : RedirectResponse
$request Symfony\Component\HttpFoundation\Request Request
$entity Mixed Entity to delete
$redirectPath string Redirect path
리턴 Symfony\Component\HttpFoundation\RedirectResponse Redirect response

disableAction() 보호된 메소드

Disable entity
protected disableAction ( Request $request, Elcodi\Component\Core\Entity\Interfaces\EnabledInterface $entity ) : array
$request Symfony\Component\HttpFoundation\Request Request
$entity Elcodi\Component\Core\Entity\Interfaces\EnabledInterface Entity to disable
리턴 array Result

disableEntity() 보호된 메소드

Disables the given entity
protected disableEntity ( Elcodi\Component\Core\Entity\Interfaces\EnabledInterface $entity )
$entity Elcodi\Component\Core\Entity\Interfaces\EnabledInterface The entity to disable

enableAction() 보호된 메소드

Enable entity
protected enableAction ( Request $request, Elcodi\Component\Core\Entity\Interfaces\EnabledInterface $entity ) : array
$request Symfony\Component\HttpFoundation\Request Request
$entity Elcodi\Component\Core\Entity\Interfaces\EnabledInterface Entity to enable
리턴 array Result

enableEntity() 보호된 메소드

Enables the given entity
protected enableEntity ( Elcodi\Component\Core\Entity\Interfaces\EnabledInterface $entity )
$entity Elcodi\Component\Core\Entity\Interfaces\EnabledInterface The entity to disable

flush() 보호된 메소드

Save an entity. To ensure the method is simple, the entity will be persisted always
protected flush ( mixed $entity )
$entity mixed Entity

flushCache() 보호된 메소드

Flush cache
protected flushCache ( )

getFailResponse() 보호된 메소드

This method takes into account the type of the request ( GET or POST )
protected getFailResponse ( Request $request, Exception $exception ) : mixed
$request Symfony\Component\HttpFoundation\Request Request
$exception Exception Exception
리턴 mixed Response

getOkResponse() 보호된 메소드

This method takes into account the type of the request ( GET or POST )
protected getOkResponse ( Request $request, string $redirectPath = null ) : mixed
$request Symfony\Component\HttpFoundation\Request Request
$redirectPath string Redirect path
리턴 mixed Response

getResponse() 보호된 메소드

This method takes into account the type of the request ( GET or POST )
protected getResponse ( Request $request, Closure $closure, string $redirectPath = null ) : mixed
$request Symfony\Component\HttpFoundation\Request Request
$closure Closure Closure
$redirectPath string Redirect path
리턴 mixed Response

redirectRoute() 보호된 메소드

Return a RedirectResponse given a route name and an array of parameters
protected redirectRoute ( string $route, array $params = [] ) : RedirectResponse
$route string Route
$params array Params
리턴 Symfony\Component\HttpFoundation\RedirectResponse Response

translate() 보호된 메소드

Translate
protected translate ( string $string ) : string
$string string String to be translated
리턴 string String translated