From 85254498dc064948055fd0ef02d712dca73dd0ff Mon Sep 17 00:00:00 2001 From: Etienne Kneuss Date: Mon, 21 Jan 2008 21:54:00 +0000 Subject: [PATCH] Add doxygen docs for SplDoublyLinkedList, SplStack, SplQueue --- NEWS | 2 + ext/spl/internal/spldoublylinkedlist.inc | 100 +++++++++++++++++++++++ ext/spl/internal/splqueue.inc | 50 ++++++++++++ ext/spl/internal/splstack.inc | 35 ++++++++ ext/spl/spl.php | 16 +++- 5 files changed, 199 insertions(+), 4 deletions(-) create mode 100644 ext/spl/internal/spldoublylinkedlist.inc create mode 100644 ext/spl/internal/splqueue.inc create mode 100644 ext/spl/internal/splstack.inc diff --git a/NEWS b/NEWS index f437e25c227..809f41a95b4 100644 --- a/NEWS +++ b/NEWS @@ -59,5 +59,7 @@ PHP NEWS - Added shm_has_var() function. (Mike) - Added str_getcsv() function. (Sara) - Added ext/hash support to ext/session's ID generator. (Sara) +- Added SplDoublyLinkedList, SplStack, SplQueue classes. (Etienne) - Fixed bug #40325 (Vary: header missing in gzip output handlers). (Mike) + diff --git a/ext/spl/internal/spldoublylinkedlist.inc b/ext/spl/internal/spldoublylinkedlist.inc new file mode 100644 index 00000000000..dffcefd2557 --- /dev/null +++ b/ext/spl/internal/spldoublylinkedlist.inc @@ -0,0 +1,100 @@ + diff --git a/ext/spl/internal/splqueue.inc b/ext/spl/internal/splqueue.inc new file mode 100644 index 00000000000..aaa62db843f --- /dev/null +++ b/ext/spl/internal/splqueue.inc @@ -0,0 +1,50 @@ + diff --git a/ext/spl/internal/splstack.inc b/ext/spl/internal/splstack.inc new file mode 100644 index 00000000000..a83d2c4b8e9 --- /dev/null +++ b/ext/spl/internal/splstack.inc @@ -0,0 +1,35 @@ + diff --git a/ext/spl/spl.php b/ext/spl/spl.php index bb6af7e050f..ee898693d22 100755 --- a/ext/spl/spl.php +++ b/ext/spl/spl.php @@ -105,13 +105,21 @@ * - interface SplSubject * - class SplObjectStorage * - * 8) @ref Examples + * 8) Datastructures + * + * SPL proposes a set of datastructures implemented internally. + * + * - class SplDoublyLinkedList + * - class SplStack extends SplDoublyLinkedList + * - class SplQueue extends SplDoublyLinkedList + * + * 9) @ref Examples * * The classes and interfaces in this group are contained as PHP code in the * examples subdirectory of ext/SPL. Sooner or later they will be moved to * c-code. * - * 9) Some articles about SPL: + * 10) Some articles about SPL: * - Introduction to Standard PHP Library (SPL) * - Introducing PHP 5's Standard Library * - Iterators in PHP5 @@ -120,13 +128,13 @@ * - The Standard PHP Library, Part 2 * - Die Standard PHP Library (SPL) [german] * - * 10) Talks on SPL: + * 11) Talks on SPL: * - SPL Update [pps], [pdf] * - Happy SPLing [pps], [pdf] * - From engine overloading to SPL [pps], [pdf] * - SPL for the masses [pps], [pdf] * - * 11) Debug sessions: + * 12) Debug sessions: * - Debug session 1 [pps], [pdf] * - Debug session 2 [pps], [pdf], [swf] * - Debug session 3 [pps], [pdf]