PHP 클래스 Hal\Link

상속: extends AbstractHal
파일 보기 프로젝트 열기: zircote/hal 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$_href string Applications which use HAL MAY clarify the integrity of specific embedded content via the description of the relevant @rel value. - As a link: This attribute MAY contain a URI template. Whether or not this is the case SHOULD be indicated to clients by the @rel value.
$_hreflang string For indicating what the language of the result of dereferencing the link should be.
$_name string For distinguishing between Resource and Link elements that share the same @rel value. The @name attribute SHOULD NOT be used exclusively for identifying elements within a HAL representation, it is intended only as a 'secondary key' to a given @rel value.
$_rel string The Subject Resource is the closest parent Resource element.
$_templated boolean Whether this link is "templated"
$_title string For labeling the destination of a link with a human-readable identifier.

공개 메소드들

메소드 설명
__construct ( string $href, string $rel = 'self', string $title = null, string $name = null, string $hreflang = null, boolean $templated = false )
getHref ( ) : string
getHreflang ( ) : string
getName ( ) : string
getRel ( ) : string
getTemplated ( ) : boolean
getTitle ( ) : string
setHref ( string $href ) : Link
setHreflang ( string $hreflang ) : Link
setName ( string $name ) : Link
setRel ( string $rel ) : Link
setTemplated ( boolean $templated ) : Link
setTitle ( string $title ) : Link
toArray ( ) : array

메소드 상세

__construct() 공개 메소드

public __construct ( string $href, string $rel = 'self', string $title = null, string $name = null, string $hreflang = null, boolean $templated = false )
$href string
$rel string
$title string
$name string
$hreflang string
$templated boolean

getHref() 공개 메소드

public getHref ( ) : string
리턴 string

getHreflang() 공개 메소드

public getHreflang ( ) : string
리턴 string

getName() 공개 메소드

public getName ( ) : string
리턴 string

getRel() 공개 메소드

public getRel ( ) : string
리턴 string

getTemplated() 공개 메소드

public getTemplated ( ) : boolean
리턴 boolean

getTitle() 공개 메소드

public getTitle ( ) : string
리턴 string

setHref() 공개 메소드

public setHref ( string $href ) : Link
$href string
리턴 Link

setHreflang() 공개 메소드

public setHreflang ( string $hreflang ) : Link
$hreflang string
리턴 Link

setName() 공개 메소드

public setName ( string $name ) : Link
$name string
리턴 Link

setRel() 공개 메소드

public setRel ( string $rel ) : Link
$rel string
리턴 Link

setTemplated() 공개 메소드

public setTemplated ( boolean $templated ) : Link
$templated boolean
리턴 Link

setTitle() 공개 메소드

public setTitle ( string $title ) : Link
$title string
리턴 Link

toArray() 공개 메소드

public toArray ( ) : array
리턴 array

프로퍼티 상세

$_href 보호되어 있는 프로퍼티

Applications which use HAL MAY clarify the integrity of specific embedded content via the description of the relevant @rel value. - As a link: This attribute MAY contain a URI template. Whether or not this is the case SHOULD be indicated to clients by the @rel value.
protected string $_href
리턴 string

$_hreflang 보호되어 있는 프로퍼티

For indicating what the language of the result of dereferencing the link should be.
protected string $_hreflang
리턴 string

$_name 보호되어 있는 프로퍼티

For distinguishing between Resource and Link elements that share the same @rel value. The @name attribute SHOULD NOT be used exclusively for identifying elements within a HAL representation, it is intended only as a 'secondary key' to a given @rel value.
protected string $_name
리턴 string

$_rel 보호되어 있는 프로퍼티

The Subject Resource is the closest parent Resource element.
protected string $_rel
리턴 string

$_templated 보호되어 있는 프로퍼티

Whether this link is "templated"
protected bool $_templated
리턴 boolean

$_title 보호되어 있는 프로퍼티

For labeling the destination of a link with a human-readable identifier.
protected string $_title
리턴 string