LinkProcessor.php
66 if (!InternalLink::isLink($url) && !preg_match('/^#|^{|^$|^[a-zA-Z]+:\/\/|^javascript:|^mailto:/', $url) &&
127 * Check if an url is reachable (e.g. if an internal url is broken due to the target set offline).
133 if (preg_match('/^#|^{|^$|^mailto:/', $url) || (strpos($url, 'javascript:') === 0 && !InternalLink::isLink($url)) ||
static translate($rel_uri, $base)
Translate a relative URI from one location to the script location.
Definition: URIUtil.php:112
static processLinks($node, $base, LinkProcessorStrategy $strategy, $recursive=true)
Check and convert links in the given node.
Definition: LinkProcessor.php:39
static convertInternalLink($url, LinkProcessorStrategy $strategy)
Convert an internal link.
Definition: LinkProcessor.php:172
NodeValueIterator is used to iterate over all persistent values of a Node (not including relations)...
Definition: NodeValueIterator.php:43
static checkUrl($url, LinkProcessorStrategy $strategy)
Check if an url is reachable (e.g.
Definition: LinkProcessor.php:132
static getAnchorOID($link)
Get the oid of the referenced subobject if any.
Definition: InternalLink.php:78
isValidTarget(PersistentObject $object)
Check if the given object is a valid link target.
static getInstance($name, $dynamicConfiguration=array())
Definition: ObjectFactory.php:39
LinkProcessor is used to process links in Node instances.
Definition: LinkProcessor.php:29
getObjectUrl(PersistentObject $object, $params=null)
Get the url under which the object should be published.
LinkProcessorStrategy defines the interface for strategies used by LinkProcessor. ...
Definition: LinkProcessorStrategy.php:21
wCMF - wemove Content Management Framework Copyright (C) 2005-2015 wemove digital solutions GmbH ...
Definition: InternalLink.php:11
static replaceUrl($value, $url, $urlConv, $type)
Replace the url in the given value.
Definition: LinkProcessor.php:116