spl

package
v0.0.0-...-18194de Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 5, 2026 License: BSD-3-Clause Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ArrayObjectSTD_PROP_LIST  phpv.ZInt = 1
	ArrayObjectARRAY_AS_PROPS phpv.ZInt = 2
)

ArrayObject constants

Variables

View Source
var AppendIteratorClass = &phpobj.ZClass{
	Name:            "AppendIterator",
	Implementations: []*phpobj.ZClass{OuterIterator},
}
View Source
var ArrayIteratorClass = &phpobj.ZClass{
	Name: "ArrayIterator",
	Const: map[phpv.ZString]*phpv.ZClassConst{
		"STD_PROP_LIST":  {Value: phpv.ZInt(1)},
		"ARRAY_AS_PROPS": {Value: phpv.ZInt(2)},
	},
}
View Source
var ArrayObjectClass = &phpobj.ZClass{
	Name: "ArrayObject",
}
View Source
var CachingIteratorClass = &phpobj.ZClass{
	Name:            "CachingIterator",
	Implementations: []*phpobj.ZClass{OuterIterator, Countable, phpobj.ArrayAccess},
	Const: map[phpv.ZString]*phpv.ZClassConst{
		"CALL_TOSTRING":        {Value: phpv.ZInt(cachingIteratorCallToString)},
		"CATCH_GET_CHILD":      {Value: phpv.ZInt(cachingIteratorCatchGetChild)},
		"TOSTRING_USE_KEY":     {Value: phpv.ZInt(cachingIteratorToStringUseKey)},
		"TOSTRING_USE_CURRENT": {Value: phpv.ZInt(cachingIteratorToStringUseCurrent)},
		"TOSTRING_USE_INNER":   {Value: phpv.ZInt(cachingIteratorToStringUseInner)},
		"FULL_CACHE":           {Value: phpv.ZInt(cachingIteratorFullCache)},
	},
}
View Source
var CallbackFilterIteratorClass = &phpobj.ZClass{
	Name:            "CallbackFilterIterator",
	Implementations: []*phpobj.ZClass{OuterIterator},
}
View Source
var Countable = &phpobj.ZClass{
	Type: phpv.ZClassTypeInterface,
	Name: "Countable",
	Methods: map[phpv.ZString]*phpv.ZClassMethod{
		"count": {Name: "count", Modifiers: phpv.ZAttrPublic, Empty: true, ReturnType: phpv.ParseTypeHint("int"), TentativeReturnType: true},
	},
}

Countable interface - objects that can be counted with count()

View Source
var DirectoryIteratorClass *phpobj.ZClass
View Source
var EmptyIteratorClass = &phpobj.ZClass{
	Name:            "EmptyIterator",
	Implementations: []*phpobj.ZClass{phpobj.Iterator},
}
View Source
var FilesystemIteratorClass *phpobj.ZClass
View Source
var FilterIteratorClass = &phpobj.ZClass{
	Name:            "FilterIterator",
	Extends:         IteratorIteratorClass,
	Implementations: []*phpobj.ZClass{OuterIterator},
}
View Source
var GlobIteratorClass *phpobj.ZClass
View Source
var InfiniteIteratorClass = &phpobj.ZClass{
	Name:            "InfiniteIterator",
	Implementations: []*phpobj.ZClass{OuterIterator},
}
View Source
var IteratorIteratorClass = &phpobj.ZClass{
	Name:            "IteratorIterator",
	Implementations: []*phpobj.ZClass{OuterIterator},
}
View Source
var LimitIteratorClass = &phpobj.ZClass{
	Name:            "LimitIterator",
	Implementations: []*phpobj.ZClass{OuterIterator},
}
View Source
var MultipleIteratorClass = &phpobj.ZClass{
	Name:            "MultipleIterator",
	Implementations: []*phpobj.ZClass{phpobj.Iterator, phpobj.ArrayAccess, Countable},
	Const: map[phpv.ZString]*phpv.ZClassConst{
		"MIT_NEED_ANY":     {Value: phpv.ZInt(multipleIteratorMitNeedAny)},
		"MIT_NEED_ALL":     {Value: phpv.ZInt(multipleIteratorMitNeedAll)},
		"MIT_KEYS_NUMERIC": {Value: phpv.ZInt(multipleIteratorMitKeysNumeric)},
		"MIT_KEYS_ASSOC":   {Value: phpv.ZInt(multipleIteratorMitKeysAssoc)},
	},
}
View Source
var NoRewindIteratorClass = &phpobj.ZClass{
	Name:            "NoRewindIterator",
	Implementations: []*phpobj.ZClass{OuterIterator},
}
View Source
var OuterIterator = &phpobj.ZClass{
	Type:    phpv.ZClassTypeInterface,
	Name:    "OuterIterator",
	Extends: phpobj.Iterator,
}

