wCMF
3.6
|
Public Member Functions | |
makeRelative ($abs_uri, $base) | |
makeAbsolute ($rel_uri, $base, $REMOVE_LEADING_DOTS=true) | |
translate ($rel_uri, $base) | |
validateUrl ($url, $timeout=10) | |
getProtocolStr () | |
getPageURL () | |
URIUtil provides support for uri manipulation.
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 27 of file class.URIUtil.php.
URIUtil::makeRelative | ( | $abs_uri, | |
$base | |||
) |
Convert an absolute URI to a relative code from http://www.webmasterworld.com/forum88/334.htm
abs_uri | Absolute URI to convert |
base | Base URI |
Definition at line 35 of file class.URIUtil.php.
Referenced by SaveController\executeKernel(), and translate().
URIUtil::makeAbsolute | ( | $rel_uri, | |
$base, | |||
$REMOVE_LEADING_DOTS = true |
|||
) |
Convert a relative URI to an absolute code from http://www.webmasterworld.com/forum88/334.htm
rel_uri | Relative URI to convert |
base | Base URI |
REMOVE_LEADING_DOTS | True/False wether to remove leading dots or not [default: true] |
Definition at line 68 of file class.URIUtil.php.
Referenced by ResourceListController\executeKernel(), LinkConverter\getBaseUrl(), PageExportController\initializeView(), and translate().
URIUtil::translate | ( | $rel_uri, | |
$base | |||
) |
Translate a relative URI from one location to the script location. For example if a file path is stored relative to location A and should be translated to the script URI (location B), use URIUtil::translate($filepathAsSeenFromA, $pathFromBtoA)
rel_uri | Relative URI to translate as seen from base |
base | Base URI |
Definition at line 141 of file class.URIUtil.php.
References makeAbsolute(), and makeRelative().
Referenced by smarty_function_image(), and smarty_function_translate_url().
URIUtil::validateUrl | ( | $url, | |
$timeout = 10 |
|||
) |
Check if an url is available (HTTP-Code: 200) code from http://de.php.net/fsockopen
url | The url to check |
timeout | The timeout in seconds (default: 10) |
Definition at line 157 of file class.URIUtil.php.
References Log\debug(), and Log\isDebugEnabled().
URIUtil::getProtocolStr | ( | ) |
Definition at line 210 of file class.URIUtil.php.
Referenced by ResourceListController\executeKernel(), and getPageURL().
URIUtil::getPageURL | ( | ) |
Get the current page url
Definition at line 221 of file class.URIUtil.php.
References getProtocolStr().