Joomla CMS
4.2.2
Documentation des API du CMS Joomla en version 4.2.2
|
Fonctions membres publiques statiques | |
static | getCredentials ($client, $force=false) |
static | setCredentials ($client, $user, $pass) |
static | hasCredentials ($client) |
static | setCredentialsFromRequest ($client) |
Client helper class
|
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 $app, $client, $options, Factory\getApplication(), Factory\getSession(), et null.
Référencé par File\append(), Folder\copy(), File\copy(), Folder\create(), File\delete(), Folder\delete(), Factory\getStream(), File\move(), Folder\move(), File\upload(), et File\write().
|
static |
Method to determine if client login credentials are present
string | $client | Client name, currently only 'ftp' is supported |
Références $app, $client, $options, $return, $user, elseif, Factory\getApplication(), Factory\getSession(), et null.
|
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 $app, $client, $options, $return, $user, Factory\getApplication(), FtpClient\getInstance(), et Factory\getSession().
|
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, $input, $return, $user, Factory\getApplication(), et null.
Référencé par ConfigController\save(), et TemplatesController\save().