spl.php

Go to the documentation of this file.
00001 <?php
00002 
00166 function spl_autoload(string $class_name, string $file_extensions = NULL) {};
00167 
00174 function spl_autoload_call(string $class_name) {};
00175 
00185 function spl_autoload_extensions($file_extensions) {};
00186 
00193 function spl_autoload_functions() {};
00194 
00203 function spl_autoload_register(string $autoload_function = "spl_autoload", $throw = true) {};
00204 
00212 function spl_autoload_unregister(string $autoload_function = "spl_autoload") {};
00213 
00220 function spl_classes() {};
00221 
00228 function iterator_count(Traversable $it) {};
00229 
00238 function iterator_to_array(Traversable $it, $use_keys = true) {};
00239 
00244 class Exception
00245 {
00247     protected $message;
00248     
00250     private $string;
00251     
00253     protected $code;
00254     
00256     protected $file;
00257     
00259     protected $line;
00260     
00262     private $trace;
00263 
00266     final private function __clone() {}
00267 
00273     function __construct($message = NULL, $code = 0) {
00274         if (func_num_args()) {
00275             $this->message = $message;
00276         }
00277         $this->code = $code;
00278         $this->file = __FILE__; // of throw clause
00279         $this->line = __LINE__; // of throw clause
00280         $this->trace = debug_backtrace();
00281         $this->string = StringFormat($this);
00282     } 
00283 
00286     final public function getMessage()
00287     {
00288         return $this->message;
00289     }
00290 
00293     final public function getCode()
00294     {
00295         return $this->code;
00296     }
00297 
00300     final public function getFile()
00301     {
00302         return $this->file;
00303     }
00304 
00307     final public function getLine()
00308     {
00309         return $this->line;
00310     }
00311 
00314     final public function getTrace()
00315     {
00316         return $this->trace;
00317     }
00318 
00321     final public function getTraceAsString()
00322     {
00323     }
00324 
00327     public function __toString()
00328     {
00329         return $this->string;
00330     }
00331 }
00332 
00339 class LogicException extends Exception
00340 {
00341 }
00342 
00347 class BadFunctionCallException extends LogicException
00348 {
00349 }
00350 
00355 class BadMethodCallException extends BadFunctionCallException
00356 {
00357 }
00358 
00368 class DomainException extends LogicException
00369 {
00370 }
00371 
00378 class InvalidArgumentException extends LogicException
00379 {
00380 }
00381 
00389 class LengthException extends LogicException
00390 {
00391 }
00392 
00401 class OutOfRangeException extends LogicException
00402 {
00403 }
00404 
00409 class RuntimeException extends Exception
00410 {
00411 }
00412 
00421 class OutOfBoundsException extends RuntimeException
00422 {
00423 }
00424 
00429 class OverflowException extends RuntimeException
00430 {
00431 }
00432 
00442 class RangeException extends RuntimeException
00443 {
00444 }
00445 
00450 class UnderflowException extends RuntimeException
00451 {
00452 }
00453 
00464 class UnexpectedValueException extends RuntimeException
00465 {
00466 }
00467 
00472 interface ArrayAccess
00473 {
00477     function offsetSet($offset, $value);
00478 
00482     function offsetGet($offset);
00483 
00486     function offsetUnset($offset);
00487 
00491     function offsetExists($offset);
00492 }
00493 
00509 interface Traversable
00510 {
00511 }
00512 
00519 interface IteratorAggregate extends Traversable
00520 {
00523     function getIterator();
00524 }
00525 
00535 interface Iterator extends Traversable
00536 {
00539     function rewind();
00540 
00543     function current();
00544 
00547     function key();
00548 
00551     function next();
00552 
00555     function valid();
00556 }
00557 
00562 interface Countable
00563 {
00566     function count();
00567 }
00568 
00581 interface Serializable
00582 {
00586     function serialize();
00587     
00593     function unserialize($serialized);
00594 }
00595 
00606 class ArrayObject implements IteratorAggregate, ArrayAccess, Countable
00607 {
00610     const STD_PROP_LIST     = 0x00000001;
00612     const ARRAY_AS_PROPS    = 0x00000002;
00613 
00621     function __construct($array, $flags = 0, $iterator_class = "ArrayIterator") {}
00622 
00630     function setFlags($flags) {}
00631                         
00634     function getFlags() {}
00635 
00638     function asort() {}
00639     
00642     function ksort() {}
00643     
00646     function uasort(mixed cmp_function) {}
00647     
00650     function uksort(mixed cmp_function) {}
00651     
00654     function natsort() {}
00655     
00658     function natcasesort() {}
00659     
00662     function exchangeArray($array) {}
00663 
00667     function getIterator() {}
00668 
00672     function offsetExists($index) {}
00673 
00677     function offsetGet($index) {}
00678 
00682     function offsetSet($index, $newval) {}
00683 
00686     function offsetUnset($index) {}
00687 
00692     function append($value) {}
00693 
00698     function getArrayCopy() {}
00699 
00703     function count() {}
00704     
00705     /* @param $iterator_class new class used in getIterator()
00706      */
00707     function setIteratorClass($itertor_class) {}
00708     
00709     /* @return class used in getIterator()
00710      */
00711     function getIteratorClass() {}
00712 }
00713 
00727 class ArrayIterator implements SeekableIterator, ArrayAccess, Countable
00728 {
00731     const STD_PROP_LIST  = 0x00000001;
00733     const ARRAY_AS_PROPS = 0x00000002;
00734 
00741     function __construct($array, $flags = 0) {}
00742 
00750     function setFlags($flags) {}
00751 
00755     function getFlags() {}
00756 
00759     function asort() {}
00760     
00763     function ksort() {}
00764     
00767     function uasort(mixed cmp_function) {}
00768     
00771     function uksort(mixed cmp_function) {}
00772     
00775     function natsort() {}
00776     
00779     function natcasesort() {}
00780     
00784     function offsetExists($index) {}
00785 
00789     function offsetGet($index) {}
00790 
00794     function offsetSet($index, $newval) {}
00795 
00798     function offsetUnset($index) {}
00799 
00804     function append($value) {}
00805 
00810     function getArrayCopy() {}
00811 
00815     function seek($position) {}
00816 
00820     function count() {}
00821 
00823     function rewind() {}
00824     
00826     function valid() {}
00827     
00829     function current() {}
00830     
00832     function key() {}
00833     
00835     function next() {}
00836 }
00837 
00842 class SplFileInfo 
00843 {
00848     function __construct($file_name) {}
00849 
00852     function getPath() {}   
00853 
00856     function getFilename() {}   
00857 
00862     function getFileInfo(string class_name = NULL) {}
00863 
00866     function getPathname() {}   
00867 
00872     function getPathInfo(string class_name = NULL) {}
00873 
00876     function getPerms() {}
00877 
00880     function getInode() {}
00881 
00884     function getSize() {}
00885 
00888     function getOwner() {}
00889 
00892     function getGroup() {}
00893 
00896     function getATime() {}
00897 
00900     function getMTime() {}
00901 
00904     function getCTime() {}
00905 
00908     function getType() {}
00909 
00912     function isWritable() {}
00913 
00916     function isReadable() {}
00917 
00920     function isExecutable() {}
00921 
00924     function isFile() {}
00925 
00928     function isDir() {} 
00929 
00932     function isLink() {}
00933 
00936     function getLinkTarget() {}
00937 
00940     function getRealPath() {}
00941     
00944     function __toString() {}
00945 
00959     function openFile($mode = 'r', $use_include_path = false, $context = NULL) {}
00960 
00964     function setFileClass(string class_name = "SplFileObject") {}
00965 
00969     function setInfoClass(string class_name = "SplFileInfo") {}
00970 }
00971 
00977 class DirectoryIterator extends SplFileInfo implements Iterator
00978 {
00983     function __construct($path) {}
00984 
00986     function rewind() {}
00987     
00989     function valid() {}
00990     
00993     function key() {}
00994 
00997     function current() {}
00998 
01000     function next() {}
01001 
01004     function isDot() {} 
01005 
01008     function isLink() {}
01009 
01012     function __toString() {}
01013 }
01014 
01020 class RecursiveDirectoryIterator extends DirectoryIterator implements RecursiveIterator
01021 {
01022     const CURRENT_AS_FILEINFO   0x00000010; /* make RecursiveDirectoryTree::current() return SplFileInfo */
01023     const KEY_AS_FILENAME       0x00000020; /* make RecursiveDirectoryTree::key() return getFilename() */
01024     const NEW_CURRENT_AND_KEY   0x00000030; /* CURRENT_AS_FILEINFO + KEY_AS_FILENAME */
01025 
01034     function __construct($path, $flags = 0) {}
01035 
01038     function key() {}
01039 
01042     function current() {}
01043 
01046     function hasChildren() {}   
01047 
01050     function getChildren() {}   
01051 
01054     function getSubPath() {}
01055 
01058     function getSubPathname() {}
01059 }
01060 
01072 class SimpleXMLIterator extends SimpleXMLElement implements RecursiveIterator, Countable
01073 {
01076     function hasChildren() {}   
01077 
01080     function getChildren() {}   
01081 
01084     function count() {}
01085 
01087     function rewind() {}
01088     
01090     function valid() {}
01091     
01093     function current() {}
01094     
01096     function key() {}
01097     
01099     function next() {}
01100 }
01101 
01112 interface SplObserver
01113 {
01117     function update(SplSubject $subject);
01118 }
01119 
01125 interface SplSubject
01126 {
01129     function attach(SplObserver $observer);
01130 
01134     function detach(SplObserver $observer);
01135 
01138     function notify();
01139 }
01140 
01141 ?>

Generated on Thu Apr 26 01:04:48 2007 for SPL-StandardPHPLibrary by  doxygen 1.5.2