baserCMS クラスリファレンス

BcFile
in package

Table of Contents

Properties

$path  : string
パス

Methods

__construct()  : mixed
Constructor
close()  : void
close
create()  : bool
ファイルを作成する
delete()  : bool
ファイルを削除
getPath()  : string
パスを取得する
read()  : false|string
ファイルを読み込む
size()  : bool
ファイルのサイズを取得
write()  : bool
ファイルを書き込む
checkParentFolder()  : bool
親フォルダが存在するかチェックし、存在しない場合は作成する

Properties

$path

パス

private string $path

Methods

__construct()

Constructor

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

close()

close

public close() : void

since 5.1.0 後方互換用に配置

create()

ファイルを作成する

public create() : bool
Tags
checked
noTodo
unitTest
Return values
bool

delete()

ファイルを削除

public delete() : bool
Return values
bool

getPath()

パスを取得する

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

read()

ファイルを読み込む

public read() : false|string
Return values
false|string

size()

ファイルのサイズを取得

public size() : bool
Return values
bool

write()

ファイルを書き込む

public write(mixed $data) : bool
Parameters
$data : mixed
Return values
bool

checkParentFolder()

親フォルダが存在するかチェックし、存在しない場合は作成する

private checkParentFolder() : bool
Return values
bool

        
On this page

Search results