| API | Package | Subpackage | Class | Method | Reference | Last reviewed | Doc status |
|---|---|---|---|---|---|---|---|
Home |
Joomla.Framework |
Client |
JFTP |
getInstance |
getInstance() |
Never | Work in Progress |
Returns a reference to the global FTP connector object, only creating it if it doesn’t already exist. This method must be invoked as:
$ftp = &JFTP::getInstance($host);
JFTP &getInstance ( $host, $port, $options )
| $host | string | is a string containing the host to connect to. This parameter is optional and if omitted defaults to ‘127.0.0.1’. |
| $port | string | is a string containing the post to connect to. This parameter is optional and if omitted defaults to ‘21’. |
| $options | array | is an associative array to use to create the object. See __construct for more information. |
Example
$ftp = &JFTP::getInstance( '127.0.0.1' );