PHP Class Acacha\Llum\Filesystem\Filesystem

Mostrar archivo Open project: acacha/llum Class Usage Examples

Public Methods

Method Description
get ( $file ) Get file contents
make ( $file, $content ) Create file with provided content if not exists.
overwrite ( $file, $content ) Overwrite file with provided content.

Protected Methods

Method Description
put ( $file, $content ) : integer Put content in file.

Method Details

get() public method

Get file contents
public get ( $file )

make() public method

Create file with provided content if not exists.
public make ( $file, $content )
$file
$content

overwrite() public method

Overwrite file with provided content.
public overwrite ( $file, $content )
$file
$content

put() protected method

Put content in file.
protected put ( $file, $content ) : integer
$file
$content
return integer