C# Class Pchp.Core.PhpAlias

Inheritance: IPhpConvertible
显示文件 Open project: iolevel/peachpie Class Usage Examples

Public Properties

Property Type Description
Value PhpValue

Public Methods

Method Description
AddRef ( ) : void
EnsureArray ( ) : IPhpArray

Ensures the underlaying value is an array and gets its instance. Cannot be null.

EnsureObject ( ) : object

Ensures the underlaying value is an object and gets its instance. Cannot be null.

PhpAlias ( PhpValue value, int refcount = 1 ) : System

Creates an aliased value.

ReleaseRef ( ) : void
ToBoolean ( ) : bool
ToClass ( ) : object
ToDouble ( ) : double
ToLong ( ) : long
ToNumber ( PhpNumber &number ) : Convert.NumberInfo
ToString ( Context ctx ) : string
ToStringOrThrow ( Context ctx ) : string

Method Details

AddRef() public method

public AddRef ( ) : void
return void

EnsureArray() public method

Ensures the underlaying value is an array and gets its instance. Cannot be null.
public EnsureArray ( ) : IPhpArray
return IPhpArray

EnsureObject() public method

Ensures the underlaying value is an object and gets its instance. Cannot be null.
public EnsureObject ( ) : object
return object

PhpAlias() public method

Creates an aliased value.
public PhpAlias ( PhpValue value, int refcount = 1 ) : System
value PhpValue
refcount int
return System

ReleaseRef() public method

public ReleaseRef ( ) : void
return void

ToBoolean() public method

public ToBoolean ( ) : bool
return bool

ToClass() public method

public ToClass ( ) : object
return object

ToDouble() public method

public ToDouble ( ) : double
return double

ToLong() public method

public ToLong ( ) : long
return long

ToNumber() public method

public ToNumber ( PhpNumber &number ) : Convert.NumberInfo
number PhpNumber
return Convert.NumberInfo

ToString() public method

public ToString ( Context ctx ) : string
ctx Context
return string

ToStringOrThrow() public method

public ToStringOrThrow ( Context ctx ) : string
ctx Context
return string

Property Details

Value public_oe property

Gets or sets the underlaying value.
The field is not wrapped into a property, some internals need to access the raw field.
public PhpValue,Pchp.Core Value
return PhpValue