PHP Класс Networking\InitCmsBundle\Controller\FrontendPageController

Автор: net working AG ([email protected])
Наследование: extends Symfony\Bundle\FrameworkBundle\Controller\Controller
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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