API Joomla 1.5.26
Documentation des API du CMS Joomla en version 1.5
|
JRequest::_cleanArray | ( | &$ | array, |
$ | globalise = false |
||
) |
Adds an array to the GLOBALS array and checks that the GLOBALS variable is not being attacked
protected
array | $array | Array to clean |
boolean | True if the array is to be added to the GLOBALS |
Références $GLOBALS, et jexit().
Référencé par clean().
JRequest::_cleanVar | ( | $ | var, |
$ | mask = 0 , |
||
$ | type = null |
||
) |
Clean up an input variable.
mixed | The input variable. |
int | Filter bit mask. 1=no trim: If this flag is cleared and the input is a string, the string will have leading and trailing whitespace trimmed. 2=allow_raw: If set, no more filtering is performed, higher bits are ignored. 4=allow_html: HTML is allowed, but passed through a safe HTML filter first. If set, no more filtering is performed. If no bits other than the 1 bit is set, a strict filter is applied. |
string | The variable type { |
Références $type, elseif, et JFilterInput::getInstance().
Référencé par get(), et getVar().
JRequest::_stripSlashesRecursive | ( | $ | value | ) |
JRequest::checkToken | ( | $ | method = 'post' | ) |
Checks for a form token in the request
Use in conjuction with JHTML::_( 'form.token' )
string | The request method in which to look for the token key |
Références $mainframe, $return, $session, JText::_(), JRoute::_(), JFactory::getSession(), JUtility::getToken(), et getVar().
Référencé par PluginsController::access(), ContentController::accessMenu(), accessMenu(), MenusController::accesspublic(), MenusController::accessregistered(), MenusController::accessspecial(), UsersController::block(), WeblinksController::cancel(), PollController::cancel(), PluginsController::cancel(), BannerControllerClient::cancel(), BannerControllerBanner::cancel(), cancelCategory(), cancelContact(), ContentController::cancelContent(), MenusController::cancelItem(), cancelNewsFeed(), cancelSection(), changeAccess(), changeContact(), changeFrontPage(), changePublishNewsFeeds(), UserController::completereset(), UserController::confirmreset(), BannerControllerBanner::copy(), copyCategorySave(), copyCategorySelect(), ContentController::copyItem(), ContentController::copyItemSave(), copySectionSave(), copySectionSelect(), MediaControllerFolder::create(), MediaControllerFolder::delete(), MediaControllerFile::delete(), CacheController::deleteCache(), deleteTrash(), InstallerController::disable(), MenusController::doCopy(), MenusController::doCopyMenu(), MenusController::doDeleteMenu(), InstallerController::doInstall(), MenusController::doMove(), InstallerController::enable(), UserController::login(), LoginController::login(), UsersController::logout(), moveCategorySave(), moveCategorySelect(), ContentController::moveSection(), ContentController::moveSectionSave(), PluginsController::order(), orderCategory(), orderContacts(), ContentController::orderContent(), WeblinksController::orderdown(), MenusController::orderdown(), orderFrontPage(), orderNewsFeed(), orderSection(), WeblinksController::orderup(), MenusController::orderup(), WeblinksController::publish(), PollController::publish(), PluginsController::publish(), MenusController::publish(), BannerControllerBanner::publish(), publishCategories(), publishSections(), TemplatesController::publishTemplate(), CacheController::purgeCache(), UserController::register_save(), UserController::remindusername(), WeblinksController::remove(), UsersController::remove(), PollController::remove(), MenusController::remove(), InstallerController::remove(), BannerControllerClient::remove(), BannerControllerBanner::remove(), removeCategories(), removeContacts(), ContentController::removeContent(), removeFrontPage(), removeMessage(), removeNewsFeeds(), removeSections(), UserController::requestreset(), restoreTrash(), WeblinksControllerWeblink::save(), UserController::save(), ContentController::save(), WeblinksController::save(), UsersController::save(), PollController::save(), PluginsController::save(), MenusController::save(), ConfigControllerComponent::save(), BannerControllerClient::save(), BannerControllerBanner::save(), ConfigControllerApplication::save(), saveCategory(), saveConfig(), saveContact(), MenusController::saveMenu(), saveMessage(), saveNewsFeed(), WeblinksController::saveorder(), PluginsController::saveorder(), MenusController::saveorder(), ContentController::saveOrder(), BannerControllerBanner::saveOrder(), saveOrder(), saveSection(), TemplatesController::saveTemplate(), TemplatesController::saveTemplateCSS(), TemplatesController::saveTemplateSource(), MailtoController::send(), sendMail(), MenusController::setdefault(), ContactController::submit(), ContentController::toggleFrontPage(), WeblinksController::unpublish(), MenusController::unpublish(), MediaControllerFile::upload(), et PollController::vote().
JRequest::clean | ( | ) | [static] |
Cleans the request from script injection.
Références $_REQUEST, $GLOBALS, et _cleanArray().
JRequest::get | ( | $ | hash = 'default' , |
$ | mask = 0 |
||
) | [static] |
Fetches and returns a request array.
The default behaviour is fetching variables depending on the current request method: GET and HEAD will result in returning $_GET, POST and PUT will result in returning $_POST.
You can force the source by setting the $hash parameter:
post $_POST get $_GET files $_FILES cookie $_COOKIE env $_ENV server $_SERVER method via current $_SERVER['REQUEST_METHOD'] default $_REQUEST
string | $hash | to get (POST, GET, FILES, METHOD) |
int | $mask | Filter mask for the variable |
Références $_REQUEST, _cleanVar(), et _stripSlashesRecursive().
Référencé par ContentController::cancel(), PluginsController::cancel(), BannerControllerBanner::cancel(), cancelCategory(), cancelContact(), ContentController::cancelContent(), cancelNewsFeed(), cancelSection(), SearchViewSearch::display(), UsersViewUser::display(), JInstallationModel::getVars(), UserController::register_save(), UserController::save(), ContentController::save(), WeblinksController::save(), UsersController::save(), PollController::save(), PluginsController::save(), MenusController::save(), ConfigControllerComponent::save(), BannerControllerClient::save(), BannerControllerBanner::save(), saveCategory(), saveContact(), MenusController::saveMenu(), saveMessage(), saveNewsFeed(), saveSection(), et ContactController::submit().
JRequest::getBool | ( | $ | name, |
$ | default = false , |
||
$ | hash = 'default' |
||
) | [static] |
Fetches and returns a given filtered variable. The bool filter will only return true/false bool values. This is currently only a proxy function for getVar().
See getVar() for more in-depth documentation on the parameters.
string | $name | Variable name |
string | $default | Default value if the variable does not exist |
string | $hash | Where the var should come from (POST, GET, FILES, COOKIE, METHOD) |
Références $name, et getVar().
Référencé par JFactory::_createDocument(), ContentViewArticle::display(), JModuleHelper::getModules(), josSpoofCheck(), UserController::login(), plgContentPagebreak(), JModuleHelper::renderModule(), BannerControllerBanner::save(), et TemplatesController::saveTemplate().
JRequest::getCmd | ( | $ | name, |
$ | default = '' , |
||
$ | hash = 'default' |
||
) | [static] |
Fetches and returns a given filtered variable. The cmd filter only allows the characters [A-Za-z0-9.-_]. This is currently only a proxy function for getVar().
See getVar() for more in-depth documentation on the parameters.
string | $name | Variable name |
string | $default | Default value if the variable does not exist |
string | $hash | Where the var should come from (POST, GET, FILES, COOKIE, METHOD) |
Références $name, et getVar().
Référencé par WeblinksModelCategory::__construct(), ContentModelSection::_buildContentOrderBy(), ContentModelArchive::_buildContentOrderBy(), TOOLBAR_Trash::_DEFAULT(), TOOLBAR_categories::_DEFAULT(), TOOLBAR_modules::_EDIT(), TOOLBAR_categories::_EDIT(), ContentViewElement::_getLists(), ContentController::accessMenu(), cancelCategory(), cancelNewsFeed(), TemplatesController::cancelTemplate(), changePublishNewsFeeds(), TemplatesController::chooseTemplateCSS(), copyCategorySelect(), ContentController::copyItem(), ContentController::copyItemSave(), MediaControllerFolder::create(), MediaControllerFolder::delete(), MediaControllerFile::delete(), deleteTrash(), ConfigViewComponent::display(), ContentViewCategory::display(), ContentViewArchive::display(), PollViewPoll::display(), JController::display(), WeblinksController::display(), NewsfeedsController::display(), ContentController::display(), ContactController::display(), PollController::display(), MediaController::display(), ConfigControllerComponent::edit(), BannerControllerBanner::edit(), editCategory(), editContact(), ContentController::editContent(), editNewsFeed(), editSection(), TemplatesController::editTemplate(), TemplatesController::editTemplateCSS(), TemplatesController::editTemplateSource(), JAdministratorHelper::findOption(), JAdminSubMenu::get(), MenusModelItem::getExpansion(), MediaModelManager::getFolderList(), ContentViewSection::getItem(), ContentViewFrontpage::getItem(), modRelatedItemsHelper::getList(), ContentModelElement::getList(), ConfigModelComponent::getParams(), JSite::getParams(), JApplicationHelper::getPath(), JSite::getTemplate(), HTML_admin_misc::help(), JA_Tools::isFrontPage(), JAdministrator::login(), moveCategorySave(), moveCategorySelect(), ContentController::moveSectionSave(), orderCategory(), orderNewsFeed(), plgContentNavigation(), plgContentPagebreak(), ContentController::previewContent(), TemplatesController::previewTemplate(), BannerControllerBanner::publish(), TemplatesController::publishTemplate(), ContentController::removeContent(), removeNewsFeeds(), JDocumentFeed::render(), JSite::render(), JAdministrator::render(), restoreTrash(), plgSystemLegacy::routeContent(), plgSystemLegacy::routeNewsfeeds(), plgSystemLegacy::routeWeblinks(), UsersController::save(), ConfigControllerComponent::save(), BannerControllerClient::save(), BannerControllerBanner::save(), saveCategory(), TemplatesController::saveTemplate(), TemplatesController::saveTemplateCSS(), TemplatesController::saveTemplateSource(), ContentController::toggleFrontPage(), ContentController::viewContent(), viewdeleteTrash(), et viewrestoreTrash().
JRequest::getFloat | ( | $ | name, |
$ | default = 0.0 , |
||
$ | hash = 'default' |
||
) | [static] |
Fetches and returns a given filtered variable. The float filter only allows digits and periods. This is currently only a proxy function for getVar().
See getVar() for more in-depth documentation on the parameters.
string | $name | Variable name |
string | $default | Default value if the variable does not exist |
string | $hash | Where the var should come from (POST, GET, FILES, COOKIE, METHOD) |
Références $name, et getVar().
JRequest::getInt | ( | $ | name, |
$ | default = 0 , |
||
$ | hash = 'default' |
||
) | [static] |
Fetches and returns a given filtered variable. The integer filter will allow only digits to be returned. This is currently only a proxy function for getVar().
See getVar() for more in-depth documentation on the parameters.
string | $name | Variable name |
string | $default | Default value if the variable does not exist |
string | $hash | Where the var should come from (POST, GET, FILES, COOKIE, METHOD) |
Références $name, et getVar().
Référencé par ContentModelCategory::_buildContentOrderBy(), ContentModelSection::_buildContentWhere(), ContentModelCategory::_buildContentWhere(), ContentModelArchive::_buildContentWhere(), ContentViewCategory::_buildSortLists(), JRouterSite::_parseRawRoute(), BannersController::click(), copyCategorySave(), SearchViewSearch::display(), ContentViewArchive::display(), ContactViewContact::display(), ContentController::display(), editCategory(), ContentController::editContent(), JAdminSubMenu::get(), JA_Tools::getCurrentMenuIndex(), SearchModelSearch::getItems(), plgContentCreateTOC(), plgSystemLegacy::routeNewsfeeds(), plgSystemLegacy::routeWeblinks(), saveNewsFeed(), SearchController::search(), MenusModelItem::setId(), et ContactController::submit().
JRequest::getMethod | ( | ) |
Gets the request method
JRequest::getString | ( | $ | name, |
$ | default = '' , |
||
$ | hash = 'default' , |
||
$ | mask = 0 |
||
) | [static] |
Fetches and returns a given filtered variable. The string filter deletes 'bad' HTML code, if not overridden by the mask. This is currently only a proxy function for getVar().
See getVar() for more in-depth documentation on the parameters.
string | $name | Variable name |
string | $default | Default value if the variable does not exist |
string | $hash | Where the var should come from (POST, GET, FILES, COOKIE, METHOD) |
int | $mask | Filter mask for the variable |
Références $name, et getVar().
Référencé par SearchModelSearch::__construct(), ContentModelSection::_buildContentWhere(), ContentModelCategory::_buildContentWhere(), ContentModelArchive::_buildContentWhere(), ContentViewCategory::_buildSortLists(), InstallerModelInstall::_getPackageFromFolder(), InstallerModelInstall::_getPackageFromUrl(), ContentController::cancel(), copySectionSave(), NewsfeedsViewNewsfeed::display(), ContentViewArchive::display(), JElementMenuItem::fetchElement(), MailtoViewMailto::getData(), MenusModelItem::getItem(), modRelatedItemsHelper::getList(), ConfigModelComponent::getParams(), JA_Tools::getUserSetting(), HTML_admin_misc::help(), UserController::login(), plgSystemRemember::onAfterInitialise(), UserController::register_save(), JComponentHelper::renderComponent(), JModuleHelper::renderModule(), ContentController::save(), saveCategory(), SearchController::search(), MailtoController::send(), et JClientHelper::setCredentialsFromRequest().
JRequest::getURI | ( | ) |
Gets the full request path
Références $uri, et JFactory::getURI().
Référencé par JFactory::_createTemplate(), JCacheView::_makeId(), JCachePage::_makeId(), et JA_Tools::getCurrentURL().
JRequest::getVar | ( | $ | name, |
$ | default = null , |
||
$ | hash = 'default' , |
||
$ | type = 'none' , |
||
$ | mask = 0 |
||
) | [static] |
Fetches and returns a given variable.
The default behaviour is fetching variables depending on the current request method: GET and HEAD will result in returning an entry from $_GET, POST and PUT will result in returning an entry from $_POST.
You can force the source by setting the $hash parameter:
post $_POST get $_GET files $_FILES cookie $_COOKIE env $_ENV server $_SERVER method via current $_SERVER['REQUEST_METHOD'] default $_REQUEST
string | $name | Variable name |
string | $default | Default value if the variable does not exist |
string | $hash | Where the var should come from (POST, GET, FILES, COOKIE, METHOD) |
string | $type | Return type for the variable, for valid values see JFilterInput::clean() |
int | $mask | Filter mask for the variable |
Références $_REQUEST, $GLOBALS, $name, $type, _cleanVar(), _stripSlashesRecursive(), et elseif.
Référencé par WeblinksModelWeblink::__construct(), UserModelUser::__construct(), ContentModelSection::__construct(), SearchModelSearch::__construct(), NewsfeedsModelNewsfeed::__construct(), MenusModelItem::__construct(), WeblinksModelCategory::__construct(), NewsfeedsModelCategory::__construct(), ContentModelCategory::__construct(), ContentModelArticle::__construct(), ContentViewArticle::_displayForm(), WeblinksViewWeblink::_displayForm(), TOOLBAR_sections::_EDIT(), TOOLBAR_newsfeeds::_EDIT(), TOOLBAR_modules::_EDIT(), TOOLBAR_content::_EDIT(), TOOLBAR_contact::_EDIT(), TOOLBAR_categories::_EDIT(), ContentViewElement::_getLists(), InstallerModelInstall::_getPackageFromUpload(), ContentModelArticle::_loadArticleParams(), ContentModelSection::_loadData(), ContentModelFrontpage::_loadData(), ContentModelCategory::_loadData(), PluginsController::access(), ContentController::accessMenu(), MenusController::accesspublic(), MenusController::accessregistered(), MenusController::accessspecial(), UserController::activate(), UsersController::block(), PollController::cancel(), BannerControllerClient::cancel(), TemplatesController::cancelTemplate(), changePublishNewsFeeds(), MenusModelItem::checkout(), checkToken(), JInstallationModel::checkUpload(), TemplatesController::chooseTemplateCSS(), UserController::completereset(), UserController::confirmreset(), UsersController::contact(), BannerControllerBanner::copy(), copyCategorySave(), ContentController::copyItem(), ContentController::copyItemSave(), copySectionSave(), MediaControllerFolder::create(), MediaControllerFolder::delete(), MediaControllerFile::delete(), CacheController::deleteCache(), InstallerController::disable(), MenusViewMenus::display(), MenusViewList::display(), ContentViewElement::display(), UserViewLogin::display(), ContentViewSection::display(), ContentViewFrontpage::display(), ContentViewCategory::display(), ContentViewArticle::display(), ContentViewArchive::display(), UsersViewUser::display(), PollViewPoll::display(), PluginsViewPlugin::display(), WeblinksViewCategory::display(), ContactViewCategory::display(), WeblinksController::display(), ContentController::display(), ContactController::display(), MenusController::doCopy(), MenusController::doCopyMenu(), MenusController::doDeleteMenu(), MenusController::doMove(), BannerControllerClient::edit(), BannerControllerBanner::edit(), editCategory(), editContact(), ContentController::editContent(), editNewsFeed(), editSection(), TemplatesController::editTemplate(), TemplatesController::editTemplateCSS(), TemplatesController::editTemplateSource(), InstallerController::enable(), JElementMenuItem::fetchElement(), ContentController::findkey(), getBool(), getCmd(), MailtoViewMailto::getData(), ContentModelArchive::getData(), MenusModelItem::getExpansion(), getFloat(), getInt(), MenusModelItem::getItem(), MenusModelList::getItemsFromRequest(), ContentModelElement::getList(), MenusModelMenutype::getMenuItems(), MediaModelManager::getState(), MediaModelList::getState(), getString(), MenusModelMenutype::getTable(), JA_Tools::getUserSetting(), JApplication::getUserStateFromRequest(), getWord(), JInstallation::initialise(), ContentView::insertPagebreak(), josGetArrayInts(), UserController::login(), LoginController::login(), UserController::logout(), UsersController::logout(), JInstallationModel::mainConfig(), JInstallationView::migrateScreen(), ContentController::moveSection(), ContentController::moveSectionSave(), PluginsController::order(), ContentController::orderContent(), MenusController::orderdown(), orderNewsFeed(), MenusController::orderup(), ContentController::previewContent(), TemplatesController::previewTemplate(), WeblinksController::publish(), PollController::publish(), PluginsController::publish(), MenusController::publish(), BannerControllerBanner::publish(), TemplatesController::publishTemplate(), UserController::remindusername(), WeblinksController::remove(), UsersController::remove(), PollController::remove(), MenusController::remove(), InstallerController::remove(), BannerControllerClient::remove(), BannerControllerBanner::remove(), ContentController::removeContent(), removeMessage(), removeNewsFeeds(), UserController::requestreset(), WeblinksControllerWeblink::save(), UserController::save(), ContentController::save(), WeblinksController::save(), UsersController::save(), MenusController::save(), BannerControllerBanner::save(), ConfigControllerApplication::save(), saveCategory(), saveConfig(), saveContact(), ContentHelper::saveContentPrep(), MenusController::saveMenu(), saveNewsFeed(), WeblinksController::saveorder(), PluginsController::saveorder(), MenusController::saveorder(), ContentController::saveOrder(), BannerControllerBanner::saveOrder(), saveOrder(), saveSection(), TemplatesController::saveTemplate(), TemplatesController::saveTemplateCSS(), TemplatesController::saveTemplateSource(), SearchController::search(), sendMail(), BannersViewBanner::setBannerToolbar(), BannersViewClients::setClientToolbar(), MenusController::setdefault(), MenusModelItem::setId(), MenusModelList::setOrder(), sections_html::show(), categories_html::show(), CacheController::showCache(), HTML_languages::showLanguages(), FrontpageView::showList(), TemplatesView::showTemplates(), ContactController::submit(), ContentController::toggleFrontPage(), WeblinksController::unpublish(), MenusController::unpublish(), MediaControllerFile::upload(), JInstallationHelper::uploadSql(), ContactController::vcard(), ContentController::viewContent(), TemplatesController::viewTemplates(), PollController::vote(), et ContentController::vote().
JRequest::getWord | ( | $ | name, |
$ | default = '' , |
||
$ | hash = 'default' |
||
) | [static] |
Fetches and returns a given filtered variable. The word filter only allows the characters [A-Za-z_]. This is currently only a proxy function for getVar().
See getVar() for more in-depth documentation on the parameters.
string | $name | Variable name |
string | $default | Default value if the variable does not exist |
string | $hash | Where the var should come from (POST, GET, FILES, COOKIE, METHOD) |
Références $name, et getVar().
Référencé par SearchModelSearch::__construct(), ContentModelSection::_buildContentOrderBy(), ContentModelArchive::_buildContentOrderBy(), JFactory::_createDocument(), PluginsController::cancel(), InstallerController::disable(), PluginsViewPlugins::display(), PluginsViewPlugin::display(), InstallerController::enable(), InstallerModelInstall::install(), InstallerController::manage(), PluginsController::order(), PluginsController::publish(), InstallerController::remove(), PluginsController::save(), et SearchController::search().
JRequest::set | ( | $ | array, |
$ | hash = 'default' , |
||
$ | overwrite = true |
||
) |
Sets a request variable
array | An associative array of key-value pairs |
string | The request variable to set (POST, GET, FILES, METHOD) |
boolean | If true and an existing key is found, the value is overwritten, otherwise it is ingored |
Références setVar().
Référencé par JApplication::route().
JRequest::setVar | ( | $ | name, |
$ | value = null , |
||
$ | hash = 'method' , |
||
$ | overwrite = true |
||
) |
Set a variabe in on of the request variables
public
string | $name | Name |
string | $value | Value |
string | $hash | Hash |
boolean | $overwrite | Boolean |
Références $_REQUEST, $GLOBALS, et $name.
Référencé par BannersViewBanner::banner(), UsersController::block(), TemplatesView::chooseCSSFiles(), BannersViewClients::client(), MediaControllerFolder::create(), ContentViewArchive::display(), WeblinksViewCategory::display(), ContentViewSection::display(), ContentViewFrontpage::display(), ContentViewCategory::display(), SearchController::display(), NewsfeedsController::display(), ContentController::display(), WeblinksController::display(), UsersController::display(), PollController::display(), PluginsController::display(), WeblinksControllerWeblink::edit(), MenusViewItem::edit(), UserController::edit(), MenusController::edit(), ConfigControllerComponent::edit(), sections_html::edit(), HTML_modules::edit(), categories_html::edit(), HTML_contact::editContact(), ContentView::editContent(), TemplatesView::editCSSSource(), MenusViewMenus::editForm(), HTML_newsfeeds::editNewsFeed(), TemplatesView::editTemplate(), TemplatesView::editTemplateSource(), ContentController::findkey(), JAdministratorHelper::findOption(), MailtoController::mailto(), MenusController::newItem(), UserController::register(), UsersController::remove(), plgSystemLegacy::routeContent(), plgSystemLegacy::routeNewsfeeds(), plgSystemLegacy::routeWeblinks(), SearchController::search(), MailtoController::send(), set(), MenusViewItem::type(), et MenusController::type().