OuterIterator interface - for iterators that wrap another iterator

View Source
var ParentIteratorClass = &phpobj.ZClass{
	Name:            "ParentIterator",
	Extends:         RecursiveFilterIteratorClass,
	Implementations: []*phpobj.ZClass{RecursiveIterator, OuterIterator},
}
View Source
var RecursiveArrayIteratorClass = &phpobj.ZClass{
	Name:            "RecursiveArrayIterator",
	Extends:         ArrayIteratorClass,
	Implementations: []*phpobj.ZClass{RecursiveIterator, Countable, phpobj.ArrayAccess},
}
View Source
var RecursiveCachingIteratorClass = &phpobj.ZClass{
	Name:            "RecursiveCachingIterator",
	Extends:         CachingIteratorClass,
	Implementations: []*phpobj.ZClass{RecursiveIterator, Countable},
}
View Source
var RecursiveCallbackFilterIteratorClass = &phpobj.ZClass{
	Name:            "RecursiveCallbackFilterIterator",
	Extends:         CallbackFilterIteratorClass,
	Implementations: []*phpobj.ZClass{RecursiveIterator},
}
View Source
var RecursiveDirectoryIteratorClass *phpobj.ZClass
View Source
var RecursiveFilterIteratorClass = &phpobj.ZClass{
	Name:            "RecursiveFilterIterator",
	Type:            phpv.ZClassTypeExplicitAbstract,
	Extends:         FilterIteratorClass,
	Implementations: []*phpobj.ZClass{RecursiveIterator, OuterIterator},
}
View Source
var RecursiveIterator = &phpobj.ZClass{
	Type:    phpv.ZClassTypeInterface,
	Name:    "RecursiveIterator",
	Extends: phpobj.Iterator,
}

RecursiveIterator interface

View Source
var RecursiveIteratorIteratorClass = &phpobj.ZClass{
	Name:            "RecursiveIteratorIterator",
	Implementations: []*phpobj.ZClass{OuterIterator},
	Const: map[phpv.ZString]*phpv.ZClassConst{
		"LEAVES_ONLY":     {Value: phpv.ZInt(recursiveIteratorLeavesOnly)},
		"SELF_FIRST":      {Value: phpv.ZInt(recursiveIteratorSelfFirst)},
		"CHILD_FIRST":     {Value: phpv.ZInt(recursiveIteratorChildFirst)},
		"CATCH_GET_CHILD": {Value: phpv.ZInt(16)},
	},
}
View Source
var RecursiveRegexIteratorClass = &phpobj.ZClass{
	Name:            "RecursiveRegexIterator",
	Extends:         RegexIteratorClass,
	Implementations: []*phpobj.ZClass{RecursiveIterator},
}
View Source
var RecursiveTreeIteratorClass = &phpobj.ZClass{
	Name:            "RecursiveTreeIterator",
	Extends:         RecursiveIteratorIteratorClass,
	Implementations: []*phpobj.ZClass{OuterIterator},
	Const: map[phpv.ZString]*phpv.ZClassConst{
		"BYPASS_CURRENT":      {Value: phpv.ZInt(rtiBypassCurrent)},
		"BYPASS_KEY":          {Value: phpv.ZInt(rtiBypassKey)},
		"PREFIX_LEFT":         {Value: phpv.ZInt(rtiPrefixLeft)},
		"PREFIX_MID_HAS_NEXT": {Value: phpv.ZInt(rtiPrefixMidHasNext)},
		"PREFIX_MID_LAST":     {Value: phpv.ZInt(rtiPrefixMidLast)},
		"PREFIX_END_HAS_NEXT": {Value: phpv.ZInt(rtiPrefixEndHasNext)},
		"PREFIX_END_LAST":     {Value: phpv.ZInt(rtiPrefixEndLast)},
		"PREFIX_RIGHT":        {Value: phpv.ZInt(rtiPrefixRight)},
	},
}
View Source
var RegexIteratorClass = &phpobj.ZClass{
	Name:            "RegexIterator",
	Extends:         nil,
	Implementations: []*phpobj.ZClass{OuterIterator},
	Props: []*phpv.ZClassProp{
		{VarName: "replacement", Modifiers: phpv.ZAttrPublic},
	},
	Const: map[phpv.ZString]*phpv.ZClassConst{
		"MATCH":        {Value: phpv.ZInt(regexIteratorMatch)},
		"GET_MATCH":    {Value: phpv.ZInt(regexIteratorGetMatch)},
		"ALL_MATCHES":  {Value: phpv.ZInt(regexIteratorAllMatches)},
		"SPLIT":        {Value: phpv.ZInt(regexIteratorSplit)},
		"REPLACE":      {Value: phpv.ZInt(regexIteratorReplace)},
		"USE_KEY":      {Value: phpv.ZInt(regexIteratorUseKey)},
		"INVERT_MATCH": {Value: phpv.ZInt(2)},
	},
}
View Source
var SeekableIterator = &phpobj.ZClass{
	Type:    phpv.ZClassTypeInterface,
	Name:    "SeekableIterator",
	Extends: phpobj.Iterator,
	Methods: map[phpv.ZString]*phpv.ZClassMethod{
		"seek": {Name: "seek", Modifiers: phpv.ZAttrPublic, Empty: true},
	},
}

