PHP Интерфейс PiPHP\GPIO\FileSystem\FileSystemInterface

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

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

Метод Описание
getContents ( string $path ) : string Read the contents of a file.
open ( string $path, string $mode ) : resource Open a file.
putContents ( string $path, string $buffer ) : integer Write a buffer to a file.

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

getContents() публичный Метод

Read the contents of a file.
public getContents ( string $path ) : string
$path string The path of the file to read
Результат string The file contents

open() публичный Метод

Open a file.
public open ( string $path, string $mode ) : resource
$path string The path of the file to open
$mode string The mode to open the file in (see fopen())
Результат resource A stream resource.

putContents() публичный Метод

Write a buffer to a file.
public putContents ( string $path, string $buffer ) : integer
$path string The path of the file to write to
$buffer string The buffer to write
Результат integer The number of bytes written