API16

JFTP/setOptions

From Joomla! Documentation

< API16:JFTP
Revision as of 17:39, 22 March 2010 by Doxiki (talk | contribs) (New page: ===Description=== Set client options <span class="editsection" style="font-size:76%;"> <nowiki>[</nowiki>Edit Descripton<nowiki>]</nowiki> </span> ...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

The "API16" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.

Description[edit]

Set client options

[Edit Descripton]

Template:Description:JFTP/setOptions

Syntax[edit]

setOptions($options)
Parameter Name Default Value Description
$options $options Associative array of options to set

Returns[edit]

boolean True if successful

Defined in[edit]

libraries/joomla/client/ftp.php

Importing[edit]

jimport( 'joomla.client.ftp' );

Source Body[edit]

function setOptions($options) {

        if (isset ($options['type'])) {
                $this->_type = $options['type'];
        }
        if (isset ($options['timeout'])) {
                $this->_timeout = $options['timeout'];
        }
        return true;
}

[Edit See Also] Template:SeeAlso:JFTP/setOptions

Examples[edit]

<CodeExamplesForm />