PHP Класс WP_Filesystem_MockFS

Наследование: extends WP_Filesystem_Base
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
$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