API Joomla 1.5.26
Documentation des API du CMS Joomla en version 1.5
|
JURI::__construct | ( | $ | uri = null | ) |
Constructor. You can pass a URI string to the constructor to initialize a specific URI.
string | $uri | The optional URI string |
Références $uri.
JURI::_cleanPath | ( | $ | path | ) |
Resolves //, ../ and ./ from a path and returns the result. Eg:
/foo/bar/../boo.php => /foo/boo.php /foo/bar/../../boo.php => /boo.php /foo/bar/.././/boo.php => /foo/boo.php
private
string | $uri | The URI path to clean |
JURI::_parseURL | ( | $ | uri | ) |
JURI::base | ( | $ | pathonly = false | ) | [static] |
Returns the base URI for the request.
public
boolean | $pathonly | If false, prepend the scheme, host and port information. Default is false. |
Références $config, $uri, JFactory::getConfig(), et getInstance().
Référencé par JView::__construct(), JXMLRPC::__construct(), JInstallation::__construct(), JAdministrator::__construct(), JButtonPopup::_getCommand(), JMenuTree::_getItemData(), plgSystemBacklink::_legacysef(), JDocumentHTML::_loadTemplate(), JDocumentRendererRSS::_relToAbs(), JDocumentRendererAtom::_relToAbs(), UserModelReset::_sendConfirmationMail(), UserController::_sendMail(), JHTMLImage::administrator(), JA_Tools::baseurl(), JRouterSite::build(), ContentController::cancel(), JInstallationModel::ftpConfig(), JApplication::getBasePath(), modRandomImageHelper::getFolder(), modBreadCrumbsHelper::getList(), plgXMLRPCBloggerServices::getUserBlogs(), HTML_admin_misc::help(), isInternal(), JSite::login(), JAdministrator::login(), JInstallationModel::mainConfig(), mosShowVIMenu(), plgSystemSef::onAfterRender(), plgAuthenticationOpenID::onAuthenticate(), JRouterSite::parse(), TemplatesView::previewTemplate(), JApplication::redirect(), JDocumentHTML::render(), JDocumentError::render(), modBannersHelper::renderBanner(), root(), WeblinksControllerWeblink::save(), UserController::save(), ContentController::save(), TableMessage::send(), JHTMLImage::site(), ContactController::submit(), JA_Tools::templateurl(), et ContactController::vcard().
JURI::buildQuery | ( | $ | params, |
$ | akey = null |
||
) |
Build a query from a array (reverse of the PHP parse_str())
public
Références $params.
JURI::current | ( | ) |
Returns the URL for the request, minus the query
public
Références $uri, et getInstance().
Référencé par JSite::dispatch().
JURI::delVar | ( | $ | name | ) |
Removes an item from the query string variables if it exists
public
string | $name | Name of variable to remove |
Références $name.
JURI::getFragment | ( | ) |
Get the URI archor string everything after the "#"
public
JURI::getHost | ( | ) |
Get URI host returns the hostname/ip, or null if no hostname/ip was specified
public
& JURI::getInstance | ( | $ | uri = 'SERVER' | ) | [static] |
Returns a reference to a global JURI object, only creating it if it doesn't already exist.
This method must be invoked as:
$uri =& JURI::getInstance([$uri]);
string | $uri | The URI to parse. [optional: if null uses script URI] |
Référencé par JRoute::_(), base(), current(), JHTMLIcon::email(), JFactory::getURI(), isInternal(), plgAuthenticationOpenID::onAuthenticate(), JApplication::redirect(), root(), JApplication::route(), JAdministrator::route(), SearchController::search(), et sefRelToAbs().
JURI::getPass | ( | ) |
Get URI password returns the password, or null if no password was specified
public
JURI::getPath | ( | ) |
Gets the URI path string
public
JURI::getPort | ( | ) |
Get URI port returns the port number, or null if no port was specified
public
JURI::getQuery | ( | $ | toArray = false | ) |
Returns flat query string
public
JURI::getScheme | ( | ) |
Get URI scheme (protocol) ie. http, https, ftp, etc...
public
JURI::getUser | ( | ) |
Get URI username returns the username, or null if no username was specified
public
JURI::getVar | ( | $ | name = null , |
$ | default = null |
||
) |
Returns a query variable by name
public
string | $name | Name of the query variable to get |
Références $name.
JURI::isInternal | ( | $ | url | ) |
Checks if the supplied URL is internal
public
string | $url | The URL to check |
Références $host, $uri, $url, base(), et getInstance().
Référencé par ContentController::cancel(), UserController::login(), UserController::logout(), UserController::save(), ContentController::save(), MailtoController::send(), et ContentController::vote().
JURI::isSSL | ( | ) |
Checks whether the current URI is using HTTPS
public
JURI::parse | ( | $ | uri | ) |
Parse a given URI and populate the class fields
public
string | $uri | The URI string to parse |
Références $uri.
JURI::root | ( | $ | pathonly = false , |
$ | path = null |
||
) | [static] |
Returns the root URI for the request.
public
boolean | $pathonly | If false, prepend the scheme, host and port information. Default is false. |
Références $path, $uri, base(), et getInstance().
Référencé par JXMLRPC::__construct(), JInstallation::__construct(), JAdministrator::__construct(), plgEditorXstandard::_getTemplateCss(), JPaneTabs::_loadBehavior(), JSite::dispatch(), JAdministrator::dispatch(), MediaViewMediaList::display(), sections_html::edit(), JInstallationModel::finish(), JAdministrator::getSiteURL(), JHTML::image(), plgEditorXstandard::onDisplay(), plgEditorTinymce::onInit(), ContentController::previewContent(), ContentView::previewContent(), UsersController::save(), JInstallationModel::saveConfig(), JHTML::script(), plgXMLRPCJoomlaServices::searchSite(), TemplatesView::showTemplates(), JHTML::stylesheet(), JHTML::tooltip(), JHTMLBehavior::tree(), et JHTMLBehavior::uploader().
JURI::setFragment | ( | $ | anchor | ) |
Set the URI anchor string everything after the "#"
public
string | $anchor | The URI anchor string |
JURI::setHost | ( | $ | host | ) |
JURI::setPass | ( | $ | pass | ) |
Set URI password
public
string | $pass | The URI password |
JURI::setPath | ( | $ | path | ) |
Set the URI path string
public
string | $path | The URI path string |
Références $path.
JURI::setPort | ( | $ | port | ) |
Set URI port
public
int | $port | The URI port number |
JURI::setQuery | ( | $ | query | ) |
Sets the query to a supplied string in format: foo=bar&x=y
public
mixed | (array|string) $query The query string |
Références $query.
JURI::setScheme | ( | $ | scheme | ) |
Set URI scheme (protocol) ie. http, https, ftp, etc...
public
string | $scheme | The URI scheme |
JURI::setUser | ( | $ | user | ) |
JURI::setVar | ( | $ | name, |
$ | value | ||
) |
Adds a query variable and value, replacing the value if it already exists and returning the old value.
public
string | $name | Name of the query variable to set |
string | $value | Value of the query variable |
Références $name.
JURI::toString | ( | $ | parts = array('scheme', 'user', 'pass', 'host', 'port', 'path', 'query', 'fragment') | ) |
JURI::$_fragment = null |
JURI::$_host = null |
JURI::$_pass = null |
JURI::$_path = null |
JURI::$_port = null |
JURI::$_query = null |
JURI::$_scheme = null |
JURI::$_uri = null |
JURI::$_user = null |
JURI::$_vars = array () |