|
SPL-StandardPHPLibrary
|
00001 <?php 00002 00180 function spl_autoload(string $class_name, string $file_extensions = NULL) {}; 00181 00188 function spl_autoload_call(string $class_name) {}; 00189 00199 function spl_autoload_extensions($file_extensions) {}; 00200 00207 function spl_autoload_functions() {}; 00208 00217 function spl_autoload_register(string $autoload_function = "spl_autoload", $throw = true) {}; 00218 00226 function spl_autoload_unregister(string $autoload_function = "spl_autoload") {}; 00227 00234 function spl_classes() {}; 00235 00242 function iterator_count(Traversable $it) {}; 00243 00252 function iterator_to_array(Traversable $it, $use_keys = true) {}; 00253 00258 class Exception 00259 { 00261 protected $message; 00262 00264 private $string; 00265 00267 protected $code; 00268 00270 protected $file; 00271 00273 protected $line; 00274 00276 private $trace; 00277 00280 final private function __clone() {} 00281 00287 function __construct($message = NULL, $code = 0) { 00288 if (func_num_args()) { 00289 $this->message = $message; 00290 } 00291 $this->code = $code; 00292 $this->file = __FILE__; // of throw clause 00293 $this->line = __LINE__; // of throw clause 00294 $this->trace = debug_backtrace(); 00295 $this->string = StringFormat($this); 00296 } 00297 00300 final public function getMessage() 00301 { 00302 return $this->message; 00303 } 00304 00307 final public function getCode() 00308 { 00309 return $this->code; 00310 } 00311 00314 final public function getFile() 00315 { 00316 return $this->file; 00317 } 00318 00321 final public function getLine() 00322 { 00323 return $this->line; 00324 } 00325 00328 final public function getTrace() 00329 { 00330 return $this->trace; 00331 } 00332 00335 final public function getTraceAsString() 00336 { 00337 } 00338 00341 public function __toString() 00342 { 00343 return $this->string; 00344 } 00345 } 00346 00353 class LogicException extends Exception 00354 { 00355 } 00356 00361 class BadFunctionCallException extends LogicException 00362 { 00363 } 00364 00369 class BadMethodCallException extends BadFunctionCallException 00370 { 00371 } 00372 00382 class DomainException extends LogicException 00383 { 00384 } 00385 00392 class InvalidArgumentException extends LogicException 00393 { 00394 } 00395 00403 class LengthException extends LogicException 00404 { 00405 } 00406 00415 class OutOfRangeException extends LogicException 00416 { 00417 } 00418 00423 class RuntimeException extends Exception 00424 { 00425 } 00426 00435 class OutOfBoundsException extends RuntimeException 00436 { 00437 } 00438 00443 class OverflowException extends RuntimeException 00444 { 00445 } 00446 00456 class RangeException extends RuntimeException 00457 { 00458 } 00459 00464 class UnderflowException extends RuntimeException 00465 { 00466 } 00467 00478 class UnexpectedValueException extends RuntimeException 00479 { 00480 } 00481 00486 interface ArrayAccess 00487 { 00491 function offsetSet($offset, $value); 00492 00496 function offsetGet($offset); 00497 00500 function offsetUnset($offset); 00501 00505 function offsetExists($offset); 00506 } 00507 00523 interface Traversable 00524 { 00525 } 00526 00533 interface IteratorAggregate extends Traversable 00534 { 00537 function getIterator(); 00538 } 00539 00549 interface Iterator extends Traversable 00550 { 00553 function rewind(); 00554 00557 function current(); 00558 00561 function key(); 00562 00565 function next(); 00566 00569 function valid(); 00570 } 00571 00576 interface Countable 00577 { 00580 function count(); 00581 } 00582 00595 interface Serializable 00596 { 00600 function serialize(); 00601 00607 function unserialize($serialized); 00608 } 00609 00620 class ArrayObject implements IteratorAggregate, ArrayAccess, Countable 00621 { 00624 const STD_PROP_LIST = 0x00000001; 00626 const ARRAY_AS_PROPS = 0x00000002; 00627 00635 function __construct($array, $flags = 0, $iterator_class = "ArrayIterator") {} 00636 00644 function setFlags($flags) {} 00645 00648 function getFlags() {} 00649 00652 function asort() {} 00653 00656 function ksort() {} 00657 00660 function uasort(mixed cmp_function) {} 00661 00664 function uksort(mixed cmp_function) {} 00665 00668 function natsort() {} 00669 00672 function natcasesort() {} 00673 00676 function exchangeArray($array) {} 00677 00681 function getIterator() {} 00682 00686 function offsetExists($index) {} 00687 00691 function offsetGet($index) {} 00692 00696 function offsetSet($index, $newval) {} 00697 00700 function offsetUnset($index) {} 00701 00706 function append($value) {} 00707 00712 function getArrayCopy() {} 00713 00717 function count() {} 00718 00719 /* @param $iterator_class new class used in getIterator() 00720 */ 00721 function setIteratorClass($itertor_class) {} 00722 00723 /* @return class used in getIterator() 00724 */ 00725 function getIteratorClass() {} 00726 } 00727 00741 class ArrayIterator implements SeekableIterator, ArrayAccess, Countable 00742 { 00745 const STD_PROP_LIST = 0x00000001; 00747 const ARRAY_AS_PROPS = 0x00000002; 00748 00755 function __construct($array, $flags = 0) {} 00756 00764 function setFlags($flags) {} 00765 00769 function getFlags() {} 00770 00773 function asort() {} 00774 00777 function ksort() {} 00778 00781 function uasort(mixed cmp_function) {} 00782 00785 function uksort(mixed cmp_function) {} 00786 00789 function natsort() {} 00790 00793 function natcasesort() {} 00794 00798 function offsetExists($index) {} 00799 00803 function offsetGet($index) {} 00804 00808 function offsetSet($index, $newval) {} 00809 00812 function offsetUnset($index) {} 00813 00818 function append($value) {} 00819 00824 function getArrayCopy() {} 00825 00829 function seek($position) {} 00830 00834 function count() {} 00835 00837 function rewind() {} 00838 00840 function valid() {} 00841 00843 function current() {} 00844 00846 function key() {} 00847 00849 function next() {} 00850 } 00851 00856 class SplFileInfo 00857 { 00862 function __construct($file_name) {} 00863 00866 function getPath() {} 00867 00870 function getFilename() {} 00871 00876 function getFileInfo(string class_name = NULL) {} 00877 00880 function getPathname() {} 00881 00886 function getPathInfo(string class_name = NULL) {} 00887 00890 function getPerms() {} 00891 00894 function getInode() {} 00895 00898 function getSize() {} 00899 00902 function getOwner() {} 00903 00906 function getGroup() {} 00907 00910 function getATime() {} 00911 00914 function getMTime() {} 00915 00918 function getCTime() {} 00919 00922 function getType() {} 00923 00926 function isWritable() {} 00927 00930 function isReadable() {} 00931 00934 function isExecutable() {} 00935 00938 function isFile() {} 00939 00942 function isDir() {} 00943 00946 function isLink() {} 00947 00950 function getLinkTarget() {} 00951 00954 function getRealPath() {} 00955 00958 function __toString() {} 00959 00973 function openFile($mode = 'r', $use_include_path = false, $context = NULL) {} 00974 00978 function setFileClass(string class_name = "SplFileObject") {} 00979 00983 function setInfoClass(string class_name = "SplFileInfo") {} 00984 } 00985 00991 class DirectoryIterator extends SplFileInfo implements Iterator 00992 { 00997 function __construct($path) {} 00998 01000 function rewind() {} 01001 01003 function valid() {} 01004 01007 function key() {} 01008 01011 function current() {} 01012 01014 function next() {} 01015 01018 function isDot() {} 01019 01022 function isLink() {} 01023 01026 function __toString() {} 01027 } 01028 01034 class RecursiveDirectoryIterator extends DirectoryIterator implements RecursiveIterator 01035 { 01036 const CURRENT_AS_FILEINFO 0x00000000; /* make RecursiveDirectoryTree::current() return SplFileInfo */ 01037 const CURRENT_AS_SELF 0x00000010; /* make RecursiveDirectoryTree::current() return getSelf() */ 01038 const CURRENT_AS_PATHNAME 0x00000020; /* make RecursiveDirectoryTree::current() return getPathname() */ 01039 01040 const KEY_AS_PATHNAME 0x00000000; /* make RecursiveDirectoryTree::key() return getPathname() */ 01041 const KEY_AS_FILENAME 0x00000100; /* make RecursiveDirectoryTree::key() return getFilename() */ 01042 01043 const NEW_CURRENT_AND_KEY 0x00000100; /* CURRENT_AS_FILEINFO + KEY_AS_FILENAME */ 01044 01056 function __construct($path, $flags = 0) {} 01057 01060 function key() {} 01061 01064 function current() {} 01065 01068 function hasChildren() {} 01069 01072 function getChildren() {} 01073 01076 function getSubPath() {} 01077 01080 function getSubPathname() {} 01081 } 01082 01094 class SimpleXMLIterator extends SimpleXMLElement implements RecursiveIterator, Countable 01095 { 01098 function hasChildren() {} 01099 01102 function getChildren() {} 01103 01106 function count() {} 01107 01109 function rewind() {} 01110 01112 function valid() {} 01113 01115 function current() {} 01116 01118 function key() {} 01119 01121 function next() {} 01122 } 01123 01134 interface SplObserver 01135 { 01139 function update(SplSubject $subject); 01140 } 01141 01147 interface SplSubject 01148 { 01151 function attach(SplObserver $observer); 01152 01156 function detach(SplObserver $observer); 01157 01160 function notify(); 01161 } 01162 01163 ?>
1.7.5.1