C# 클래스 Pchp.Core.Operators

파일 보기 프로젝트 열기: iolevel/peachpie 1 사용 예제들

공개 메소드들

메소드 설명
DeepCopy ( PhpValue value ) : PhpValue

Gets copy of given value.

EnsureArray ( IPhpArray &arr ) : IPhpArray

Ensures given variable is not null.

EnsureArray ( PhpArray &arr ) : PhpArray

Ensures given variable is not null.

EnsureObject ( object &obj ) : object

Ensures given variable is not null.

GetForeachEnumerator ( PhpValue value, bool aliasedValues, RuntimeTypeHandle caller ) : IPhpEnumerator

Gets enumerator object for given value.

IsEmpty ( PhpValue value ) : bool

Implements empty operator.

IsSet ( PhpValue value ) : bool

Implementation of PHP isset operator.

SetValue ( PhpAlias target, PhpValue value ) : void

Assigns a PHP value to an aliased place.

SetValue ( PhpValue &target, PhpValue value ) : void

Assigns a PHP value according to the PHP semantics.

비공개 메소드들

메소드 설명
BitAnd ( PhpValue &x, PhpValue &y ) : PhpValue

Performs bitwise and operation.

BitNot ( PhpValue &x ) : PhpValue

Performs bitwise negation.

BitOr ( PhpValue &x, PhpValue &y ) : PhpValue

Performs bitwise or operation.

Div ( PhpValue &x, PhpValue &y ) : PhpNumber

Performs division according to PHP semantics.

The division operator ("/") returns a float value unless the two operands are integers (or strings that get converted to integers) and the numbers are evenly divisible, in which case an integer value will be returned.

메소드 상세

DeepCopy() 공개 정적인 메소드

Gets copy of given value.
public static DeepCopy ( PhpValue value ) : PhpValue
value PhpValue
리턴 PhpValue

EnsureArray() 공개 정적인 메소드

Ensures given variable is not null.
public static EnsureArray ( IPhpArray &arr ) : IPhpArray
arr IPhpArray
리턴 IPhpArray

EnsureArray() 공개 정적인 메소드

Ensures given variable is not null.
public static EnsureArray ( PhpArray &arr ) : PhpArray
arr PhpArray
리턴 PhpArray

EnsureObject() 공개 정적인 메소드

Ensures given variable is not null.
public static EnsureObject ( object &obj ) : object
obj object
리턴 object

GetForeachEnumerator() 공개 정적인 메소드

Gets enumerator object for given value.
public static GetForeachEnumerator ( PhpValue value, bool aliasedValues, RuntimeTypeHandle caller ) : IPhpEnumerator
value PhpValue
aliasedValues bool
caller System.RuntimeTypeHandle
리턴 IPhpEnumerator

IsEmpty() 공개 정적인 메소드

Implements empty operator.
public static IsEmpty ( PhpValue value ) : bool
value PhpValue
리턴 bool

IsSet() 공개 정적인 메소드

Implementation of PHP isset operator.
public static IsSet ( PhpValue value ) : bool
value PhpValue
리턴 bool

SetValue() 공개 정적인 메소드

Assigns a PHP value to an aliased place.
public static SetValue ( PhpAlias target, PhpValue value ) : void
target PhpAlias Target of the assignment.
value PhpValue Value to be assigned. Caller ensures the value is not an alias.
리턴 void

SetValue() 공개 정적인 메소드

Assigns a PHP value according to the PHP semantics.
public static SetValue ( PhpValue &target, PhpValue value ) : void
target PhpValue Target of the assignment.
value PhpValue Value to be assigned. Caller ensures the value is not an alias.
리턴 void