SeekableIterator interface - extends Iterator with seek()

View Source
var SplDoublyLinkedListClass = &phpobj.ZClass{
	Name:            "SplDoublyLinkedList",
	Implementations: []*phpobj.ZClass{phpobj.Iterator, Countable, phpobj.ArrayAccess, phpobj.Serializable},
}
View Source
var SplFileInfoClass *phpobj.ZClass
View Source
var SplFileObjectClass *phpobj.ZClass
View Source
var SplFixedArrayClass = &phpobj.ZClass{
	Name:            "SplFixedArray",
	Implementations: []*phpobj.ZClass{phpobj.Iterator, Countable, phpobj.ArrayAccess, extjson.JsonSerializable},
}
View Source
var SplHeapClass = &phpobj.ZClass{
	Name:            "SplHeap",
	Attr:            phpv.ZClassAttr(phpv.ZClassExplicitAbstract),
	Implementations: []*phpobj.ZClass{phpobj.Iterator, Countable},
}
View Source
var SplMaxHeapClass = &phpobj.ZClass{
	Name:            "SplMaxHeap",
	Extends:         SplHeapClass,
	Implementations: []*phpobj.ZClass{phpobj.Iterator, Countable},
}
View Source
var SplMinHeapClass = &phpobj.ZClass{
	Name:            "SplMinHeap",
	Extends:         SplHeapClass,
	Implementations: []*phpobj.ZClass{phpobj.Iterator, Countable},
}
View Source
var SplObjectStorageClass = &phpobj.ZClass{
	Name:            "SplObjectStorage",
	Implementations: []*phpobj.ZClass{Countable, phpobj.Iterator, phpobj.ArrayAccess, phpobj.Serializable},
}
View Source
var SplObserver = &phpobj.ZClass{
	Type: phpv.ZClassTypeInterface,
	Name: "SplObserver",
	Methods: map[phpv.ZString]*phpv.ZClassMethod{
		"update": {Name: "update", Modifiers: phpv.ZAttrPublic, Empty: true},
	},
}

SplObserver interface

View Source
var SplPriorityQueueClass = &phpobj.ZClass{
	Name:            "SplPriorityQueue",
	Implementations: []*phpobj.ZClass{phpobj.Iterator, Countable},
	Const: map[phpv.ZString]*phpv.ZClassConst{
		"EXTR_DATA":     {Value: phpv.ZInt(splPriorityQueueExtrData)},
		"EXTR_PRIORITY": {Value: phpv.ZInt(splPriorityQueueExtrPriority)},
		"EXTR_BOTH":     {Value: phpv.ZInt(splPriorityQueueExtrBoth)},
	},
}
View Source
var SplQueueClass = &phpobj.ZClass{
	Name:            "SplQueue",
	Extends:         SplDoublyLinkedListClass,
	Implementations: []*phpobj.ZClass{phpobj.Iterator, Countable, phpobj.ArrayAccess, phpobj.Serializable},
}
View Source
var SplStackClass = &phpobj.ZClass{
	Name:            "SplStack",
	Extends:         SplDoublyLinkedListClass,
	Implementations: []*phpobj.ZClass{phpobj.Iterator, Countable, phpobj.ArrayAccess, phpobj.Serializable},
}
View Source
var SplSubject = &phpobj.ZClass{
	Type: phpv.ZClassTypeInterface,
	Name: "SplSubject",
	Methods: map[phpv.ZString]*phpv.ZClassMethod{
		"attach": {Name: "attach", Modifiers: phpv.ZAttrPublic, Empty: true},
		"detach": {Name: "detach", Modifiers: phpv.ZAttrPublic, Empty: true},
		"notify": {Name: "notify", Modifiers: phpv.ZAttrPublic, Empty: true},
	},
}

SplSubject interface

View Source
var SplTempFileObjectClass *phpobj.ZClass

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL