Back to FtpClient class

Method setOptions

public bool
setOptions
(array $options)
Set client options
Parameters
  • array $options Associative array of options to set
Returns
  • bool True if successful
Since
  • 1.5
Class: FtpClient
Project: Joomla

Method setOptions - Source code

/**
 * Set client options
 *
 * @param   array  $options  Associative array of options to set
 *
 * @return  boolean  True if successful
 *
 * @since   1.5
 */
public function setOptions(array $options)
{
    if (isset($options['type'])) {
        $this->_type = $options['type'];
    }
    if (isset($options['timeout'])) {
        $this->_timeout = $options['timeout'];
    }
    return true;
}