PHP Class Ouzo\Controller

Datei anzeigen Open project: letsdrink/ouzo Class Usage Examples

Public Properties

Property Type Description
$after
$before
$currentAction
$currentController
$layout Layout
$params
$view View

Public Methods

Method Description
__call ( $name, $args )
createInstance ( RouteRule $routeRule )
display ( )
downloadFile ( $label, $mime, $path, $type = 'file' )
getFileData ( )
getHeaders ( )
getNewCookies ( )
getRedirectLocation ( )
getRequestHeaders ( )
getRouteRule ( )
getStatusResponse ( )
getTab ( )
header ( $header )
initialize ( RouteRule $routeRule )
isAjax ( )
notice ( $messages, $keep = false, $url = null )
redirect ( $url, $messages = [] )
renderAjaxView ( $viewName = null )
setCookie ( $params )
setRedirectLocation ( $redirectLocation )
setStatusResponse ( $statusResponse )

Private Methods

Method Description
_removeMessages ( )
createParameters ( RouteRule $routeRule, Uri $uri )
getViewName ( )
saveMessagesWithEmptyCheck ( $messages )
wrapAsNotices ( $messages, $url )

Method Details

__call() public method

public __call ( $name, $args )

createInstance() public static method

public static createInstance ( RouteRule $routeRule )
$routeRule Ouzo\Routing\RouteRule

display() public method

public display ( )

downloadFile() public method

public downloadFile ( $label, $mime, $path, $type = 'file' )

getFileData() public method

public getFileData ( )

getHeaders() public method

public getHeaders ( )

getNewCookies() public method

public getNewCookies ( )

getRedirectLocation() public method

public getRedirectLocation ( )

getRequestHeaders() public method

public getRequestHeaders ( )

getRouteRule() public method

public getRouteRule ( )

getStatusResponse() public method

public getStatusResponse ( )

getTab() public method

public getTab ( )

header() public method

public header ( $header )

initialize() public method

public initialize ( RouteRule $routeRule )
$routeRule Ouzo\Routing\RouteRule

isAjax() public method

public isAjax ( )

notice() public method

public notice ( $messages, $keep = false, $url = null )

redirect() public method

public redirect ( $url, $messages = [] )

renderAjaxView() public method

public renderAjaxView ( $viewName = null )

setCookie() public method

public setCookie ( $params )

setRedirectLocation() public method

public setRedirectLocation ( $redirectLocation )

setStatusResponse() public method

public setStatusResponse ( $statusResponse )

Property Details

$after public_oe property

public $after

$before public_oe property

public $before

$currentAction public_oe property

public $currentAction

$currentController public_oe property

public $currentController

$layout public_oe property

public Layout,ouzo $layout
return Layout

$params public_oe property

public $params

$view public_oe property

public View,ouzo $view
return View