PHP: php_user_filter::onCreate - Manual
(PHP 5, PHP 7, PHP 8)
php_user_filter::onCreate โ Called when creating the filter
Description
public function php_user_filter::onCreate(): bool
When your filter is first instantiated, and
yourfilter->onCreate() is called, a number of properties
will be available as shown in the table below.
| Property | Contents |
|---|---|
FilterClass->filtername |
A string containing the name the filter was instantiated with. Filters may be registered under multiple names or under wildcards. Use this property to determine which name was used. |
FilterClass->params |
The contents of the params parameter passed
to stream_filter_append()
or stream_filter_prepend().
|
FilterClass->stream |
The stream resource being filtered. Maybe available only during
filter() calls when the
closing parameter is set to false.
|
Parameters
This function has no parameters.