Documentation
¶
Index ¶
- Variables
- func Throw(o *ZObject) error
- func ThrowException(ctx phpv.Context, l *phpv.Loc, msg phpv.ZString, code phpv.ZInt) error
- type NativeMethod
- type ZClass
- func (c *ZClass) BaseName() phpv.ZString
- func (c *ZClass) Compile(ctx phpv.Context) error
- func (c *ZClass) Dump(w io.Writer) error
- func (c *ZClass) GetMethod(name phpv.ZString) (*phpv.ZClassMethod, bool)
- func (c *ZClass) GetName() phpv.ZString
- func (c *ZClass) GetParent() phpv.ZClass
- func (c *ZClass) GetStaticProps(ctx phpv.Context) (*phpv.ZHashTable, error)
- func (c *ZClass) Handlers() *phpv.ZClassHandlers
- func (c *ZClass) InstanceOf(subc phpv.ZClass) bool
- func (c *ZClass) Run(ctx phpv.Context) (*phpv.ZVal, error)
- type ZObject
- func (z *ZObject) AsVal(ctx phpv.Context, t phpv.ZType) (phpv.Val, error)
- func (z *ZObject) Clone() (phpv.ZObject, error)
- func (a *ZObject) Count(ctx phpv.Context) phpv.ZInt
- func (a *ZObject) GetClass() phpv.ZClass
- func (o *ZObject) GetMethod(method phpv.ZString, ctx phpv.Context) (phpv.Callable, error)
- func (z *ZObject) GetOpaque(c phpv.ZClass) interface{}
- func (z *ZObject) GetType() phpv.ZType
- func (a *ZObject) HashTable() *phpv.ZHashTable
- func (o *ZObject) NewIterator() phpv.ZIterator
- func (o *ZObject) ObjectGet(ctx phpv.Context, key phpv.Val) (*phpv.ZVal, error)
- func (o *ZObject) ObjectSet(ctx phpv.Context, key phpv.Val, value *phpv.ZVal) error
- func (o *ZObject) OffsetSet(key, value *phpv.ZVal) (*phpv.ZVal, error)
- func (z *ZObject) SetOpaque(c phpv.ZClass, v interface{})
- func (a *ZObject) String() string
- func (a *ZObject) Value() phpv.Val
- func (z *ZObject) ZVal() *phpv.ZVal
Constants ¶
This section is empty.
Variables ¶
View Source
var ArrayAccess = &ZClass{ Type: phpv.ZClassTypeInterface, Name: "ArrayAccess", }
> class ArrayAccess
View Source
var Exception = &ZClass{ Name: "Exception", Implements: []*ZClass{Throwable}, Methods: map[phpv.ZString]*phpv.ZClassMethod{ "__construct": &phpv.ZClassMethod{Name: "__construct", Method: NativeMethod(exceptionConstruct)}, }, }
> class Exception
View Source
var Iterator = &ZClass{ Type: phpv.ZClassTypeInterface, Name: "Iterator", Extends: Traversable, }
> class Iterator
View Source
var IteratorAggregate = &ZClass{ Type: phpv.ZClassTypeInterface, Name: "IteratorAggregate", Extends: Traversable, }
> class IteratorAggregate
View Source
var Serializable = &ZClass{ Type: phpv.ZClassTypeInterface, Name: "Serializable", }
> class Serializable
View Source
var StdClass = &ZClass{
Name: "stdClass",
}
> class StdClass
View Source
var Throwable = &ZClass{
Name: "Throwable",
}
> class Throwable
View Source
var Traversable = &ZClass{ Type: phpv.ZClassTypeInterface, Name: "Traversable", }
> class Traversable
Functions ¶
Types ¶
type NativeMethod ¶
type ZClass ¶
type ZClass struct { Name phpv.ZString L *phpv.Loc Type phpv.ZClassType Attr phpv.ZClassAttr // string value of extend & implement (used previous to lookup) ExtendsStr phpv.ZString ImplementsStr []phpv.ZString Extends *ZClass Implements []*ZClass Const map[phpv.ZString]phpv.Val // class constants Props []*phpv.ZClassProp Methods map[phpv.ZString]*phpv.ZClassMethod StaticProps *phpv.ZHashTable // class specific handlers H *phpv.ZClassHandlers // contains filtered or unexported fields }
func (*ZClass) GetStaticProps ¶
func (*ZClass) Handlers ¶
func (c *ZClass) Handlers() *phpv.ZClassHandlers
type ZObject ¶
type ZObject struct { Class phpv.ZClass // for use with custom extension objects Opaque map[phpv.ZClass]interface{} // contains filtered or unexported fields }
func NewZObjectOpaque ¶
func SpawnException ¶
func (*ZObject) HashTable ¶
func (a *ZObject) HashTable() *phpv.ZHashTable
func (*ZObject) NewIterator ¶
Click to show internal directories.
Click to hide internal directories.