C# Class Pchp.Core.Operators

Exibir arquivo Open project: iolevel/peachpie Class Usage Examples

Public Methods

Method Description
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.

Private Methods

Method Description
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.

Method Details

DeepCopy() public static method

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

EnsureArray() public static method

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

EnsureArray() public static method

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

EnsureObject() public static method

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

GetForeachEnumerator() public static method

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

IsEmpty() public static method

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

IsSet() public static method

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

SetValue() public static method

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.
return void

SetValue() public static method

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.
return void