baserCMS クラスリファレンス

BcFolder
in package

Class BcFolder

Table of Contents

Properties

$path  : string
パス

Methods

__construct()  : mixed
Constructor
create()  : bool
ディレクトリを作成する
delete()  : mixed
ディレクトリを再帰的に削除する
getFiles()  : array<string|int, mixed>
ディレクトリ内のファイル一覧を取得する
getFolders()  : array<string|int, mixed>
ディレクトリ内のフォルダ一覧を取得する
getPath()  : string
パスを取得する

Properties

Methods

__construct()

Constructor

public __construct(string $path) : mixed
Parameters
$path : string
Tags
checked
noTodo
unitTest

create()

ディレクトリを作成する

public create([int $mask = 0777 ]) : bool
Parameters
$mask : int = 0777
Tags
checked
noTodo
unitTest
Return values
bool

delete()

ディレクトリを再帰的に削除する

public delete() : mixed
Tags
checked
noTodo
unitTest

getFiles()

ディレクトリ内のファイル一覧を取得する

public getFiles([array<string|int, mixed> $options = [] ]) : array<string|int, mixed>
Parameters
$options : array<string|int, mixed> = []
Tags
checked
noTodo
unitTest
Return values
array<string|int, mixed>

getFolders()

ディレクトリ内のフォルダ一覧を取得する

public getFolders([array<string|int, mixed> $options = [] ]) : array<string|int, mixed>
Parameters
$options : array<string|int, mixed> = []
Tags
checked
noTodo
unitTest
Return values
array<string|int, mixed>

getPath()

パスを取得する

public getPath() : string
Tags
checked
noTodo
unitTest
Return values
string

        
On this page

Search results