Commit Graph

70 Commits

Author SHA1 Message Date
Marcus Boerger
32f51050bc - Add MultipleIterator (Arnaud, Marcus) 2008-07-22 22:54:15 +00:00
Marcus Boerger
f765f8e99f - added missing @since tag 2008-07-19 15:48:07 +00:00
Marcus Boerger
1223c085b0 - Move RecursiveTreeIterator from PHP to C code (Arnaud, Marcus)
[DOC] Added RecursiveTreeIterator
      Documentation in ext/spl/internal/recursivetreeiterator.inc
2008-07-19 15:43:35 +00:00
Marcus Boerger
e3492e6d01 - Make SplObjectStorage implement ArrayAccess 2008-01-28 22:43:21 +00:00
Marcus Boerger
77d7cbaa66 - Add second parameter to SplObjectStorage::attach()
- Add SplObjectStorage::setInfo()
- Add SplObjectStorage::getInfo()
2008-01-27 18:04:54 +00:00
Etienne Kneuss
3ee8346719 Typo 2008-01-27 14:07:54 +00:00
Etienne Kneuss
dee0ae6da5 -Pointer doesn't move if we're moving forward and shifting at the same time
-Userland implementation
-Doxygen doc
2008-01-27 13:54:32 +00:00
Etienne Kneuss
85254498dc Add doxygen docs for SplDoublyLinkedList, SplStack, SplQueue 2008-01-21 21:54:00 +00:00
Johannes Schlüter
0e480791cb - Fix #43611 SplObjectStorage is available since 5.1.2 2007-12-16 22:19:35 +00:00
Marcus Boerger
3649874953 - Fix #41109: recursiveiterator.inc says 'implements' Iterator instead of 'extends' 2007-04-17 06:31:19 +00:00
Marcus Boerger
0646ecdcc8 - Match docu with implementation
- RecursiveFilterIterator::accept() needs to be abstract
2007-03-04 12:06:55 +00:00
Hannes Magnusson
b1b8dcfd42 SplFileObject no longer overwrites getFilename() 2006-11-12 17:34:28 +00:00
Marcus Boerger
f35c2a34c4 - Fixed Bug #39151 Parse error in recursiveiteratoriterator.php 2006-10-31 23:22:56 +00:00
Marcus Boerger
db47731174 - Update docu 2006-07-21 21:54:49 +00:00
Marcus Boerger
0f92e907ce - Match code with docu 2006-07-21 21:09:49 +00:00
Marcus Boerger
5b3d704bcd - Add control functions to RegexIterator 2006-07-21 19:57:36 +00:00
Marcus Boerger
8e3af0a026 - Change order of ctor args
# Do it before the child falls in the brunnel - aka prior to first release.
2006-07-20 22:35:44 +00:00
Marcus Boerger
0dc6d3e257 - Update docu 2006-07-20 22:04:52 +00:00
Marcus Boerger
bec72dba2a - Update RegexIterator 2006-07-20 21:21:20 +00:00
Marcus Boerger
2f4ca14c0b - Update docu 2006-07-16 23:45:29 +00:00
Marcus Boerger
754a741248 - Upgrade RegexIterator capabilities, see docu 2006-07-16 20:52:20 +00:00
Marcus Boerger
0499e0d8f1 - Update docu 2006-07-16 19:16:40 +00:00
Marcus Boerger
8a314279ab - Update docu 2006-07-15 15:04:52 +00:00
Marcus Boerger
1b6598618b - Fix docu 2006-03-26 00:22:03 +00:00
Marcus Boerger
54c4478a12 - 2006 now 2006-02-21 23:21:53 +00:00
Marcus Boerger
4c5fb5fc50 - Fix docu 2006-01-05 19:00:01 +00:00
Antony Dovgal
891059b089 more spelling fixes 2005-12-18 21:00:59 +00:00
Marcus Boerger
033ffc206d - Add new example directorytree_size.php
- Improve SplFileInfo:
  . add function getFilename()
  . add function getPath()
-Improve RecursiveTreeIterator
  . add const BYPASS_CURRENT to bypass current instead of getting its
    string representation
  . make key() return the parent key() which calls inner iterators key()
- Improve RecursiveDirectoryIterator
  . add consts CURRENT_AS_FILEINFO, KEY_AS_FILENAME, NEW_CURRENT_AND_KEY
  . make current() return getFilename() or getFileInfo() depending on flags
  . make key()     return getPathname() or getFilename() depending on flags
