PHP Класс ZfcRbac\Options\RedirectStrategyOptions

Автор: Michaël Gallego ([email protected])
Наследование: extends Zend\Stdlib\AbstractOptions
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$appendPreviousUri boolean Should the previous URI should be appended as a query param?
$previousUriQueryKey string If appendPreviousUri is enabled, key to use in query params that hold the previous URI
$redirectToRouteConnected string The name of the route to redirect when a user is connected and not authorized
$redirectToRouteDisconnected string The name of the route to redirect when a user is disconnected and not authorized
$redirectWhenConnected boolean Should the user be redirected when connected and not authorized

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

Метод Описание
getAppendPreviousUri ( ) : boolean
getPreviousUriQueryKey ( ) : string
getRedirectToRouteConnected ( ) : string
getRedirectToRouteDisconnected ( ) : string
getRedirectWhenConnected ( ) : boolean
setAppendPreviousUri ( boolean $appendPreviousUri )
setPreviousUriQueryKey ( string $previousUriQueryKey )
setRedirectToRouteConnected ( string $redirectToRouteConnected ) : void
setRedirectToRouteDisconnected ( string $redirectToRouteDisconnected ) : void
setRedirectWhenConnected ( boolean $redirectWhenConnected ) : void

Описание методов

getAppendPreviousUri() публичный Метод

public getAppendPreviousUri ( ) : boolean
Результат boolean

getPreviousUriQueryKey() публичный Метод

public getPreviousUriQueryKey ( ) : string
Результат string

getRedirectToRouteConnected() публичный Метод

public getRedirectToRouteConnected ( ) : string
Результат string

getRedirectToRouteDisconnected() публичный Метод

public getRedirectToRouteDisconnected ( ) : string
Результат string

getRedirectWhenConnected() публичный Метод

public getRedirectWhenConnected ( ) : boolean
Результат boolean

setAppendPreviousUri() публичный Метод

public setAppendPreviousUri ( boolean $appendPreviousUri )
$appendPreviousUri boolean

setPreviousUriQueryKey() публичный Метод

public setPreviousUriQueryKey ( string $previousUriQueryKey )
$previousUriQueryKey string

setRedirectToRouteConnected() публичный Метод

public setRedirectToRouteConnected ( string $redirectToRouteConnected ) : void
$redirectToRouteConnected string
Результат void

setRedirectToRouteDisconnected() публичный Метод

public setRedirectToRouteDisconnected ( string $redirectToRouteDisconnected ) : void
$redirectToRouteDisconnected string
Результат void

setRedirectWhenConnected() публичный Метод

public setRedirectWhenConnected ( boolean $redirectWhenConnected ) : void
$redirectWhenConnected boolean
Результат void

Описание свойств

$appendPreviousUri защищенное свойство

Should the previous URI should be appended as a query param?
protected bool $appendPreviousUri
Результат boolean

$previousUriQueryKey защищенное свойство

If appendPreviousUri is enabled, key to use in query params that hold the previous URI
protected string $previousUriQueryKey
Результат string

$redirectToRouteConnected защищенное свойство

The name of the route to redirect when a user is connected and not authorized
protected string $redirectToRouteConnected
Результат string

$redirectToRouteDisconnected защищенное свойство

The name of the route to redirect when a user is disconnected and not authorized
protected string $redirectToRouteDisconnected
Результат string

$redirectWhenConnected защищенное свойство

Should the user be redirected when connected and not authorized
protected bool $redirectWhenConnected
Результат boolean