Documentation ¶
Index ¶
- Constants
- func Debug(value bool)
- func PhpValueBool(p PhpValue) (res bool)
- func PhpValueFloat64(p PhpValue) (res float64)
- func PhpValueInt(p PhpValue) (res int)
- func PhpValueInt64(p PhpValue) (res int64)
- func PhpValueString(p PhpValue) (res string)
- func PhpValueUInt(p PhpValue) (res uint)
- func PhpValueUInt64(p PhpValue) (res uint64)
- func Serialize(v PhpValue) (string, error)
- type PhpArray
- type PhpObject
- func (self *PhpObject) GetClassName() string
- func (self *PhpObject) GetMembers() PhpArray
- func (self *PhpObject) GetPrivate(name string) (v PhpValue, ok bool)
- func (self *PhpObject) GetProtected(name string) (v PhpValue, ok bool)
- func (self *PhpObject) GetPublic(name string) (v PhpValue, ok bool)
- func (self *PhpObject) SetClassName(name string) *PhpObject
- func (self *PhpObject) SetMembers(members PhpArray) *PhpObject
- func (self *PhpObject) SetPrivate(name string, value PhpValue) *PhpObject
- func (self *PhpObject) SetProtected(name string, value PhpValue) *PhpObject
- func (self *PhpObject) SetPublic(name string, value PhpValue) *PhpObject
- type PhpObjectSerialized
- func (self *PhpObjectSerialized) GetClassName() string
- func (self *PhpObjectSerialized) GetData() string
- func (self *PhpObjectSerialized) GetValue() PhpValue
- func (self *PhpObjectSerialized) SetClassName(name string) *PhpObjectSerialized
- func (self *PhpObjectSerialized) SetData(data string) *PhpObjectSerialized
- func (self *PhpObjectSerialized) SetValue(value PhpValue) *PhpObjectSerialized
- type PhpSlice
- type PhpSplArray
- type PhpValue
- type SerializedDecodeFunc
- type SerializedEncodeFunc
- type Serializer
- type UnSerializer
Constants ¶
View Source
const ( TOKEN_NULL rune = 'N' TOKEN_BOOL rune = 'b' TOKEN_INT rune = 'i' TOKEN_FLOAT rune = 'd' TOKEN_STRING rune = 's' TOKEN_ARRAY rune = 'a' TOKEN_OBJECT rune = 'O' TOKEN_OBJECT_SERIALIZED rune = 'C' TOKEN_REFERENCE rune = 'R' TOKEN_REFERENCE_OBJECT rune = 'r' TOKEN_SPL_ARRAY rune = 'x' TOKEN_SPL_ARRAY_MEMBERS rune = 'm' SEPARATOR_VALUE_TYPE rune = ':' SEPARATOR_VALUES rune = ';' DELIMITER_STRING_LEFT rune = '"' DELIMITER_STRING_RIGHT rune = '"' DELIMITER_OBJECT_LEFT rune = '{' DELIMITER_OBJECT_RIGHT rune = '}' FORMATTER_FLOAT byte = 'g' FORMATTER_PRECISION int = 17 )
View Source
const UNSERIALIZABLE_OBJECT_MAX_LEN = 10 * 1024 * 1024 * 1024
Variables ¶
This section is empty.
Functions ¶
func PhpValueBool ¶
func PhpValueFloat64 ¶
func PhpValueInt ¶
func PhpValueInt64 ¶
func PhpValueString ¶
func PhpValueUInt ¶
func PhpValueUInt64 ¶
Types ¶
type PhpObject ¶
type PhpObject struct {
// contains filtered or unexported fields
}
func NewPhpObject ¶
func (*PhpObject) GetClassName ¶
func (*PhpObject) GetMembers ¶
func (*PhpObject) GetProtected ¶
func (*PhpObject) SetClassName ¶
func (*PhpObject) SetMembers ¶
func (*PhpObject) SetPrivate ¶
func (*PhpObject) SetProtected ¶
type PhpObjectSerialized ¶
type PhpObjectSerialized struct {
// contains filtered or unexported fields
}
func NewPhpObjectSerialized ¶
func NewPhpObjectSerialized(className string) *PhpObjectSerialized
func (*PhpObjectSerialized) GetClassName ¶
func (self *PhpObjectSerialized) GetClassName() string
func (*PhpObjectSerialized) GetData ¶
func (self *PhpObjectSerialized) GetData() string
func (*PhpObjectSerialized) GetValue ¶
func (self *PhpObjectSerialized) GetValue() PhpValue
func (*PhpObjectSerialized) SetClassName ¶
func (self *PhpObjectSerialized) SetClassName(name string) *PhpObjectSerialized
func (*PhpObjectSerialized) SetData ¶
func (self *PhpObjectSerialized) SetData(data string) *PhpObjectSerialized
func (*PhpObjectSerialized) SetValue ¶
func (self *PhpObjectSerialized) SetValue(value PhpValue) *PhpObjectSerialized
type PhpSplArray ¶
type PhpSplArray struct {
// contains filtered or unexported fields
}
func NewPhpSplArray ¶
func NewPhpSplArray(array, properties PhpValue) *PhpSplArray
func (*PhpSplArray) GetArray ¶
func (self *PhpSplArray) GetArray() PhpValue
func (*PhpSplArray) GetFlags ¶
func (self *PhpSplArray) GetFlags() int
func (*PhpSplArray) GetProperties ¶
func (self *PhpSplArray) GetProperties() PhpValue
func (*PhpSplArray) SetArray ¶
func (self *PhpSplArray) SetArray(value PhpValue)
func (*PhpSplArray) SetFlags ¶
func (self *PhpSplArray) SetFlags(value int)
func (*PhpSplArray) SetProperties ¶
func (self *PhpSplArray) SetProperties(value PhpValue)
type SerializedDecodeFunc ¶
type SerializedEncodeFunc ¶
type Serializer ¶
type Serializer struct {
// contains filtered or unexported fields
}
func NewSerializer ¶
func NewSerializer() *Serializer
func (*Serializer) SetSerializedEncodeFunc ¶
func (self *Serializer) SetSerializedEncodeFunc(f SerializedEncodeFunc)
type UnSerializer ¶
type UnSerializer struct {
// contains filtered or unexported fields
}
func NewUnSerializer ¶
func NewUnSerializer(data string) *UnSerializer
func (*UnSerializer) Decode ¶
func (self *UnSerializer) Decode() (PhpValue, error)
func (*UnSerializer) SetReader ¶
func (self *UnSerializer) SetReader(r *strings.Reader)
func (*UnSerializer) SetSerializedDecodeFunc ¶
func (self *UnSerializer) SetSerializedDecodeFunc(f SerializedDecodeFunc)
Click to show internal directories.
Click to hide internal directories.