\FOFHalLink
Implementation of the Hypertext Application Language link in PHP.
Synopsis
class FOFHalLink
{
- // members
- protected $_href;
- protected $_templated;
- protected $_name;
- protected $_hreflang;
- protected $_title;
- // methods
- public void __construct()
- public boolean check()
- public mixed __get()
- public void __set()
Members
protected
- $_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 attribtue 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.
Methods
public
- __construct() — Public constructor of a FOFHalLink object
- __get() — Magic getter for the protected properties
- __set() — Magic setter for the protected properties
- check() — Is this a valid link? Checks the existence of required fields, not their values.