PHP Class Tools\View\Helper\UrlHelper

Inheritance: extends Cake\View\Helper\UrlHelper
Afficher le fichier Open project: dereuromark/cakephp-tools Class Usage Examples

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
addQueryStrings ( array $url ) : array

Method Details

addQueryStrings() protected méthode

protected addQueryStrings ( array $url ) : array
$url array
Résultat array

buildComplete() public méthode

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
Résultat string Full translated URL with base path.

buildReset() public méthode

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
Résultat string Full translated URL with base path.

completeArray() public méthode

public completeArray ( array $url ) : array
$url array
Résultat array

defaults() public méthode

public defaults ( ) : array
Résultat array

resetArray() public méthode

public resetArray ( array $url ) : array
$url array
Résultat array