PHP Class ftp\File

Represents an FTP file.
Show file Open project: prggmr/xpspl

Protected Properties

Property Type Description
$_name string Filename
$_path string Full path to the file.
$_transfer_mode integer Mode the file must be transfered in.

Public Methods

Method Description
__construct ( string $name, $mode = FTP_BINARY ) : void Constructs a new file.
get_full_path ( ) : string Returns the full path.
get_name ( ) : string Returns the filename.
get_path ( ) : string Returns the file path.
get_transfer_mode ( ) : integer Returns the transfer mode.

Method Details

__construct() public method

Constructs a new file.
public __construct ( string $name, $mode = FTP_BINARY ) : void
$name string Filename
return void

get_full_path() public method

Returns the full path.
public get_full_path ( ) : string
return string

get_name() public method

Returns the filename.
public get_name ( ) : string
return string

get_path() public method

Returns the file path.
public get_path ( ) : string
return string

get_transfer_mode() public method

Returns the transfer mode.
public get_transfer_mode ( ) : integer
return integer

Property Details

$_name protected property

Filename
protected string $_name
return string

$_path protected property

Full path to the file.
protected string $_path
return string

$_transfer_mode protected property

Mode the file must be transfered in.
protected int $_transfer_mode
return integer