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.
Auf den Verzeichnisnamen klicken, dies zeigt nur das Verzeichnis mit Inhalt an

      (Beispiel Datei-Icons)

Auf das Icon klicken um den Quellcode anzuzeigen

PhpAdapter.php

Zuletzt modifiziert: 09.10.2024, 12:56 - Dateigröße: 2.86 KiB


 001  <?php
 002   
 003  /*
 004   * This file is part of the Symfony package.
 005   *
 006   * (c) Fabien Potencier <fabien@symfony.com>
 007   *
 008   * For the full copyright and license information, please view the LICENSE
 009   * file that was distributed with this source code.
 010   */
 011   
 012  namespace Symfony\Component\Finder\Adapter;
 013   
 014  @trigger_error('The '.__NAMESPACE__.'\PhpAdapter class is deprecated since version 2.8 and will be removed in 3.0. Use directly the Finder class instead.', E_USER_DEPRECATED);
 015   
 016  use Symfony\Component\Finder\Iterator;
 017   
 018  /**
 019   * PHP finder engine implementation.
 020   *
 021   * @author Jean-François Simon <contact@jfsimon.fr>
 022   *
 023   * @deprecated since 2.8, to be removed in 3.0. Use Finder instead.
 024   */
 025  class PhpAdapter extends AbstractAdapter
 026  {
 027      /**
 028       * {@inheritdoc}
 029       */
 030      public function searchInDirectory($dir)
 031      {
 032          $flags = \RecursiveDirectoryIterator::SKIP_DOTS;
 033   
 034          if ($this->followLinks) {
 035              $flags |= \RecursiveDirectoryIterator::FOLLOW_SYMLINKS;
 036          }
 037   
 038          $iterator = new Iterator\RecursiveDirectoryIterator($dir, $flags, $this->ignoreUnreadableDirs);
 039   
 040          if ($this->exclude) {
 041              $iterator = new Iterator\ExcludeDirectoryFilterIterator($iterator, $this->exclude);
 042          }
 043   
 044          $iterator = new \RecursiveIteratorIterator($iterator, \RecursiveIteratorIterator::SELF_FIRST);
 045   
 046          if ($this->minDepth > 0 || $this->maxDepth < PHP_INT_MAX) {
 047              $iterator = new Iterator\DepthRangeFilterIterator($iterator, $this->minDepth, $this->maxDepth);
 048          }
 049   
 050          if ($this->mode) {
 051              $iterator = new Iterator\FileTypeFilterIterator($iterator, $this->mode);
 052          }
 053   
 054          if ($this->names || $this->notNames) {
 055              $iterator = new Iterator\FilenameFilterIterator($iterator, $this->names, $this->notNames);
 056          }
 057   
 058          if ($this->contains || $this->notContains) {
 059              $iterator = new Iterator\FilecontentFilterIterator($iterator, $this->contains, $this->notContains);
 060          }
 061   
 062          if ($this->sizes) {
 063              $iterator = new Iterator\SizeRangeFilterIterator($iterator, $this->sizes);
 064          }
 065   
 066          if ($this->dates) {
 067              $iterator = new Iterator\DateRangeFilterIterator($iterator, $this->dates);
 068          }
 069   
 070          if ($this->filters) {
 071              $iterator = new Iterator\CustomFilterIterator($iterator, $this->filters);
 072          }
 073   
 074          if ($this->paths || $this->notPaths) {
 075              $iterator = new Iterator\PathFilterIterator($iterator, $this->paths, $this->notPaths);
 076          }
 077   
 078          if ($this->sort) {
 079              $iteratorAggregate = new Iterator\SortableIterator($iterator, $this->sort);
 080              $iterator = $iteratorAggregate->getIterator();
 081          }
 082   
 083          return $iterator;
 084      }
 085   
 086      /**
 087       * {@inheritdoc}
 088       */
 089      public function getName()
 090      {
 091          return 'php';
 092      }
 093   
 094      /**
 095       * {@inheritdoc}
 096       */
 097      protected function canBeUsed()
 098      {
 099          return true;
 100      }
 101  }
 102