PHP Class Tools\Controller\Component\UrlComponent

Author: Mark Scherer
Inheritance: extends Shim\Controller\Component\Component
Afficher le fichier Open project: dereuromark/cakephp-tools

Méthodes publiques

Méthode Description
build ( string | array | null $url = null, array $options = [] ) : string Returns a URL based on provided parameters.
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

build() public méthode

### Options: - fullBase: If true, the full base URL will be prepended to the result
public build ( string | array | null $url = null, array $options = [] ) : string
$url string | array | null Either a relative string url like `/products/view/23` or an array of URL parameters. Using an array for URLs will allow you to leverage the reverse routing features of CakePHP.
$options array Array of options
Résultat string Full translated URL with base path.

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