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 statiques | |
static | getCredentials ($client, $force=false) |
static | setCredentials ($client, $user, $pass) |
static | hasCredentials ($client) |
static | setCredentialsFromRequest ($client) |
|
static |
Method to return the array of client layer configuration options
string | $client | Client name, currently only 'ftp' is supported |
boolean | $force | Forces re-creation of the login credentials. Set this to true if login credentials in the session storage have changed |
Références $client, $config, $options, JFactory\getConfig(), JFactory\getSession(), et null.
Référencé par AdmintoolsHelperDownload\chmod(), JFolder\copy(), JFile\copy(), JFolder\create(), JoomlaupdateModelDefault\createRestorationFile(), JFile\delete(), JFolder\delete(), JFactory\getStream(), JFile\move(), JFolder\move(), TemplatesModelSource\save(), setCredentials(), JFile\upload(), JFile\write(), et ConfigModelApplication\writeConfigFile().
|
static |
Method to determine if client login credentials are present
string | $client | Client name, currently only 'ftp' is supported |
Références $client, $config, $options, $return, $user, elseif, JFactory\getConfig(), JFactory\getSession(), et null.
Référencé par JoomlaupdateControllerUpdate\_applyCredentials(), MediaViewMedia\display(), MediaViewImages\display(), et setCredentialsFromRequest().
|
static |
Method to set client login credentials
string | $client | Client name, currently only 'ftp' is supported |
string | $user | Username |
string | $pass | Password |
Références $client, $config, $options, $return, $user, JFactory\getConfig(), getCredentials(), JFTP\getInstance(), JFactory\getSession(), et jimport().
Référencé par JoomlaupdateControllerUpdate\_applyCredentials(), et setCredentialsFromRequest().
|
static |
Determine whether input fields for client settings need to be shown
If valid credentials were passed along with the request, they are saved to the session. This functions returns an exception if invalid credentials have been given or if the connection to the server failed for some other reason.
string | $client | The name of the client. |
Références $client, $return, $user, JText\_(), JRequest\getString(), hasCredentials(), JREQUEST_ALLOWRAW, null, JError\raiseWarning(), et setCredentials().
Référencé par ConfigControllerApplication\cancel(), TemplatesControllerTemplate\copy(), MediaControllerFolder\create(), MediaControllerFolder\delete(), MediaControllerFile\delete(), ConfigViewApplication\display(), TemplatesViewSource\display(), InstallerController\display(), JoomlaupdateController\display(), TemplatesViewPrevuuw\display(), MediaController\ftpValidate(), LanguagesModelInstalled\getFtp(), InstallerModelInstall\install(), ConfigControllerApplication\refreshHelp(), ConfigControllerComponent\save(), ConfigControllerApplication\save(), TemplatesModelSource\save(), et MediaControllerFile\upload().