PHP Интерфейс Lazer\Classes\Helpers\FileInterface

Показать файл Открыть проект

Открытые методы

Метод Описание
exists ( ) : boolean Checking that file exists
get ( boolean $assoc = false ) : mixed Return decoded JSON
getPath ( ) : string Returning path to file
put ( object | array $data ) : boolean Saving encoded JSON to file
remove ( ) : boolean Removing file
setType ( string $type ) Set the file type
table ( string $name ) : File Setting name of table

Описание методов

exists() публичный метод

Checking that file exists
public exists ( ) : boolean
Результат boolean

get() публичный метод

Return decoded JSON
public get ( boolean $assoc = false ) : mixed
$assoc boolean Returns object if false; array if true
Результат mixed (object|array)

getPath() публичный метод

Returning path to file
public getPath ( ) : string
Результат string Path to file

put() публичный метод

Saving encoded JSON to file
public put ( object | array $data ) : boolean
$data object | array
Результат boolean

remove() публичный метод

Removing file
public remove ( ) : boolean
Результат boolean

setType() публичный метод

Set the file type
public setType ( string $type )
$type string File type (data|config)

table() публичный статический метод

Setting name of table
public static table ( string $name ) : File
$name string
Результат File