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

Resource type used for associating additional options with stream wrappers.
Stream Contexts are stored in a Resource to save useless deep-copying of the contained constant array.
상속: Pchp.Core.PhpResource
파일 보기 프로젝트 열기: iolevel/peachpie 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
Default StreamContext

보호된 프로퍼티들

프로퍼티 타입 설명
_data Pchp.Core.PhpArray
_parameters Pchp.Core.PhpArray

공개 메소드들

메소드 설명
GetOption ( string scheme, string option ) : PhpValue

Gets a wrapper-specific option identified by the scheme and the option name.

GetValid ( PhpResource resource ) : StreamContext

Checks the context for validity, throws a warning it is not.

GetValid ( PhpResource resource, bool allowNull ) : StreamContext

Checks the context for validity, throws a warning it is not.

StreamContext ( ) : Pchp.Core

Create an empty StreamContext (allows lazy PhpArray instantiation).

StreamContext ( PhpArray data ) : Pchp.Core

Create a new context resource from an array of wrapper options.

비공개 메소드들

메소드 설명
StreamContext ( PhpArray data, bool registerInCtx ) : Pchp.Core

Create a new context resource from an array of wrapper options.

메소드 상세

GetOption() 공개 메소드

Gets a wrapper-specific option identified by the scheme and the option name.
public GetOption ( string scheme, string option ) : PhpValue
scheme string The target wrapper scheme.
option string The option name.
리턴 Pchp.Core.PhpValue

GetValid() 공개 정적인 메소드

Checks the context for validity, throws a warning it is not.
In case the context is invalid.
public static GetValid ( PhpResource resource ) : StreamContext
resource Pchp.Core.PhpResource Resource which should contain a StreamContext.
리턴 StreamContext

GetValid() 공개 정적인 메소드

Checks the context for validity, throws a warning it is not.
In case the context is invalid.
public static GetValid ( PhpResource resource, bool allowNull ) : StreamContext
resource Pchp.Core.PhpResource Resource which should contain a StreamContext.
allowNull bool True to allow NULL context, that will be without any warning converted to Default .
리턴 StreamContext

StreamContext() 공개 메소드

Create an empty StreamContext (allows lazy PhpArray instantiation).
public StreamContext ( ) : Pchp.Core
리턴 Pchp.Core

StreamContext() 공개 메소드

Create a new context resource from an array of wrapper options.
public StreamContext ( PhpArray data ) : Pchp.Core
data Pchp.Core.PhpArray A 2-dimensional array of wrapper options
리턴 Pchp.Core

프로퍼티 상세

Default 공개적으로 정적으로 프로퍼티

Default StreamContext. Cannot be null.
public static StreamContext,Pchp.Library.Streams Default
리턴 StreamContext

_data 보호되어 있는 프로퍼티

protected PhpArray,Pchp.Core _data
리턴 Pchp.Core.PhpArray

_parameters 보호되어 있는 프로퍼티

protected PhpArray,Pchp.Core _parameters
리턴 Pchp.Core.PhpArray