Joomla CMS
4.2.2
Documentation des API du CMS Joomla en version 4.2.2
|
Fonctions membres publiques | |
__toString () | |
close () | |
detach () | |
getSize () | |
tell () | |
eof () | |
isSeekable () | |
seek ($offset, $whence=SEEK_SET) | |
rewind () | |
isWritable () | |
write ($string) | |
isReadable () | |
read ($length) | |
getContents () | |
getMetadata ($key=null) | |
Describes a data stream.
Typically, an instance will wrap a PHP stream; this interface provides a wrapper around the most common operations, including serialization of the entire stream to a string.
__toString | ( | ) |
Reads all data from the stream into a string, from the beginning to end.
This method MUST attempt to seek to the beginning of the stream before reading data and read the stream until the end is reached.
Warning: This could attempt to load a large amount of data into memory.
This method MUST NOT raise an exception in order to conform with PHP's string casting operations.
Implémenté dans Stream, Stream, RelativeStream, CallbackStream, et PhpInputStream.
close | ( | ) |
Closes the stream and any underlying resources.
Implémenté dans Stream, Stream, RelativeStream, et CallbackStream.
detach | ( | ) |
Separates any underlying resources from the stream.
After the stream has been detached, the stream is in an unusable state.
Implémenté dans Stream, Stream, RelativeStream, et CallbackStream.
eof | ( | ) |
Returns true if the stream is at the end of the stream.
Implémenté dans Stream, Stream, RelativeStream, et CallbackStream.
getContents | ( | ) |
Returns the remaining contents in a string
Implémenté dans Stream, Stream, RelativeStream, et CallbackStream.
getMetadata | ( | $key = null | ) |
Get stream metadata as an associative array or retrieve a specific key.
The keys returned are identical to the keys returned from PHP's stream_get_meta_data() function.
Implémenté dans Stream, Stream, RelativeStream, et CallbackStream.
getSize | ( | ) |
Get the size of the stream if known.
Implémenté dans Stream, Stream, RelativeStream, et CallbackStream.
isReadable | ( | ) |
Returns whether or not the stream is readable.
Implémenté dans Stream, Stream, RelativeStream, et CallbackStream.
isSeekable | ( | ) |
Returns whether or not the stream is seekable.
Implémenté dans Stream, Stream, RelativeStream, et CallbackStream.
isWritable | ( | ) |
Returns whether or not the stream is writable.
Implémenté dans Stream, Stream, RelativeStream, CallbackStream, et PhpInputStream.
read | ( | $length | ) |
Read data from the stream.
int | $length | Read up to $length bytes from the object and return them. Fewer than $length bytes may be returned if underlying stream call returns fewer bytes. |
Implémenté dans Stream, Stream, RelativeStream, CallbackStream, et PhpInputStream.
rewind | ( | ) |
Seek to the beginning of the stream.
If the stream is not seekable, this method will raise an exception; otherwise, it will perform a seek(0).
Implémenté dans Stream, Stream, RelativeStream, et CallbackStream.
seek | ( | $offset, | |
$whence = SEEK_SET |
|||
) |
Seek to a position in the stream.
Implémenté dans Stream, Stream, RelativeStream, et CallbackStream.
tell | ( | ) |
Returns the current position of the file read/write pointer
Implémenté dans Stream, Stream, RelativeStream, et CallbackStream.
write | ( | $string | ) |
Write data to the stream.
string | $string | The string that is to be written. |
Implémenté dans Stream, Stream, RelativeStream, et CallbackStream.