|
wCMF
3.6
|
Public Member Functions | |
| makeLink ($oid) | |
| makeAnchorLink ($oid, $anchorOID, $anchorName=null) | |
| isLink ($link) | |
| getReferencedOID ($link) | |
| getAnchorOID ($link) | |
| getAnchorName ($link) | |
InternalLink contains static methods for handling internal application links. These links are useful in an scenario, where an object represents a page and several subobjects represent page elements.
wCMF - wemove Content Management Framework Copyright (C) 2005-2014 wemove digital solutions GmbH
Licensed under the terms of any of the following licenses at your choice:
See the license.txt file distributed with this work for additional information.
Definition at line 30 of file class.InternalLink.php.
| InternalLink::makeLink | ( | $oid | ) |
Make an internal link to an object
| oid | The id of the object to link to |
Definition at line 37 of file class.InternalLink.php.
Referenced by ResourceTreeController\getClickAction().
| InternalLink::makeAnchorLink | ( | $oid, | |
| $anchorOID, | |||
$anchorName = null |
|||
| ) |
Make an internal link to an object
| oid | The object id of the object to link to |
| anchorOID | The object id of the subobject to link to |
| anchorName | The name inside the subobject to link to (null, if the object itself should be linked), [default: null] |
Definition at line 48 of file class.InternalLink.php.
| InternalLink::isLink | ( | $link | ) |
Test if a link is an internal link
| link | The link to test |
Definition at line 61 of file class.InternalLink.php.
Referenced by DefaultControlRenderer\configure_linkbrowser(), and smarty_function_linktext().
| InternalLink::getReferencedOID | ( | $link | ) |
Get the oid of the referenced object
| link | The link to process |
Definition at line 70 of file class.InternalLink.php.
References PersistenceFacade\isValidOID().
Referenced by smarty_function_linktext().
Here is the call graph for this function:| InternalLink::getAnchorOID | ( | $link | ) |
Get the oid of the referenced subobject if any
| link | The link to process |
Definition at line 86 of file class.InternalLink.php.
References PersistenceFacade\isValidOID().
Here is the call graph for this function:| InternalLink::getAnchorName | ( | $link | ) |
Get the name of the anchor inside the referenced subobject if any
| link | The link to process |
Definition at line 102 of file class.InternalLink.php.