PHP 클래스 Redaxscript\Directory

부터: 2.0.0
저자: Henry Ruhs
저자: Gary Aylward
파일 보기 프로젝트 열기: redaxmedia/redaxscript 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$_directory string name of the directory
$_directoryArray array array of the directory
$_directoryCache array static directory cache
$_excludeArray array files to be excluded

공개 메소드들

메소드 설명
clear ( ) clear the directory
create ( string $directory = null, integer $mode = 511 ) create the directory
getArray ( ) : array get the directory array
init ( string $directory = null, array $excludeArray = [] ) init the class
put ( string $path = null, string $content = null ) put content to file
remove ( string $path = null ) remove the path

보호된 메소드들

메소드 설명
_remove ( string $path = null ) remove the path
_scan ( string $directory = null ) : array scan the directory

메소드 상세

_remove() 보호된 메소드

remove the path
부터: 3.0.0
protected _remove ( string $path = null )
$path string name of the path

_scan() 보호된 메소드

scan the directory
부터: 2.0.0
protected _scan ( string $directory = null ) : array
$directory string name of the directory
리턴 array

clear() 공개 메소드

clear the directory
부터: 3.0.0
public clear ( )

create() 공개 메소드

create the directory
부터: 3.0.0
public create ( string $directory = null, integer $mode = 511 )
$directory string name of the directory
$mode integer file access mode

getArray() 공개 메소드

get the directory array
부터: 2.0.0
public getArray ( ) : array
리턴 array

init() 공개 메소드

init the class
부터: 2.4.0
public init ( string $directory = null, array $excludeArray = [] )
$directory string name of the directory
$excludeArray array files to be excluded

put() 공개 메소드

put content to file
부터: 3.0.0
public put ( string $path = null, string $content = null )
$path string name of the path
$content string content of the file

remove() 공개 메소드

remove the path
부터: 3.0.0
public remove ( string $path = null )
$path string name of the $path

프로퍼티 상세

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

name of the directory
protected string $_directory
리턴 string

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

array of the directory
protected array $_directoryArray
리턴 array

$_directoryCache 보호되어 있는 정적으로 프로퍼티

static directory cache
protected static array $_directoryCache
리턴 array

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

files to be excluded
protected array $_excludeArray
리턴 array