FOFHalDocument::addLink
Add a link to the document
Signature
public function addLink(string
$rel,
[FOFHalLink
$link = true,
[boolean
$overwrite = true]] )
Parameters
-
$rel
- The relation of the link to the document.
-
$link
- The actual link object
-
$overwrite
- When false and a link of $rel relation exists, an array of links is created. Otherwise the
Returns
- boolean
- True if the link was added to the collection