PHP 클래스 FtpSource, cakephp-ftp

상속: extends DataSource
파일 보기 프로젝트 열기: fotografde/cakephp-ftp

공개 프로퍼티들

프로퍼티 타입 설명
$config array config
$description string description

보호된 프로퍼티들

프로퍼티 타입 설명
$_schema array _schema Default schema

공개 메소드들

메소드 설명
__construct ( array $config ) __construct
__destruct ( ) __destruct Quits
calculate ( Object $model, mixed $func, array $params = [] ) : array calculate
connect ( array $config = [] ) : boolean connect
console ( string $cmd = null ) : string console
create ( Model $model, array $fields = null, array $values = null ) : boolean create Upload/Download
delete ( Model $model, str $file = null ) : boolean delete Deletes a remote file
describe ( obj $model ) describe Dynamically describes _schema
init ( array $config = [] ) : boolean init Merges config
listSources ( $data = null ) listSources
query ( string $query = null, array $data = null ) : mixed query Provides an interface to datasource methods.
quit ( ) : boolean quit Closes and cleans up
read ( Model $model, array $queryData = [], $recursive = null ) : array read Find files on remote server
update ( Model $model, array $fields = null, array $values = null, array $conditions = null ) : boolean update Upload/Download after find

보호된 메소드들

메소드 설명
_chmodnum ( string $chmod ) : string _chmodnum
_ftp ( string $method = null, array $params = [] ) _ftp Wrapper for FTP methods for testing
_getFtp ( string $host, integer $port = 22 ) : Net_SFTP FtpSource::_getFtp()
_parseSSH ( $rawlist = [], string $path = '' ) : array _parseSSH Normalizes the results from SFTP->rawlist
_parsels ( mixed $ls = null, string $path = '' ) : array _parsels Parses results from ls command into array
getAbsolutePath ( string $path ) : string An realpath() implementaion without needing local file/dir existance

메소드 상세

__construct() 공개 메소드

__construct
public __construct ( array $config )
$config array

__destruct() 공개 메소드

__destruct Quits
public __destruct ( )

_chmodnum() 보호된 메소드

_chmodnum
저자: tmp at gmx dot de
protected _chmodnum ( string $chmod ) : string
$chmod string
리턴 string

_ftp() 보호된 메소드

_ftp Wrapper for FTP methods for testing
protected _ftp ( string $method = null, array $params = [] )
$method string
$params array

_getFtp() 보호된 메소드

Allows mocking of the ssh ftp class.
protected _getFtp ( string $host, integer $port = 22 ) : Net_SFTP
$host string
$port integer
리턴 Net_SFTP Instance

_parseSSH() 보호된 메소드

_parseSSH Normalizes the results from SFTP->rawlist
protected _parseSSH ( $rawlist = [], string $path = '' ) : array
$path string
리턴 array

_parsels() 보호된 메소드

You can override this in your Model by adding the method parseFtpResults($raw = array(), $path = null, $config = array()) : array()
protected _parsels ( mixed $ls = null, string $path = '' ) : array
$ls mixed
$path string
리턴 array

calculate() 공개 메소드

calculate
public calculate ( Object $model, mixed $func, array $params = [] ) : array
$model Object
$func mixed
$params array
리턴 array

connect() 공개 메소드

connect
public connect ( array $config = [] ) : boolean
$config array
리턴 boolean

console() 공개 메소드

console
public console ( string $cmd = null ) : string
$cmd string
리턴 string

create() 공개 메소드

create Upload/Download
public create ( Model $model, array $fields = null, array $values = null ) : boolean
$model Model
$fields array
$values array
리턴 boolean

delete() 공개 메소드

delete Deletes a remote file
public delete ( Model $model, str $file = null ) : boolean
$model Model
$file str
리턴 boolean

describe() 공개 메소드

describe Dynamically describes _schema
public describe ( obj $model )
$model obj

getAbsolutePath() 보호된 메소드

An realpath() implementaion without needing local file/dir existance
protected getAbsolutePath ( string $path ) : string
$path string
리턴 string

init() 공개 메소드

init Merges config
public init ( array $config = [] ) : boolean
$config array
리턴 boolean

listSources() 공개 메소드

listSources
public listSources ( $data = null )

query() 공개 메소드

query Provides an interface to datasource methods.
public query ( string $query = null, array $data = null ) : mixed
$query string
$data array
리턴 mixed

quit() 공개 메소드

quit Closes and cleans up
public quit ( ) : boolean
리턴 boolean

read() 공개 메소드

read Find files on remote server
public read ( Model $model, array $queryData = [], $recursive = null ) : array
$model Model
$queryData array
리턴 array

update() 공개 메소드

update Upload/Download after find
public update ( Model $model, array $fields = null, array $values = null, array $conditions = null ) : boolean
$model Model
$fields array
$values array
$conditions array
리턴 boolean

프로퍼티 상세

$_schema 보호되어 있는 프로퍼티

_schema Default schema
protected array $_schema
리턴 array

$config 공개적으로 프로퍼티

config
public array $config
리턴 array

$description 공개적으로 프로퍼티

description
public string $description
리턴 string