\NetCommonsUrl

NetCommons Utility

Summary

Methods
Properties
Constants
backToPageUrl()
backToIndexUrl()
actionUrl()
actionUrlAsArray()
userActionUrl()
url()
blockUrl()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
__getCommonAction()
No private properties found
N/A

Methods

backToPageUrl()

backToPageUrl(boolean  $settingMode = false, array  $options = array(), boolean|array  $full = false) : string

ページに戻るURLを生成

Parameters

boolean $settingMode

セッティングモード

array $options

URLオプション

boolean|array $full

If (bool) true, the full base URL will be prepended to the result.

Returns

string —

Full translated URL with base path.

backToIndexUrl()

backToIndexUrl(string  $defaultField = 'default_action', boolean|array  $full = false) : string

デフォルトのアクションに戻るURLを生成

Parameters

string $defaultField

Plugin table's default action field. The value is "default_action" or "default_setting_action"

boolean|array $full

If (bool) true, the full base URL will be prepended to the result.

Returns

string —

Full translated URL with base path.

actionUrl()

actionUrl(array  $params = array(), boolean|array  $full = false) : string

NetCommonsプラグインのアクションURLを生成

Parameters

array $params

Action url array

boolean|array $full

If (bool) true, the full base URL will be prepended to the result.

Returns

string —

Full translated URL with base path.

actionUrlAsArray()

actionUrlAsArray(array  $params = array(), boolean|array  $full = false) : array

NetCommonsプラグインのアクションURL配列を生成

Parameters

array $params

Action url array

boolean|array $full

If (bool) true, the full base URL will be prepended to the result.

Returns

array —

Full translated URL with base path as array.

userActionUrl()

userActionUrl(array  $params = array(), boolean|array  $full = false) : string

ユーザのアクションURLを生成

Parameters

array $params

Action url array

boolean|array $full

If (bool) true, the full base URL will be prepended to the result.

Returns

string —

Full translated URL with base path.

url()

url(array  $params = array(), boolean|array  $full = false) : string

URLを生成

Parameters

array $params

Action url array

boolean|array $full

If (bool) true, the full base URL will be prepended to the result.

Returns

string —

Full translated URL with base path.

blockUrl()

blockUrl(array  $url = array(), boolean  $isArray = true) : array|string

BlockのURLを生成

Parameters

array $url

An array specifying any of the following: 'controller', 'action', and/or 'plugin', in addition to named arguments (keyed array elements), and standard URL arguments (indexed array elements). 'autoSetting': Current::SETTING_MODE_WORDを付ける処理を自動で行う。デフォルトfalse

boolean $isArray

配列で戻すかどうか

Returns

array|string —

block url

__getCommonAction()

__getCommonAction(array  $params) : array

NetCommonsプラグインのアクションURL配列を生成

Parameters

array $params

Action url array

Returns

array