forked from JetBrains/phpstorm-stubs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSPL_f.php
192 lines (175 loc) · 6.13 KB
/
SPL_f.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
<?php
// Start of SPL v.0.2
/**
* Return available SPL classes
* @link http://php.net/manual/en/function.spl-classes.php
* @return array
* @since 5.0
*/
function spl_classes () {}
/**
* Default implementation for __autoload()
* @link http://php.net/manual/en/function.spl-autoload.php
* @param string $class_name <p>
* </p>
* @param string $file_extensions [optional] <p>
* By default it checks all include paths to
* contain filenames built up by the lowercase class name appended by the
* filename extensions .inc and .php.
* </p>
* @return void
* @since 5.1.2
*/
function spl_autoload ($class_name, $file_extensions = null) {}
/**
* Register and return default file extensions for spl_autoload
* @link http://php.net/manual/en/function.spl-autoload-extensions.php
* @param string $file_extensions [optional] <p>
* When calling without an argument, it simply returns the current list
* of extensions each separated by comma. To modify the list of file
* extensions, simply invoke the functions with the new list of file
* extensions to use in a single string with each extensions separated
* by comma.
* </p>
* @return string A comma delimited list of default file extensions for
* spl_autoload.
* @since 5.1.2
*/
function spl_autoload_extensions ($file_extensions = null) {}
/**
* Register given function as __autoload() implementation
* @link http://php.net/manual/en/function.spl-autoload-register.php
* @param callback $autoload_function [optional] <p>
* The autoload function being registered.
* If no parameter is provided, then the default implementation of
* spl_autoload will be registered.
* </p>
* @param bool $throw This parameter specifies whether spl_autoload_register() should throw exceptions when the
* autoload_function cannot be registered.
* @param bool $prepend If true, spl_autoload_register() will prepend the autoloader on the autoload stack instead of
* appending it.
* @return bool true on success or false on failure.
* @since 5.1.2
*/
function spl_autoload_register ($autoload_function = null, $throw = true, $prepend = false) {}
/**
* Unregister given function as __autoload() implementation
* @link http://php.net/manual/en/function.spl-autoload-unregister.php
* @param mixed $autoload_function <p>
* The autoload function being unregistered.
* </p>
* @return bool true on success or false on failure.
* @since 5.1.2
*/
function spl_autoload_unregister ($autoload_function) {}
/**
* Return all registered __autoload() functions
* @link http://php.net/manual/en/function.spl-autoload-functions.php
* @return array An array of all registered __autoload functions.
* If the autoload stack is not activated then the return value is false.
* If no function is registered the return value will be an empty array.
* @since 5.1.2
*/
function spl_autoload_functions () {}
/**
* Try all registered __autoload() function to load the requested class
* @link http://php.net/manual/en/function.spl-autoload-call.php
* @param string $class_name <p>
* The class name being searched.
* </p>
* @return void
* @since 5.1.2
*/
function spl_autoload_call ($class_name) {}
/**
* Return the parent classes of the given class
* @link http://php.net/manual/en/function.class-parents.php
* @param mixed $class <p>
* An object (class instance) or a string (class name).
* </p>
* @param bool $autoload [optional] <p>
* Whether to allow this function to load the class automatically through
* the __autoload magic
* method.
* </p>
* @return array An array on success, or false on error.
* @since 5.1.0
*/
function class_parents ($class, $autoload = null) {}
/**
* Return the interfaces which are implemented by the given class
* @link http://php.net/manual/en/function.class-implements.php
* @param mixed $class <p>
* An object (class instance) or a string (class name).
* </p>
* @param bool $autoload [optional] <p>
* Whether to allow this function to load the class automatically through
* the __autoload magic
* method.
* </p>
* @return array An array on success, or false on error.
* @since 5.1.0
*/
function class_implements ($class, $autoload = null) {}
/**
* Return hash id for given object
* @link http://php.net/manual/en/function.spl-object-hash.php
* @param object $obj
* @return string A string that is unique for each object and is always the same for
* the same object.
* @since 5.2.0
*/
function spl_object_hash ($obj) {}
/**
* Copy the iterator into an array
* @link http://php.net/manual/en/function.iterator-to-array.php
* @param Traversable $iterator <p>
* The iterator being copied.
* </p>
* @param bool $use_keys [optional] <p>
* Whether to use the iterator element keys as index.
* </p>
* @return array An array containing the elements of the iterator.
* @since 5.1.0
*/
function iterator_to_array ($iterator, $use_keys = true) {}
/**
* Count the elements in an iterator
* @link http://php.net/manual/en/function.iterator-count.php
* @param Traversable $iterator <p>
* The iterator being counted.
* </p>
* @return int The number of elements in iterator.
* @since 5.1.0
*/
function iterator_count ($iterator) {}
/**
* Call a function for every element in an iterator
* @link http://php.net/manual/en/function.iterator-apply.php
* @param Traversable $iterator <p>
* The class to iterate over.
* </p>
* @param callback $function <p>
* The callback function to call on every element.
* The function must return true in order to
* continue iterating over the iterator.
* </p>
* @param array $args [optional] <p>
* Arguments to pass to the callback function.
* </p>
* @return int the iteration count.
* @since 5.1.0
*/
function iterator_apply ($iterator, $function, array $args = null) {}
// End of SPL v.0.2
/**
* Return the traits used by the given class
* @param mixed $class An object (class instance) or a string (class name).
* @param bool $autoload Whether to allow this function to load the class automatically through the __autoload() magic method.
* @return array Array on success, or FALSE on error.
* @link http://php.net/manual/en/function.class-uses.php
* @see class_parents(), get_declared_traits()
* @since 5.4.0
*/
function class_uses($class, bool $autoload = true ) {}
?>