Joomla CMS  4.2.2
Documentation des API du CMS Joomla en version 4.2.2
Référence de la classe ClientHelper

Fonctions membres publiques statiques

static getCredentials ($client, $force=false)
 
static setCredentials ($client, $user, $pass)
 
static hasCredentials ($client)
 
static setCredentialsFromRequest ($client)
 

Description détaillée

Client helper class

Depuis
1.7.0

Documentation des fonctions membres

◆ getCredentials()

static getCredentials (   $client,
  $force = false 
)
static

Method to return the array of client layer configuration options

Paramètres
string$clientClient name, currently only 'ftp' is supported
boolean$forceForces re-creation of the login credentials. Set this to true if login credentials in the session storage have changed
Renvoie
array Client layer configuration options, consisting of at least these fields: enabled, host, port, user, pass, root
Depuis
1.7.0

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().

◆ hasCredentials()

static hasCredentials (   $client)
static

Method to determine if client login credentials are present

Paramètres
string$clientClient name, currently only 'ftp' is supported
Renvoie
boolean True if login credentials are available
Depuis
1.7.0

Références $app, $client, $options, $return, $user, elseif, Factory\getApplication(), Factory\getSession(), et null.

◆ setCredentials()

static setCredentials (   $client,
  $user,
  $pass 
)
static

Method to set client login credentials

Paramètres
string$clientClient name, currently only 'ftp' is supported
string$userUsername
string$passPassword
Renvoie
boolean True if the given login credentials have been set and are valid
Depuis
1.7.0

Références $app, $client, $options, $return, $user, Factory\getApplication(), FtpClient\getInstance(), et Factory\getSession().

◆ setCredentialsFromRequest()

static setCredentialsFromRequest (   $client)
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.

Paramètres
string$clientThe name of the client.
Renvoie
boolean True if credentials are present
Depuis
1.7.0
Exceptions

Références $client, $input, $return, $user, Factory\getApplication(), et null.

Référencé par ConfigController\save(), et TemplatesController\save().


La documentation de cette classe a été générée à partir du fichier suivant :