PHP 클래스 Networking\InitCmsBundle\Controller\FrontendPageController

저자: net working AG ([email protected])
상속: extends Symfony\Bundle\FrameworkBundle\Controller\Controller
파일 보기 프로젝트 열기: networking/init-cms-bundle 1 사용 예제들

공개 메소드들

메소드 설명
adminAction ( ) : RedirectResponse Redirect to the admin dashboard
adminNavbarAction ( Request $request, null $page_id = null ) : Response Deliver the admin navigation bar via ajax
changeAdminLanguageAction ( Request $request, $locale ) : RedirectResponse Change the language in the admin area (currently not implemented in the template)
changeLanguageAction ( Request $request, $locale ) : RedirectResponse Change language in the front end area
getActiveEnd ( $page ) : Datetime
getActiveStart ( $page ) : DateTime Get activeFrom
getDraftParameters ( Request $request, Networking\InitCmsBundle\Model\PageInterface $page )
getLiveParameters ( Request $request, Networking\InitCmsBundle\Model\PageSnapshot $pageSnapshot )
getPageHelper ( ) : PageHelper
getPageParameters ( Request $request )
getRedirect ( Request $request, Networking\InitCmsBundle\Model\PageInterface $page ) : boolean | RedirectResponse Check if page is an alias for another page
getSnapshotVisibility ( Networking\InitCmsBundle\Model\PageSnapshotInterface $page ) : mixed
homeAction ( Request $request ) : array Show the home page (start page) for given locale
indexAction ( Request $request ) : Response Render the page
isSnapshotActive ( Networking\InitCmsBundle\Model\PageSnapshotInterface $page ) : boolean
liveAction ( Request $request ) : Response Render the Live version of a page
pageNotFoundAction ( ) : Response
translationNotFoundAction ( Request $request ) : Response
viewDraftAction ( Request $request, string $locale, $path = null ) : RedirectResponse View the website in Draft mode
viewLiveAction ( Request $request, string $locale, $path = null ) : RedirectResponse View the website in Live mode

보호된 메소드들

메소드 설명
changeViewMode ( Request $request, $status, $path ) : RedirectResponse Change the page viewing mode to live or draft
getAdminPool ( ) : boolean | Sonata\AdminBundle\Admin\Pool
getTranslationRoute ( $referrer, $locale ) : array | Symfony\Cmf\Component\Routing\RouteObjectInterface get the route for the translation of a given page, the referrer page

메소드 상세

adminAction() 공개 메소드

Redirect to the admin dashboard
public adminAction ( ) : RedirectResponse
리턴 Symfony\Component\HttpFoundation\RedirectResponse

adminNavbarAction() 공개 메소드

Deliver the admin navigation bar via ajax
public adminNavbarAction ( Request $request, null $page_id = null ) : Response
$request Symfony\Component\HttpFoundation\Request
$page_id null
리턴 Symfony\Component\HttpFoundation\Response

changeAdminLanguageAction() 공개 메소드

Change the language in the admin area (currently not implemented in the template)
public changeAdminLanguageAction ( Request $request, $locale ) : RedirectResponse
$request Symfony\Component\HttpFoundation\Request
$locale
리턴 Symfony\Component\HttpFoundation\RedirectResponse

changeLanguageAction() 공개 메소드

Change language in the front end area
public changeLanguageAction ( Request $request, $locale ) : RedirectResponse
$request Symfony\Component\HttpFoundation\Request
$locale
리턴 Symfony\Component\HttpFoundation\RedirectResponse

changeViewMode() 보호된 메소드

Change the page viewing mode to live or draft
protected changeViewMode ( Request $request, $status, $path ) : RedirectResponse
$request Symfony\Component\HttpFoundation\Request
$status
$path
리턴 Symfony\Component\HttpFoundation\RedirectResponse

getActiveEnd() 공개 메소드

public getActiveEnd ( $page ) : Datetime
리턴 Datetime

getActiveStart() 공개 메소드

