JClientHelper/hasCredentials
From Joomla! Documentation
Method to determine if client login credentials are present. Returns True if login credentials are available
Contents |
Syntax
boolean hasCredentials ($client)
| Argument | Data type | Description | Default |
|---|---|---|---|
| $client | string | Client name, currently only 'ftp' is supported |
Returns
Returns TRUE if:
- Client is disabled in Global Configurations
- Client Credentials 'user' and 'pass' have been set in Global Configurations
- If the Client login credentials are available in the session.
Example
jimport('joomla.client.helper'); if (JClientHelper::hasCredentials('ftp')){ //Do something }else { //Do something }