Свойство | Тип | Описание | |
---|---|---|---|
$_href | string | For indicating the target URI. Corresponds with the ’Target IRI’ as defined in Web Linking (RFC 5988). This attribute MAY contain a URI Template (RFC6570) and in which case, SHOULD be complemented by an additional templated attribute on the link with a boolean value true. | |
$_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 relation | |
$_templated | boolean | This attribute SHOULD be present with a boolean value of true when the href of the link contains a URI Template (RFC6570). | |
$_title | string | For labeling the destination of a link with a human-readable identifier. |
Метод | Описание | |
---|---|---|
__construct ( string $href, boolean $templated = false, string $name = null, string $hreflang = null, string $title = null ) | Public constructor of a FOFHalLink object | |
__get ( string $name ) : mixed | Magic getter for the protected properties | |
__set ( string $name, mixed $value ) : void | Magic setter for the protected properties | |
check ( ) : boolean | Is this a valid link? Checks the existence of required fields, not their values. |
public __construct ( string $href, boolean $templated = false, string $name = null, string $hreflang = null, string $title = null ) | ||
$href | string | See $this->_href |
$templated | boolean | See $this->_templated |
$name | string | See $this->_name |
$hreflang | string | See $this->_hreflang |
$title | string | See $this->_title |
protected string $_href | ||
Результат | string |
protected string $_hreflang | ||
Результат | string |
protected string $_name | ||
Результат | string |
protected bool $_templated | ||
Результат | boolean |
protected string $_title | ||
Результат | string |