Get activeFrom
public getActiveStart ( $page ) : DateTime
리턴 DateTime

getAdminPool() 보호된 메소드

protected getAdminPool ( ) : boolean | Sonata\AdminBundle\Admin\Pool
리턴 boolean | Sonata\AdminBundle\Admin\Pool

getDraftParameters() 공개 메소드

public getDraftParameters ( Request $request, Networking\InitCmsBundle\Model\PageInterface $page )
$request Symfony\Component\HttpFoundation\Request
$page Networking\InitCmsBundle\Model\PageInterface

getLiveParameters() 공개 메소드

public getLiveParameters ( Request $request, Networking\InitCmsBundle\Model\PageSnapshot $pageSnapshot )
$request Symfony\Component\HttpFoundation\Request
$pageSnapshot Networking\InitCmsBundle\Model\PageSnapshot

getPageHelper() 공개 메소드

public getPageHelper ( ) : PageHelper
리턴 Networking\InitCmsBundle\Helper\PageHelper

getPageParameters() 공개 메소드

public getPageParameters ( Request $request )
$request Symfony\Component\HttpFoundation\Request

getRedirect() 공개 메소드

Check if page is an alias for another page
public getRedirect ( Request $request, Networking\InitCmsBundle\Model\PageInterface $page ) : boolean | RedirectResponse
$request Symfony\Component\HttpFoundation\Request
$page Networking\InitCmsBundle\Model\PageInterface
리턴 boolean | Symfony\Component\HttpFoundation\RedirectResponse

getSnapshotVisibility() 공개 메소드

public getSnapshotVisibility ( Networking\InitCmsBundle\Model\PageSnapshotInterface $page ) : mixed
$page Networking\InitCmsBundle\Model\PageSnapshotInterface
리턴 mixed

getTranslationRoute() 보호된 메소드

get the route for the translation of a given page, the referrer page
protected getTranslationRoute ( $referrer, $locale ) : array | Symfony\Cmf\Component\Routing\RouteObjectInterface
$referrer
$locale
리턴 array | Symfony\Cmf\Component\Routing\RouteObjectInterface

homeAction() 공개 메소드

Show the home page (start page) for given locale
public homeAction ( Request $request ) : array
$request Symfony\Component\HttpFoundation\Request
리턴 array

indexAction() 공개 메소드

Render the page
public indexAction ( Request $request ) : Response
$request Symfony\Component\HttpFoundation\Request
리턴 Symfony\Component\HttpFoundation\Response

isSnapshotActive() 공개 메소드

public isSnapshotActive ( Networking\InitCmsBundle\Model\PageSnapshotInterface $page ) : boolean
$page Networking\InitCmsBundle\Model\PageSnapshotInterface
리턴 boolean

liveAction() 공개 메소드

Render the Live version of a page
사용 중단: will be removed in version 3.0
public liveAction ( Request $request ) : Response
$request Symfony\Component\HttpFoundation\Request
리턴 Symfony\Component\HttpFoundation\Response

pageNotFoundAction() 공개 메소드

public pageNotFoundAction ( ) : Response
리턴 Symfony\Component\HttpFoundation\Response

translationNotFoundAction() 공개 메소드

public translationNotFoundAction ( Request $request ) : Response
$request Symfony\Component\HttpFoundation\Request
리턴 Symfony\Component\HttpFoundation\Response

viewDraftAction() 공개 메소드

View the website in Draft mode
public viewDraftAction ( Request $request, string $locale, $path = null ) : RedirectResponse
$request Symfony\Component\HttpFoundation\Request
$locale string
리턴 Symfony\Component\HttpFoundation\RedirectResponse

viewLiveAction() 공개 메소드

View the website in Live mode
public viewLiveAction ( Request $request, string $locale, $path = null ) : RedirectResponse
$request Symfony\Component\HttpFoundation\Request
$locale string
리턴 Symfony\Component\HttpFoundation\RedirectResponse