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 |
CallbackFilterIterator.php
01 <?php
02
03 /*
04 * This file is part of the Symfony package.
05 *
06 * (c) Fabien Potencier <fabien@symfony.com>
07 *
08 * For the full copyright and license information, please view the LICENSE
09 * file that was distributed with this source code.
10 */
11
12 class CallbackFilterIterator extends FilterIterator
13 {
14 private $iterator;
15 private $callback;
16
17 public function __construct(Iterator $iterator, $callback)
18 {
19 $this->iterator = $iterator;
20 $this->callback = $callback;
21 parent::__construct($iterator);
22 }
23
24 public function accept()
25 {
26 return call_user_func($this->callback, $this->current(), $this->key(), $this->iterator);
27 }
28 }
29