JClientHelper::setCredentialsFromRequest
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.
Signature
public function setCredentialsFromRequest(string
$client )
Parameters
-
$client
- The name of the client.
Returns
- mixed
- True, if FTP settings; JError if using legacy tree.
Errors/Exceptions
-
InvalidArgumentException
- if credentials invalid