Verzeichnisstruktur phpBB-3.2.0
- Veröffentlicht
- 06.01.2017
So funktioniert es
|
Auf das letzte Element klicken. Dies geht jeweils ein Schritt zurück |
Auf das Icon klicken, dies öffnet das Verzeichnis. Nochmal klicken schließt das Verzeichnis. |
|
(Beispiel Datei-Icons)
|
Auf das Icon klicken um den Quellcode anzuzeigen |
ArrayStack.php
01 <?php
02 /**
03 * Zend Framework (http://framework.zend.com/)
04 *
05 * @link http://github.com/zendframework/zf2 for the canonical source repository
06 * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
07 * @license http://framework.zend.com/license/new-bsd New BSD License
08 */
09
10 namespace Zend\Stdlib;
11
12 use ArrayIterator;
13 use ArrayObject as PhpArrayObject;
14
15 /**
16 * ArrayObject that acts as a stack with regards to iteration
17 */
18 class ArrayStack extends PhpArrayObject
19 {
20 /**
21 * Retrieve iterator
22 *
23 * Retrieve an array copy of the object, reverse its order, and return an
24 * ArrayIterator with that reversed array.
25 *
26 * @return ArrayIterator
27 */
28 public function getIterator()
29 {
30 $array = $this->getArrayCopy();
31 return new ArrayIterator(array_reverse($array));
32 }
33 }
34