\SiteCloseController

NetCommons Controller

Summary

Methods
Properties
Constants
__construct()
beforeFilter()
afterFilter()
beforeRender()
beforeRedirect()
camelizeKeyRecursive()
throwBadRequest()
emptyRender()
emptyFrame()
index()
$layout
$theme
$components
$uses
$helpers
No constants found
_setLanguage()
No protected properties found
N/A
__prepare()
No private properties found
N/A

Properties

$layout

$layout : string

use layout

Type

string

$theme

$theme : string

use theme

Type

string

$components

$components : array

use components

Type

array

$uses

$uses : array

use model

Type

array

$helpers

$helpers : array

use helpers

Type

array

Methods

__construct()

__construct(\CakeRequest  $request = null, \CakeResponse  $response = null) 

Constructor.

Parameters

\CakeRequest $request

Request object for this controller. Can be null for testing, but expect that features that use the request parameters will not work.

\CakeResponse $response

Response object for this controller.

beforeFilter()

beforeFilter() : void

beforeFilter

afterFilter()

afterFilter() : void

Called after the controller action is run and rendered.

beforeRender()

beforeRender() : void

beforeRender

beforeRedirect()

beforeRedirect(string|array  $url, integer  $status = null, boolean  $exit = true) : mixed

The beforeRedirect method is invoked when the controller's redirect method is called but before any further action.

If this method returns false the controller will not continue on to redirect the request. The $url, $status and $exit variables have same meaning as for the controller's method. You can also return a string which will be interpreted as the URL to redirect to or return associative array with key 'url' and optionally 'status' and 'exit'.

Parameters

string|array $url

A string or array-based URL pointing to another location within the app, or an absolute URL

integer $status

Optional HTTP status code (eg: 404)

boolean $exit

If true, exit() will be called after the redirect

Throws

\Exception

Returns

mixed —

false to stop redirection event, string controllers a new redirection URL or array with the keys url, status and exit to be used by the redirect method.

camelizeKeyRecursive()

camelizeKeyRecursive(array  $orig) : array

camelizeKeyRecursive

Parameters

array $orig

data to camelize

Returns

array —

camelized data

throwBadRequest()

throwBadRequest(string|null  $message = null) : void

throw bad request

Parameters

string|null $message

メッセージ

Throws

\BadRequestException

emptyRender()

emptyRender() : void

Empty render

emptyFrame()

emptyFrame() : void

Empty render

index()

index() : void

サイト閉鎖

_setLanguage()

_setLanguage() : void

リクエストもしくはSessionから言語をセットする。

__prepare()

__prepare() : void

事前準備