C# Class Pchp.Core.Operators

Afficher le fichier Open project: iolevel/peachpie Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

Gets copy of given value.
public static DeepCopy ( PhpValue value ) : PhpValue
value PhpValue
Résultat PhpValue

EnsureArray() public static méthode

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

EnsureArray() public static méthode

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

EnsureObject() public static méthode

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

GetForeachEnumerator() public static méthode

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

IsEmpty() public static méthode

Implements empty operator.
public static IsEmpty ( PhpValue value ) : bool
value PhpValue
Résultat bool

IsSet() public static méthode

Implementation of PHP isset operator.
public static IsSet ( PhpValue value ) : bool
value PhpValue
Résultat bool

SetValue() public static méthode

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.
Résultat void

SetValue() public static méthode

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.
Résultat void