Documentation
¶
Index ¶
- Variables
- func ThrowException(ctx phpv.Context, l *phpv.Loc, msg phpv.ZString, code phpv.ZInt) error
- func ThrowObject(ctx phpv.Context, v *phpv.ZVal) error
- type NativeMethod
- func (m NativeMethod) AsVal(ctx phpv.Context, t phpv.ZType) (phpv.Val, error)
- func (m NativeMethod) Call(ctx phpv.Context, args []*phpv.ZVal) (*phpv.ZVal, error)
- func (m NativeMethod) GetType() phpv.ZType
- func (m NativeMethod) Name() string
- func (m NativeMethod) String() string
- func (m NativeMethod) Value() phpv.Val
- func (m NativeMethod) ZVal() *phpv.ZVal
- 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) GetProp(name phpv.ZString) (*phpv.ZClassProp, bool)
- func (c *ZClass) GetStaticProps(ctx phpv.Context) (*phpv.ZHashTable, error)
- func (c *ZClass) Handlers() *phpv.ZClassHandlers
- func (c *ZClass) Implements(class phpv.ZClass) bool
- func (c *ZClass) InstanceOf(parentClass phpv.ZClass) bool
- func (c *ZClass) NextInstanceID() int
- func (c *ZClass) Run(ctx phpv.Context) (*phpv.ZVal, error)
- type ZObject
- func CreateZObject(ctx phpv.Context, c phpv.ZClass) (*ZObject, error)
- func NewZObject(ctx phpv.Context, c phpv.ZClass, args ...*phpv.ZVal) (*ZObject, error)
- func NewZObjectOpaque(ctx phpv.Context, c phpv.ZClass, v interface{}) (*ZObject, error)
- func SpawnException(ctx phpv.Context, l *phpv.Loc, msg phpv.ZString, code phpv.ZInt, prev *ZObject) (*ZObject, error)
- func (z *ZObject) AsVal(ctx phpv.Context, t phpv.ZType) (phpv.Val, error)
- func (z *ZObject) Clone(ctx phpv.Context) (phpv.ZObject, error)
- func (a *ZObject) Count(ctx phpv.Context) phpv.ZInt
- func (a *ZObject) GetClass() phpv.ZClass
- func (z *ZObject) GetKin(className string) phpv.ZObject
- func (o *ZObject) GetMethod(method phpv.ZString, ctx phpv.Context) (phpv.Callable, error)
- func (z *ZObject) GetOpaque(c phpv.ZClass) interface{}
- func (z *ZObject) GetParent() phpv.ZObject
- func (z *ZObject) GetType() phpv.ZType
- func (o *ZObject) HasProp(ctx phpv.Context, key phpv.Val) (bool, error)
- func (a *ZObject) HashTable() *phpv.ZHashTable
- func (o *ZObject) IterProps(ctx phpv.Context) iter.Seq[*phpv.ZClassProp]
- 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(ctx phpv.Context, key, value *phpv.ZVal) (*phpv.ZVal, error)
- func (z *ZObject) SetOpaque(c phpv.ZClass, v interface{})
- func (a *ZObject) String() string
- func (z *ZObject) Unwrap() phpv.ZObject
- 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 IncompleteClass = &ZClass{
Name: "__PHP_Incomplete_Class",
}
> class __PHP_Incomplete_Class
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 ¶
func ThrowException ¶
Types ¶
type NativeMethod ¶
func (NativeMethod) GetType ¶
func (m NativeMethod) GetType() phpv.ZType
func (NativeMethod) Name ¶
func (m NativeMethod) Name() string
func (NativeMethod) String ¶
func (m NativeMethod) String() string
func (NativeMethod) Value ¶
func (m NativeMethod) Value() phpv.Val
func (NativeMethod) ZVal ¶
func (m NativeMethod) ZVal() *phpv.ZVal
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 Implementations []*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 }
var Exception *ZClass
> class Exception
func (*ZClass) GetStaticProps ¶
func (*ZClass) Handlers ¶
func (c *ZClass) Handlers() *phpv.ZClassHandlers
func (*ZClass) NextInstanceID ¶
type ZObject ¶
type ZObject struct { Class phpv.ZClass CurrentClass phpv.ZClass // for use with custom extension objects Opaque map[phpv.ZClass]interface{} ID int // contains filtered or unexported fields }
func CreateZObject ¶
Similar to NewZObject, but without calling the constructor
func NewZObject ¶
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.