Joomla CMS
2.5.24 (avec JPlatform 11.4 inclus)
Documentation des API du CMS Joomla en version 2.5 et du framework Joomla Platform intégré
|
Fonctions membres publiques | |
getMenu () | |
getItems () | |
__construct ($config=array()) | |
initialise ($options=array()) | |
route () | |
dispatch ($component=null) | |
render () | |
login ($credentials, $options=array()) | |
authorize ($itemid) | |
authorise ($itemid) | |
getParams ($option=null) | |
getPageParameters ($option=null) | |
getTemplate ($params=false) | |
setTemplate ($template, $styleParams=null) | |
getMenu ($name=null, $options=array()) | |
getPathway ($name=null, $options=array()) | |
getLanguageFilter () | |
setLanguageFilter ($state=false) | |
getDetectBrowser () | |
setDetectBrowser ($state=false) | |
redirect ($url, $msg='', $msgType='message', $moved=false, $persistMsg=true) | |
Fonctions membres publiques inherited from JApplication | |
close ($code=0) | |
redirect ($url, $msg= '', $msgType= 'message', $moved=false) | |
enqueueMessage ($msg, $type= 'message') | |
getMessageQueue () | |
getCfg ($varname, $default=null) | |
getName () | |
getUserState ($key, $default=null) | |
setUserState ($key, $value) | |
getUserStateFromRequest ($key, $request, $default=null, $type= 'none') | |
triggerEvent ($event, $args=null) | |
logout ($userid=null, $options=array()) | |
checkSession () | |
getClientId () | |
isAdmin () | |
isSite () | |
__toString () | |
Fonctions membres publiques inherited from JObject | |
def ($property, $default=null) | |
get ($property, $default=null) | |
getProperties ($public=true) | |
getError ($i=null, $toString=true) | |
getErrors () | |
set ($property, $value=null) | |
setProperties ($properties) | |
setError ($error) | |
toString () |
Fonctions membres publiques statiques | |
static | getRouter ($name=null, array $options=array()) |
Fonctions membres publiques statiques inherited from JApplication | |
static | getInstance ($client, $config=array(), $prefix= 'J') |
static | registerEvent ($event, $handler) |
static | stringURLSafe ($string) |
static | getHash ($seed) |
static | isWinOS () |
Attributs privés | |
$template = null | |
$_language_filter = false | |
$_detect_browser = false |
Additional Inherited Members | |
Attributs publics inherited from JApplication | |
$scope = null | |
$requestTime = null | |
$startTime = null | |
$input = null | |
Fonctions membres protégées inherited from JApplication | |
_createConfiguration ($file) | |
_createSession ($name) | |
Attributs protégés inherited from JApplication | |
$_clientId = null | |
$_messageQueue = array() | |
$_name = null | |
Attributs protégés inherited from JObject | |
$_errors = array() | |
Attributs protégés statiques inherited from JApplication | |
static | $instances = array() |
JSite::__construct | ( | $config = array() | ) |
Class constructor
array | An optional associative array of configuration settings. Recognized key values include 'clientId' (this list is not meant to be comprehensive). |
Réimplémentée à partir de JApplication.
Références $config.
JSite::authorise | ( | $itemid | ) |
Check if the user can access the application
Références $return, $uri, $url, $user, JRoute\_(), JText\_(), JFactory\getURI(), JFactory\getUser(), et JError\raiseError().
JSite::authorize | ( | $itemid | ) |
Références JLog\add(), et JLog\WARNING.
JSite::dispatch | ( | $component = null | ) |
Dispatch the application
string |
Réimplémentée à partir de JApplication.
Références $params, $user, JURI\current(), JRequest\getCmd(), JFactory\getDocument(), JFactory\getLanguage(), JLanguageHelper\getLanguages(), JFactory\getUser(), JPluginHelper\importPlugin(), JROUTER_MODE_SEF, JError\raiseError(), et JComponentHelper\renderComponent().
JSite::getDetectBrowser | ( | ) |
Return the current state of the detect browser option.
JSite::getItems | ( | ) |
False method to fool the frontend search plugins
JSite::getLanguageFilter | ( | ) |
Return the current state of the language filter.
JSite::getMenu | ( | ) |
False method to fool the frontend search plugins
JSite::getMenu | ( | $name = null , |
|
$options = array() |
|||
) |
Return a reference to the JPathway object.
string | $name | The name of the application/client. |
array | $options | An optional associative array of configuration settings. |
Réimplémentée à partir de JApplication.
JSite::getPageParameters | ( | $option = null | ) |
Get the application parameters
string | The component option |
JSite::getParams | ( | $option = null | ) |
Get the appliaction parameters
string | The component option |
Références $menu, $params, $title, JRequest\getCmd(), JFactory\getLanguage(), JLanguageHelper\getLanguages(), JComponentHelper\getParams(), et JRegistry\loadString().
JSite::getPathway | ( | $name = null , |
|
$options = array() |
|||
) |
Return a reference to the JPathway object.
string | $name | The name of the application. |
array | $options | An optional associative array of configuration settings. |
Réimplémentée à partir de JApplication.
Références $options.
|
static |
Return a reference to the JRouter object.
string | $name | The name of the application. |
array | $options | An optional associative array of configuration settings. |
Réimplémentée à partir de JApplication.
Références $config, $options, et JFactory\getConfig().
Référencé par JPathwaySite\__construct(), et modMenuHelper\getList().
JSite::getTemplate | ( | $params = false | ) |
Get the template
Réimplémentée à partir de JApplication.
Références $db, $id, $item, $menu, $params, $query, $tag, $template, JText\_(), JFactory\getCache(), JRequest\getCmd(), JFactory\getDbo(), JFilterInput\getInstance(), JRequest\getInt(), JFactory\getLanguage(), JRequest\getVar(), JPATH_THEMES, JRegistry\loadString(), et JError\raiseWarning().
JSite::initialise | ( | $options = array() | ) |
Initialise the application.
array |
Réimplémentée à partir de JApplication.
Références $client, $config, $lang, $options, $params, JLanguageHelper\detectLanguage(), JLanguage\exists(), JApplicationHelper\getClientInfo(), JFactory\getConfig(), JFactory\getLanguage(), JComponentHelper\getParams(), JRequest\getString(), JFactory\getUser(), JPluginHelper\importPlugin(), JPATH_ADMINISTRATOR, JPATH_SITE, et null.
JSite::login | ( | $credentials, | |
$options = array() |
|||
) |
Login authentication function
array | Array('username' => string, 'password' => string) |
array | Array('remember' => boolean) |
Réimplémentée à partir de JApplication.
Références $options, et JURI\base().
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" code in the header pointing to the new location. If the headers have already been sent this will be accomplished using a JavaScript statement.
string | The URL to redirect to. Can only be http/https URL |
string | An optional message to display on redirect. |
string | An optional message type. |
boolean | True if the page is 301 Permanently Moved, otherwise 303 See Other is assumed. |
boolean | True if the enqueued messages are passed to the redirection, false else. |
Références $url.
JSite::render | ( | ) |
Display the application.
Réimplémentée à partir de JApplication.
Références $file, $params, $return, $template, $uri, $user, JRequest\getCmd(), JFactory\getDocument(), JFactory\getURI(), JFactory\getUser(), JPluginHelper\importPlugin(), JPATH_THEMES, JResponse\setBody(), et JResponse\setHeader().
JSite::route | ( | ) |
Route the application.
Réimplémentée à partir de JApplication.
Références JRequest\getInt().
JSite::setDetectBrowser | ( | $state = false | ) |
Set the current state of the detect browser option.
Références $state.
JSite::setLanguageFilter | ( | $state = false | ) |
Set the current state of the language filter.
Références $state.
JSite::setTemplate | ( | $template, | |
$styleParams = null |
|||
) |
Overrides the default template that would be used
string | The template name |
mixed | The template style parameters |
Références $template, et JPATH_THEMES.
|
private |
Option to detect language by the browser
|
private |
Option to filter by language
|
private |