PHP 클래스 WP_Filesystem_MockFS

상속: extends WP_Filesystem_Base
파일 보기 프로젝트 열기: lucatume/wp-browser

공개 프로퍼티들

프로퍼티 타입 설명
$errors Holds a array of objects which contain an array of objects, etc.
$method a fast more efficient way of determining if a path exists, and access to that node
$verbose

공개 메소드들

메소드 설명
__construct ( )
abspath ( $path = false ) Copy of core's function, but accepts a path.
chdir ( $path )
connect ( )
cwd ( )
dirlist ( $path = '.', $include_hidden = true, $recursive = false )
exists ( $path )
get_contents ( $file )
init ( $paths = '', $home_dir = '/' ) Sets initial filesystem environment and/or clears the current environment.
is_dir ( $path ) Mock FS specific functions:
is_file ( $file )
mkdir ( $path, $chmod = false, $chown = false, $chgrp = false )
put_contents ( $path, $contents = '', $mode = null )
setfs ( $paths ) "Bulk Loads" a filesystem into the internal virtual filesystem

비공개 메소드들

메소드 설명
locate_node ( $path ) Locates a filesystem "node"
locate_parent_node ( $path ) Locates a filesystem node for the parent of the given item

메소드 상세

__construct() 공개 메소드

public __construct ( )

abspath() 공개 메소드

Copy of core's function, but accepts a path.
public abspath ( $path = false )

chdir() 공개 메소드

public chdir ( $path )

connect() 공개 메소드

public connect ( )

cwd() 공개 메소드

public cwd ( )

dirlist() 공개 메소드

public dirlist ( $path = '.', $include_hidden = true, $recursive = false )

exists() 공개 메소드

public exists ( $path )

get_contents() 공개 메소드

public get_contents ( $file )

init() 공개 메소드

Can also be passed the initial filesystem to be setup which is passed to self::setfs()
public init ( $paths = '', $home_dir = '/' )

is_dir() 공개 메소드

Mock FS specific functions:
public is_dir ( $path )

is_file() 공개 메소드

public is_file ( $file )

mkdir() 공개 메소드

public mkdir ( $path, $chmod = false, $chown = false, $chgrp = false )

put_contents() 공개 메소드

public put_contents ( $path, $contents = '', $mode = null )

setfs() 공개 메소드

"Bulk Loads" a filesystem into the internal virtual filesystem
public setfs ( $paths )

프로퍼티 상세

$errors 공개적으로 프로퍼티

Holds a array of objects which contain an array of objects, etc.
public $errors

$method 공개적으로 프로퍼티

a fast more efficient way of determining if a path exists, and access to that node
public $method

$verbose 공개적으로 프로퍼티

public $verbose