API Joomla 1.5.26
Documentation des API du CMS Joomla en version 1.5
|
JApplication::__construct | ( | $ | config = array() | ) |
Class constructor.
integer | A client identifier. |
Réimplémentée dans JAdministrator, JSite, JInstallation, et JXMLRPC.
Références $config, JUtility::getHash(), et jimport().
& JApplication::_createConfiguration | ( | $ | file | ) |
Create the configuration registry
private
string | $file | The path to the configuration file return JConfig |
Références $config, $file, JFactory::getConfig(), et jimport().
& JApplication::_createSession | ( | $ | name | ) |
Create the user session.
Old sessions are flushed based on the configuration value for the cookie lifetime. If an existing session, then the last access time is updated. If a new session, a session id is generated and a record is created in the #__sessions table.
private
string | The sessions name. |
Réimplémentée dans JInstallation.
Références $name, $session, JTable::getInstance(), JFactory::getSession(), jexit(), et jimport().
JApplication::addCustomHeadTag | ( | $ | html | ) |
Deprecated, use JDocument->addCustomTag instead (only when document type is HTML).
string | Valid HTML |
Références $document, et JFactory::getDocument().
JApplication::addMetaTag | ( | $ | name, |
$ | content, | ||
$ | prepend = '' , |
||
$ | append = '' |
||
) |
Deprecated, use JDocument->setMetaData instead.
string | Name of the metadata tag |
string | Content of the metadata tag |
string | Deprecated, ignored |
string | Deprecated, ignored |
Références $content, $document, $name, et JFactory::getDocument().
JApplication::appendMetaTag | ( | $ | name, |
$ | content | ||
) |
Deprecated, use JDocument->setMetaData instead.
string | Name of the metadata tag |
string | Content of the metadata tag |
JApplication::appendPathWay | ( | $ | name, |
$ | link = null |
||
) |
JApplication::close | ( | $ | code = 0 | ) |
Exit the application.
public
int | Exit code |
JApplication::dispatch | ( | $ | component | ) |
Dispatch the applicaiton.
Dispatching is the process of pulling the option from the request object and mapping them to a component. If the component does not exist, it handles determining a default component to dispatch.
public
Réimplémentée dans JAdministrator, et JSite.
Références $document, JText::_(), JFactory::getDocument(), et JComponentHelper::renderComponent().
JApplication::enqueueMessage | ( | $ | msg, |
$ | type = 'message' |
||
) |
Enqueue a system message.
public
string | $msg | The message to enqueue. |
string | $type | The message type. |
Références $session, $type, et JFactory::getSession().
JApplication::getBasePath | ( | $ | client = 0 , |
$ | addTrailingSlash = true |
||
) |
Deprecated, use JURI::base() instead.
Réimplémentée dans mosMainFrame.
Références JURI::base().
JApplication::getBlogCategoryCount | ( | ) |
Deprecated.
Références JSite::getMenu().
JApplication::getBlogSectionCount | ( | ) |
Deprecated.
Références JSite::getMenu().
JApplication::getCfg | ( | $ | varname | ) |
JApplication::getClientId | ( | ) |
Gets the client id of the current running application.
public
JApplication::getContentItemLinkCount | ( | ) |
Deprecated.
Références JSite::getMenu().
JApplication::getCustomPathWay | ( | ) |
Deprecated, use JPathway->getPathWayNames() method instead.
JApplication::getGlobalBlogSectionCount | ( | ) |
Deprecated.
Références JSite::getMenu().
JApplication::getHead | ( | ) |
Deprecated, use JDocument->get( 'head' ) instead.
Références $document, et JFactory::getDocument().
& JApplication::getInstance | ( | $ | client, |
$ | config = array() , |
||
$ | prefix = 'J' |
||
) |
Returns a reference to the global JApplication object, only creating it if it doesn't already exist.
This method must be invoked as:
$menu = &JApplication::getInstance();
public
mixed | $id | A client identifier or name. |
array | $config | An optional associative array of configuration settings. |
Références $classname, $client, $config, $error, $path, JApplicationHelper::getClientInfo(), jimport(), et JError::raiseError().
Référencé par JFactory::getApplication().
JApplication::getItemid | ( | $ | id | ) |
Deprecated, use ContentHelper::getItemid instead.
Références $id, $item, $return, ContentHelperRoute::_findItem(), et JTable::getInstance().
& JApplication::getMenu | ( | $ | name = null , |
$ | options = array() |
||
) |
Return a reference to the application JPathway object.
public
array | $options | An optional associative array of configuration settings. |
Références $menu, $name, JMenu::getInstance(), JError::isError(), et jimport().
Référencé par ContentHelperRoute::_findItem().
JApplication::getMessageQueue | ( | ) |
Get the system message queue.
public
Références $session, et JFactory::getSession().
JApplication::getName | ( | ) |
Method to get the application name
The dispatcher name by default parsed using the classname, or it can be set by passing a $config['name'] in the class constructor
public
Références $name, et JError::raiseError().
JApplication::getPageTitle | ( | ) |
Deprecated, use JDocument::getTitle instead.
Réimplémentée dans mosMainFrame.
Références $document, et JFactory::getDocument().
JApplication::getPath | ( | $ | varname, |
$ | user_option = null |
||
) |
Deprecated, use JApplicationHelper::getPath instead.
Références JApplicationHelper::getPath(), et jimport().
& JApplication::getPathway | ( | $ | name = null , |
$ | options = array() |
||
) |
Return a reference to the application JPathway object.
public
array | $options | An optional associative array of configuration settings. |
Références $name, JPathway::getInstance(), JError::isError(), et jimport().
& JApplication::getRouter | ( | $ | name = null , |
$ | options = array() |
||
) |
Return a reference to the application JRouter object.
public
array | $options | An optional associative array of configuration settings. |
Références $name, JRouter::getInstance(), JError::isError(), et jimport().
JApplication::getStaticContentCount | ( | ) |
Deprecated.
Références JSite::getMenu().
JApplication::getTemplate | ( | ) |
Gets the name of the current template.
Réimplémentée dans JAdministrator, JSite, et JInstallation.
Référencé par JApplicationHelper::getPath().
& JApplication::getUser | ( | ) |
Deprecated, use JFactory::getUser instead.
Références $user, et JFactory::getUser().
JApplication::getUserState | ( | $ | key | ) |
Gets a user state.
public
string | The path of the state. |
Références $session, et JFactory::getSession().
JApplication::getUserStateFromRequest | ( | $ | key, |
$ | request, | ||
$ | default = null , |
||
$ | type = 'none' |
||
) |
Gets the value of a user state variable.
public
string | The key of the user state variable. |
string | The name of the variable passed in a request. |
string | The default value for the variable if not found. Optional. |
string | Filter for the variable, for valid values see JFilterInput::clean(). Optional. |
Références $type, et JRequest::getVar().
JApplication::initialise | ( | $ | options = array() | ) |
Initialise the application.
array | An optional associative array of configuration settings. public |
Réimplémentée dans JAdministrator, JSite, et JInstallation.
Références $config, $editor, $user, JFactory::getConfig(), JFactory::getUser(), JPluginHelper::isEnabled(), et jimport().
JApplication::isAdmin | ( | ) |
Is admin interface?
public
JApplication::isSite | ( | ) |
Is site interface?
public
JApplication::login | ( | $ | credentials, |
$ | options = array() |
||
) |
Login authentication function.
Username and encoded password are passed the the onLoginUser event which is responsible for the user validation. A successful validation updates the current session record with the users details.
Username and encoded password are sent as credentials (along with other possibilities) to each observer (authentication plugin) for user validation. Successful validation will update the current session with the user details.
array | Array( 'username' => string, 'password' => string ) |
array | Array( 'remember' => boolean ) |
Réimplémentée dans JAdministrator, et JSite.
Références $session, JText::_(), JUtility::getHash(), JAuthentication::getInstance(), JFactory::getSession(), JPluginHelper::importPlugin(), jimport(), et JError::raiseWarning().
JApplication::logout | ( | $ | userid = null , |
$ | options = array() |
||
) |
Logout authentication function.
Passed the current user information to the onLogoutUser event and reverts the current session record back to 'anonymous' parameters.
int | $userid | The user to load - Can be an integer or string - If string, it is converted to ID automatically |
array | $options | Array( 'clientid' => array of client id's ) |
public
Références $user, JUtility::getHash(), JFactory::getUser(), et JPluginHelper::importPlugin().
JApplication::prependMetaTag | ( | $ | name, |
$ | content | ||
) |
Deprecated, use JDocument->setMetaData instead
string | Name of the metadata tag |
string | Content of the metadata tag |
JApplication::redirect | ( | $ | url, |
$ | msg = '' , |
||
$ | msgType = 'message' , |
||
$ | moved = false |
||
) |
Redirect to another URL.
Optionally enqueues a message in the system message queue (which will be displayed the next time a page is loaded) using the enqueueMessage method. If the headers have not been sent the redirect will be accomplished using a "301 Moved Permanently" or "303 See Other" code in the header pointing to the new location depending upon the moved flag. If the headers have already been sent this will be accomplished using a JavaScript statement.
public
string | $url | The URL to redirect to. Can only be http/https URL |
string | $msg | An optional message to display on redirect. |
string | $msgType | An optional message type. |
boolean | True if the page is 301 Permanently Moved, otherwise 303 See Other is assumed. |
Références $parts, $path, $session, $uri, $url, JURI::base(), JURI::getInstance(), et JFactory::getSession().
JApplication::registerEvent | ( | $ | event, |
$ | handler | ||
) | [static] |
Registers a handler to a particular event group.
string | The event name. |
mixed | The handler, a function or an instance of a event object. |
Références JDispatcher::getInstance().
Référencé par mosMambotHandler::registerFunction().
JApplication::render | ( | ) |
Render the application.
Rendering is the process of pushing the document buffers into the template placeholders, retrieving data from the document and pushing it into the JResponse buffer.
public
Réimplémentée dans JAdministrator, JSite, et JInstallation.
Références $data, $document, $params, JFactory::getDocument(), et JResponse::setBody().
JApplication::route | ( | ) |
Route the application.
Routing is the process of examining the request environment to determine which component should receive the request. The component optional parameters are then set in the request object to be processed when the application is being dispatched.
public
Réimplémentée dans JAdministrator, et JSite.
Références $uri, JURI::getInstance(), et JRequest::set().
JApplication::setPageTitle | ( | $ | title = null | ) |
Deprecated, use JDocument::setTitle instead.
Réimplémentée dans mosMainFrame.
Références $document, $title, et JFactory::getDocument().
JApplication::setUserState | ( | $ | key, |
$ | value | ||
) |
Sets the value of a user state variable.
public
string | The path of the state. |
string | The value of the variable. |
Références $session, et JFactory::getSession().
JApplication::triggerEvent | ( | $ | event, |
$ | args = null |
||
) | [static] |
Calls all handlers associated with an event group.
string | The event name. |
array | An array of arguments. |
Références JDispatcher::getInstance().
JApplication::$_clientId = null |
JApplication::$_messageQueue = array() |
JApplication::$_name = null |
JApplication::$scope = null |