phpCoreLib2
[ class tree: phpCoreLib2 ] [ index: phpCoreLib2 ] [ all elements ]

Class: DFTP

Source Location: /Remote/FTP/DFTP.php

Class Overview

DObject
   |
   --DFTPBase
      |
      --DFTP

Main FTP Class


Methods


Child classes:

DFTPAdvanced
Advanced FTP class for upload, download and delete recursively on FTP server

Inherited Constants

Inherited Variables

Inherited Methods

Class: DFTPBase

DFTPBase::__construct()
Constructor
DFTPBase::close()
Closes the FTP connection
DFTPBase::connect()
Connects to FTP server
DFTPBase::executeCommand()
Executes command on ftp server
DFTPBase::executeSiteCommand()
Executes SITE command on server
DFTPBase::getFTPConnection()
Gets FTP connection resource
DFTPBase::getHostIp()
Gets host IP
DFTPBase::getRemoteFileSize()
Gets remote file size in bytes
DFTPBase::getSystemType()
Gets FTP server type
DFTPBase::login()
Logs in
DFTPBase::setFileDirectoryPermissions()
Sets file or directory permissions
DFTPBase::setHost()
Sets host name and IP
DFTPBase::setPassiveMode()
Sets passive mode on/off
DFTPBase::_setErrorMsg()
Sets error message
DFTPBase::__destruct()
Destructor

Class: DObject

DObject::__construct()
Constructor
DObject::debug()
Debig
DObject::getClassMembers()
Gets member variables of the instance
DObject::getClassMemberType()
Gets class member type
DObject::getClassMethods()
Gets classes of the class
DObject::getClassName()
Gets class name
DObject::PHPSerialize()
Gets serialized string of the class
DObject::trace()
Trace
DObject::__destruct()
Descructor
DObject::__toString()
Returns String equivalent of the object.

Class Details

[line 25]
Main FTP Class



[ Top ]


Class Methods


constructor __construct [line 41]

DFTP __construct( string $hostName)

Constructor



Tags:

access:  public


Overridden in child classes as:

DFTPAdvanced::__construct()
Constructor

Overrides DFTPBase::__construct() (Constructor)

Parameters:

string   $hostName  

[ Top ]

destructor __destruct [line 50]

void __destruct( )

Destructor



Tags:

access:  public


Overridden in child classes as:

DFTPAdvanced::__destruct()
Destructor

Overrides DFTPBase::__destruct() (Destructor)

[ Top ]

method changeCurrentDirectoryOneUp [line 97]

boolean changeCurrentDirectoryOneUp( )

Cahnges directory one up



Tags:

access:  public


[ Top ]

method changeCurrentDirenctory [line 78]

boolean changeCurrentDirenctory( string $directoryName)

Changes directory to specific path



Tags:

access:  public


Parameters:

string   $directoryName  

[ Top ]

method createDirectory [line 116]

boolean createDirectory( string $directoryName)

Creates directory on FTP server



Tags:

access:  public


Parameters:

string   $directoryName  

[ Top ]

method downloadFile [line 288]

boolean downloadFile( string $remoteFileName, string $localFileName, [int $mode = FTP_BINARY], [boolean $asynchronously = false])

Downloads file from FTP server



Tags:

access:  public


Parameters:

string   $remoteFileName  
string   $localFileName  
int   $mode  
boolean   $asynchronously  

[ Top ]

method getCurrentDirectoryName [line 60]

string getCurrentDirectoryName( )

Gets current directory name



Tags:

access:  public


[ Top ]

method getList [line 156]

DDirectoryList getList( string $directoryName)

Gets FTP directory list



Tags:

access:  public


Parameters:

string   $directoryName  

[ Top ]

method isTransferComplete [line 322]

boolean(true/false) isTransferComplete( )

Checks if the transpher is complete



Tags:

return:  or -1 on error
access:  public


[ Top ]

method removeEmptyDirectory [line 136]

boolean removeEmptyDirectory( string $directoryName)

Removes empty directory



Tags:

access:  public


Parameters:

string   $directoryName  

[ Top ]

method removeFile [line 265]

boolean removeFile( string $fileName)

Removes file from FTP server



Tags:

access:  public


Parameters:

string   $fileName  

[ Top ]

method uploadFile [line 230]

boolean uploadFile( string $localFileName, string $remoteFileName, [int $mode = FTP_BINARY], [boolean $asynchronously = false])

Uploads file on the FTP server



Tags:

access:  public


Parameters:

string   $localFileName  
string   $remoteFileName  
int   $mode  
boolean   $asynchronously  

[ Top ]


Documentation generated on Sat, 17 Apr 2010 22:05:44 +0300 by phpDocumentor 1.4.3