C# 클래스 Pchp.Library.Streams.PhpFilter

Base class for PHP stream filters.
상속: IFilter
파일 보기 프로젝트 열기: iolevel/peachpie 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
parameters object

Private Properties

프로퍼티 타입 설명
GetFilter bool
MergeFilterNames Pchp.Core.PhpArray

공개 메소드들

메소드 설명
AddSystemFilter ( IFilterFactory factory ) : bool

Register a built-in stream filter factory.

AddUserFilter ( string filter, string classname ) : bool

Registers a user stream filter.

Filter ( Context ctx, TextElement input, bool closing ) : TextElement

Processes the input (either of type string or byte[]) data and returns the filtered data in one of the formats above or null.

GetFilterNames ( ) : PhpArray

Retrieves the list of registered filters.

OnClose ( ) : void

Called when the containig stream is being closed.

OnCreate ( ) : void

Called when the filter is attached to a stream.

PhpFilter ( object parameters ) : System

Creates a new instance of the PhpFilter.

비공개 메소드들

메소드 설명
GetFilter ( string filter, bool instantiate, PhpFilter &instance, object parameters ) : bool

Searches for a filter implementation in the known PhpFilter descendants.

MergeFilterNames ( ICollection filterList, PhpArray rv ) : PhpArray

Merges the individual string[] into one PhpArray (numeric keys).

메소드 상세

AddSystemFilter() 공개 정적인 메소드

Register a built-in stream filter factory.
public static AddSystemFilter ( IFilterFactory factory ) : bool
factory IFilterFactory The filter factory.
리턴 bool

AddUserFilter() 공개 정적인 메소드

Registers a user stream filter.
public static AddUserFilter ( string filter, string classname ) : bool
filter string The name of the filter (may contain wildcards).
classname string The PHP user class (derived from php_user_filter) implementing the filter.
리턴 bool

Filter() 공개 추상적인 메소드

Processes the input (either of type string or byte[]) data and returns the filtered data in one of the formats above or null.
public abstract Filter ( Context ctx, TextElement input, bool closing ) : TextElement
ctx Pchp.Core.Context
input TextElement
closing bool
리턴 TextElement

GetFilterNames() 공개 정적인 메소드

Retrieves the list of registered filters.
public static GetFilterNames ( ) : PhpArray
리턴 Pchp.Core.PhpArray

OnClose() 공개 메소드

Called when the containig stream is being closed.
public OnClose ( ) : void
리턴 void

OnCreate() 공개 메소드

Called when the filter is attached to a stream.
public OnCreate ( ) : void
리턴 void

PhpFilter() 공개 메소드

Creates a new instance of the PhpFilter.
public PhpFilter ( object parameters ) : System
parameters object The parameters.
리턴 System

프로퍼티 상세

parameters 보호되어 있는 프로퍼티

An additional mixed parameter passed at stream_filter_append/prepend.
protected object parameters
리턴 object