PHP 클래스 FOF30\Utils\Buffer

파일 보기 프로젝트 열기: akeeba/fof 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$buffers array Buffer hash
$canRegisterWrapper
$name string Buffer name
$position integer Stream position

공개 메소드들

메소드 설명
canRegisterWrapper ( ) : boolean Should I register the fof:// stream wrapper
stream_eof ( ) : boolean Function to test for end of file pointer
stream_open ( string $path, string $mode, integer $options, &$opened_path ) : boolean Function to open file or url
stream_read ( integer $count ) : mixed Read stream
stream_seek ( integer $offset, integer $whence ) : boolean The read write position updates in response to $offset and $whence
stream_stat ( )
stream_tell ( ) : integer Function to get the current position of the stream
stream_write ( string $data ) : integer Write stream
unlink ( $path )

메소드 상세

canRegisterWrapper() 공개 정적인 메소드

Should I register the fof:// stream wrapper
public static canRegisterWrapper ( ) : boolean
리턴 boolean True if the stream wrapper can be registered

stream_eof() 공개 메소드

Function to test for end of file pointer
또한 보기: streamWrapper::stream_eof
부터: 11.1
public stream_eof ( ) : boolean
리턴 boolean True if the pointer is at the end of the stream

stream_open() 공개 메소드

Function to open file or url
또한 보기: streamWrapper::stream_open
public stream_open ( string $path, string $mode, integer $options, &$opened_path ) : boolean
$path string The URL that was passed
$mode string Mode used to open the file @see fopen
$options integer Flags used by the API, may be STREAM_USE_PATH and STREAM_REPORT_ERRORS
리턴 boolean

stream_read() 공개 메소드

Read stream
또한 보기: streamWrapper::stream_read
부터: 11.1
public stream_read ( integer $count ) : mixed
$count integer How many bytes of data from the current position should be returned.
리턴 mixed The data from the stream up to the specified number of bytes (all data if the total number of bytes in the stream is less than $count. Null if the stream is empty.

stream_seek() 공개 메소드

The read write position updates in response to $offset and $whence
또한 보기: streamWrapper::stream_seek
부터: 11.1
public stream_seek ( integer $offset, integer $whence ) : boolean
$offset integer The offset in bytes
$whence integer Position the offset is added to Options are SEEK_SET, SEEK_CUR, and SEEK_END
리턴 boolean True if updated

stream_stat() 공개 메소드

public stream_stat ( )

stream_tell() 공개 메소드

Function to get the current position of the stream
또한 보기: streamWrapper::stream_tell
부터: 11.1
public stream_tell ( ) : integer
리턴 integer

stream_write() 공개 메소드

Write stream
또한 보기: streamWrapper::stream_write
부터: 11.1
public stream_write ( string $data ) : integer
$data string The data to write to the stream.
리턴 integer

프로퍼티 상세

$buffers 공개적으로 정적으로 프로퍼티

Buffer hash
public static array $buffers
리턴 array

$canRegisterWrapper 공개적으로 정적으로 프로퍼티

public static $canRegisterWrapper

$name 공개적으로 프로퍼티

Buffer name
public string $name
리턴 string

$position 공개적으로 프로퍼티

Stream position
public int $position
리턴 integer