Class URL
Internal references and external URLs based on the associated formatter proxy view.
- Core\Object implements Core\Chainable
- Core\Set implements Core\Accessor
- Core\Formatter\Driver\coreuimarkup\Token
- Core\Formatter\Driver\coreuimarkup\Token\URL
Package: CoreUI\Markup\Token
Since: 3.1
Requires: PHP 5.3
Version: 1.0
Located at Formatter/Driver/coreuimarkup/Token/URL.inc.php
Methods summary
public
|
#
__construct(
Initialises URL token instance and sets up standard schemes. |
public
string[]
|
|
public
|
|
public
string
|
|
public
|
#
registerScheme( string $scheme, callable $callback )
Registers a new handler for a scheme. An existing handler for the given scheme is replaced with the new one. |
public
|
#
registerSchemes( array $schemes )
Registers a set of new scheme handlers. Any already existing handler for a given scheme is replaced with the new one. |
public
|
|
public
|
Methods inherited from Core\Object
__autocreateFactory()
,
__call()
,
__processParameters()
,
__toString()
,
attachMethod()
,
chain()
,
getValueForKey()
,
getValueForKeyPath()
,
getValueForUndefinedKey()
,
hash()
,
issetValueForKey()
,
setValueForKey()
,
setValueForKeyPath()
,
setValueForUndefinedKey()
,
uuid()
Constants summary
Constants inherited from Core\Object
AnyParameterType
,
AutochainParameterType
,
AutocreateParameterType
,
BooleanParameterType
,
CharParameterType
,
EnumParameterType
,
IntegerParameterType
,
RealParameterType
,
StringParameterType
,
UserParameterType
Properties summary
protected
boolean
|
$_v_ignoreUnregisteredSchemes
If set, captured links with unregistered schemes are silently ignored. |
#
false
|
protected
boolean
|
$_v_relativeAppURLs
If set, application URLs are relative, if possible. |
|
protected
array
|
$_v_schemes
Dictionary of registered schemes as keys and their associated callbacks as values. |
#
array ()
|
Properties inherited from Core\Formatter\Driver\coreuimarkup\Token
Magic properties
public read-only
boolean
|
$ignoreUnregisteredSchemes
If set, captured links with unregistered schemes are silently ignored. Otherwise a normal link using the captured scheme is rendered. |
public read-only
boolean
|
$relativeAppURLs
If set to false, application URLs are always absolute, otherwise, if possible, application URLs are relative. |
public read-only
array
|
$schemes
Dictionary of registered schemes as keys and their associated callbacks as values. |