PHP Class Tools\View\Helper\UrlHelper

Inheritance: extends Cake\View\Helper\UrlHelper
显示文件 Open project: dereuromark/cakephp-tools Class Usage Examples

Public Methods

Method Description
buildComplete ( string | array | null $url = null, boolean $full = false ) : string Returns a URL based on provided parameters.
buildReset ( string | array | null $url = null, boolean $full = false ) : string Creates a reset URL.
completeArray ( array $url ) : array
defaults ( ) : array
resetArray ( array $url ) : array

Protected Methods

Method Description
addQueryStrings ( array $url ) : array

Method Details

addQueryStrings() protected method

protected addQueryStrings ( array $url ) : array
$url array
return array

buildComplete() public method

Can only add query strings for array URLs.
public buildComplete ( string | array | null $url = null, boolean $full = false ) : string
$url string | array | null URL.
$full boolean If true, the full base URL will be prepended to the result
return string Full translated URL with base path.

buildReset() public method

The prefix and plugin params are resetting to default false. Can only add defaults for array URLs.
public buildReset ( string | array | null $url = null, boolean $full = false ) : string
$url string | array | null URL.
$full boolean If true, the full base URL will be prepended to the result
return string Full translated URL with base path.

completeArray() public method

public completeArray ( array $url ) : array
$url array
return array

defaults() public method

public defaults ( ) : array
return array

resetArray() public method

public resetArray ( array $url ) : array
$url array
return array