downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

streamWrapper> <php_user_filter::onClose
[edit] Last updated: Fri, 24 May 2013

view this page in

php_user_filter::onCreate

(PHP 5)

php_user_filter::onCreateCalled when creating the filter

Descrierea

public bool php_user_filter::onCreate ( void )

This method is called during instantiation of the filter class object. If your filter allocates or initializes any other resources (such as a buffer), this is the place to do it.

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.

Parametri

Această funcție nu are parametri.

Valorile întoarse

Your implementation of this method should return FALSE on failure, or TRUE on success.



add a note add a note User Contributed Notes php_user_filter::onCreate - [0 notes]
There are no user contributed notes for this page.

 
show source | credits | sitemap | contact | advertising | mirror sites