PHP 인터페이스 PiPHP\GPIO\FileSystem\FileSystemInterface

파일 보기 프로젝트 열기: piphp/gpio

공개 메소드들

메소드 설명
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