- md5
- f9e5f061be62a37d43d58ca258ef9a82
- sha1
- ffdcaebc5481051b90fd26c0a365853e8387e984
- sha256
- 1f959b68f2e2a6a7868f99c5fb9274210305126497b7b8e8b042a7d0786f8e30
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
<?php
/**
* Joomla! Content Management System
*
* @copyright Copyright (C) 2005 - 2019 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
namespace Joomla\CMS\Client;
defined('JPATH_PLATFORM') or die;
/**
* Wrapper class for ClientHelper
*
* @package Joomla.Platform
* @subpackage Client
* @since 3.4
* @deprecated 4.0 Will be removed without replacement
*/
class ClientWrapper
{
/**
* Helper wrapper method for getCredentials
*
* @param string $client Client name, currently only 'ftp' is supported
* @param boolean $force Forces re-creation of the login credentials. Set this to
*
* @return array Client layer configuration options, consisting of at least
*
* @see ClientHelper::getCredentials()
* @since 3.4
*/
public function getCredentials($client, $force = false)
{
return ClientHelper::getCredentials($client, $force);
}
/**
* Helper wrapper method for setCredentials
*
* @param string $client Client name, currently only 'ftp' is supported
* @param string $user Username
* @param string $pass Password
*
* @return boolean True if the given login credentials have been set and are valid
*
* @see ClientHelper::setCredentials()
* @since 3.4
*/
public function setCredentials($client, $user, $pass)
{
return ClientHelper::setCredentials($client, $user, $pass);
}
/**
* Helper wrapper method for hasCredentials
*
* @param string $client Client name, currently only 'ftp' is supported
*
* @return boolean True if login credentials are available
*
* @see ClientHelper::hasCredentials()
* @since 3.4
*/
public function hasCredentials($client)
{
return ClientHelper::hasCredentials($client);
}
/**
* Helper wrapper method for setCredentialsFromRequest
*
* @param string $client The name of the client.
*
* @return mixed True, if FTP settings; JError if using legacy tree
*
* @see UserHelper::setCredentialsFromRequest()
* @since 3.4
* @throws \InvalidArgumentException if credentials invalid
*/
public function setCredentialsFromRequest($client)
{
return ClientHelper::setCredentialsFromRequest($client);
}
}
The same content is in 21 releases, Joomla 3.9.2-rc to 3.9.12. See them all, or every version of this file.