php_user_filter
class php_user_filter (View source)
Children of this class are passed to stream_filter_register. Note that the __construct method is not called; instead, php_user_filter::onCreate should be used for initialization.
Properties
| $filtername | |||
| $params | |||
| $stream |
Methods
int
filter(resource $in, resource $out, int $consumed, bool $closing)
Called when applying the filter
bool
onCreate()
Called when creating the filter
void
onClose()
Called when closing the filter
bool
seek(int $offset, int $whence, int $chain)
No description
Details
int
filter(resource $in, resource $out, int $consumed, bool $closing)
Called when applying the filter
This method is called whenever data is read from or written to the attached stream (such as with fread or fwrite).