- Improve DirectoryIterator
  . make __construct() accept flags as second parameter
- Update docu
2005-10-08 18:57:17 +00:00
Marcus Boerger
a964956aa1 - Update 2005-10-03 10:17:02 +00:00
Marcus Boerger
b1fc84f584 - Fix issue with RecursiveArrayIterator::getChildren() 2005-10-03 09:12:39 +00:00
Marcus Boerger
7e1763a115 - Implement RecursiveIteratorIterator::setMaxDepth()/getMaxDepth() 2005-09-25 12:01:31 +00:00
Marcus Boerger
02038b4ac4 - Rename 'CachingRecursiveIterator' to 'RecursiveCachingIterator' so that
all of those follow the naming scheme 'Recursive<*>Iterator'
2005-09-18 16:51:24 +00:00
Marcus Boerger
445e382454 - Move RecursiveArrayIterator into .c
- Add ability to control iterator class of ArrayObject
- Implement option to make CachingIterator cache all read elements
- Implement ArrayAccess to CachingIterator to access cached elements
- Update docu
- Update tests
2005-09-18 11:34:36 +00:00
Marcus Boerger
50301ddc98 - Rename file class again by popular demmand: calling it SplFileObject now
# Any other idea about the name? Or should i come up with a renaming plan
# for the upcoming versions? :-)
2005-09-15 14:07:39 +00:00
Marcus Boerger
5f437cd590 - Changed in version 5.1 2005-09-15 03:52:58 +00:00
Marcus Boerger
8aa7f36a3b - Rename Observer to SplObserver
- Rename Subject to SplSubject
- Move SPL constants to class constants
- Update docu
2005-09-15 03:31:37 +00:00
Marcus Boerger
5deac4859e - Add missing docu tag 2005-09-04 18:57:21 +00:00
Marcus Boerger
4cba6ac94d - Update docu 2005-09-04 18:51:50 +00:00
Marcus Boerger
a826dd2918 - Fix docu 2005-09-02 19:16:43 +00:00
Marcus Boerger
03136fc95d - Update docu 2005-09-02 19:15:30 +00:00
Marcus Boerger
20de5cc091 - Implement SplObjectStorage as announced during OSCON
# This class starts naming of new classes in Spl by prefix Spl as dicussed.
# The class reduces object storage complexity from O(n) to O(1) which is
# not possible in user space.
2005-08-10 21:56:01 +00:00
Marcus Boerger
9e38d04a7c - Add RecursiveFilterIterator
- Derive ParentIterator from RecursiveIterator
# Actually brought up by a user. It is of course better to filter first and
# do the recursion only for accepted values. Otherwise you would iterate
# children and possibly recurse into them just to ignore them later anyway.
2005-08-10 19:48:48 +00:00
Marcus Boerger
fb5f1b7fad - Update version info 2005-08-02 00:00:41 +00:00
Marcus Boerger
0b34e041e3 - Before we later run into BC trouble we split flags into two params mode
and flags now before branching for 5.1.
2005-07-28 21:09:02 +00:00
Marcus Boerger
a935b06236 - Fix issues with iterators and excpetions
# update documentation
#
# In 5.2 we need to implement an event handler onException() to be invoked
# on exceptions during getChildren() calls. Its default implementation
# would simply rethrow the exception if the flag is not set and delete if
# if it was set. To do so the exceptions refcount needs to be increased
# before calling zend_clear_exception() to keep the exception alive but
# clear the control information.
#
# As a side note this is alos the easy solution to allow multi exception
# handling: Simply clear the engine's exception info and add a property
# called $previousException to the base exception and assign it from the
# already pending one.
2005-07-27 22:19:01 +00:00
Johannes Schlüter
f2fab902c4 fix typos 2005-06-16 21:27:51 +00:00
Marcus Boerger
ae35d25940 - Update 2005-05-30 20:10:38 +00:00
Marcus Boerger
626d781afd - Execute both RecursiveIteratorIterator::beginChildren() and endChildren()
on the same level (while the actual child is available).
2005-05-14 16:40:58 +00:00
Marcus Boerger
d6d9b15ef7 - Add another note 2005-05-03 22:28:44 +00:00
Marcus Boerger
177ea26dc1 - Make line counting work with FileObject::fgetc()
- Add a test for FileObject::fgetc()
- Update docs
2005-05-03 22:18:19 +00:00