PHP 클래스 Tools\Controller\Component\UrlComponent

저자: Mark Scherer
상속: extends Shim\Controller\Component\Component
파일 보기 프로젝트 열기: dereuromark/cakephp-tools

공개 메소드들

메소드 설명
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

보호된 메소드들

메소드 설명
addQueryStrings ( array $url ) : array

메소드 상세

addQueryStrings() 보호된 메소드

protected addQueryStrings ( array $url ) : array
$url array
리턴 array

build() 공개 메소드

### 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
리턴 string Full translated URL with base path.

buildComplete() 공개 메소드

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
리턴 string Full translated URL with base path.

buildReset() 공개 메소드

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
리턴 string Full translated URL with base path.

completeArray() 공개 메소드

public completeArray ( array $url ) : array
$url array
리턴 array

defaults() 공개 메소드

public defaults ( ) : array
리턴 array

resetArray() 공개 메소드

public resetArray ( array $url ) : array
$url array
리턴 array