baserCMS クラスリファレンス

BcFile
in package

Table of Contents

Properties

$path  : string
パス

Methods

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

Properties

$path

パス

private string $path

Methods

__construct()

Constructor

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

create()

ファイルを作成する

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

getPath()

パスを取得する

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

read()

ファイルを読み込む

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

write()

ファイルを書き込む

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

checkParentFolder()

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

private checkParentFolder() : bool
Return values
bool

        
On this page

Search results