Property | Type | Description | |
---|---|---|---|
$_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. |
Method | Description | |
---|---|---|
__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 ) : |
||
setHreflang ( string $hreflang ) : |
||
setName ( string $name ) : |
||
setRel ( string $rel ) : |
||
setTemplated ( boolean $templated ) : |
||
setTitle ( string $title ) : |
||
toArray ( ) : array |
public setHreflang ( string $hreflang ) : |
||
$hreflang | string | |
return |
public setTemplated ( boolean $templated ) : |
||
$templated | boolean | |
return |
protected string $_href | ||
return | string |
protected string $_hreflang | ||
return | string |
protected string $_name | ||
return | string |
protected string $_rel | ||
return | string |
protected bool $_templated | ||
return | boolean |
protected string $_title | ||
return | string |