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 checkUrl($url, LinkProcessorStrategy $strategy)
Check if an url is reachable (e.g.
Definition: LinkProcessor.php:132
NodeValueIterator is used to iterate over all persistent values of a Node (not including relations).
Definition: NodeValueIterator.php:43
StringUtil provides support for string manipulation.
Definition: StringUtil.php:18
static convertInternalLink($url, LinkProcessorStrategy $strategy)
Convert an internal link.
Definition: LinkProcessor.php:171
InternalLink contains static methods for handling internal application links.
Definition: InternalLink.php:22
static translate($pathFromA, $pathFromScriptToA)
Translate a relative URI from one location to the script location.
Definition: URIUtil.php:111
static replaceUrl($value, $url, $urlConv, $type)
Replace the url in the given value.
Definition: LinkProcessor.php:116
static getInstance($name, $dynamicConfiguration=[])
Definition: ObjectFactory.php:47
isValidTarget(PersistentObject $object)
Check if the given object is a valid link target.
LinkProcessor is used to process links in Node instances.
Definition: LinkProcessor.php:29
LogManager is used to retrieve Logger instances.
Definition: LogManager.php:20
ObjectFactory implements the service locator pattern by wrapping a Factory instance and providing sta...
Definition: ObjectFactory.php:24
wCMF - wemove Content Management Framework Copyright (C) 2005-2020 wemove digital solutions GmbH
Definition: InternalLink.php:11
getObjectUrl(PersistentObject $object, $params=null)
Get the url under which the object should be published.
static processLinks($node, $base, LinkProcessorStrategy $strategy, $recursive=true)
Check and convert links in the given node.
Definition: LinkProcessor.php:39
LinkProcessorStrategy defines the interface for strategies used by LinkProcessor.
Definition: LinkProcessorStrategy.php:21
static getAnchorOID($link)
Get the oid of the referenced subobject if any.
Definition: InternalLink.php:78
static getAnchorName($link)
Get the name of the anchor inside the referenced subobject if any.
Definition: InternalLink.php:92