Verzeichnisstruktur phpBB-3.3.16


Veröffentlicht
27.04.2026

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

CollectionProxy.php

Zuletzt modifiziert: 01.05.2026, 11:28 - Dateigröße: 2.92 KiB


 001  <?php
 002   
 003  /**
 004  * @package   s9e\TextFormatter
 005  * @copyright Copyright (c) 2010-2022 The s9e authors
 006  * @license   http://www.opensource.org/licenses/mit-license.php The MIT License
 007  */
 008  namespace s9e\TextFormatter\Configurator\Traits;
 009   
 010  /**
 011  * Allows an object to act as a proxy for a NormalizedCollection stored in $this->collection
 012  *
 013  * @property \s9e\TextFormatter\Collections\NormalizedCollection $collection
 014  *
 015  * @method mixed   add(string $key, mixed $value)
 016  * @method array   asConfig()
 017  * @method bool    contains(mixed $value)
 018  * @method void    delete(string $key)
 019  * @method bool    exists(string $key)
 020  * @method mixed   get(string $key)
 021  * @method mixed   indexOf(mixed $value)
 022  * @method string  normalizeKey(string $key)
 023  * @method mixed   normalizeValue(mixed $value)
 024  * @method string  onDuplicate(string $action)
 025  * @method mixed   set(string $key, mixed $value)
 026  */
 027  trait CollectionProxy
 028  {
 029      /**
 030      * Forward all unknown method calls to $this->collection
 031      *
 032      * @param  string $methodName
 033      * @param  array  $args
 034      * @return mixed
 035      */
 036      public function __call($methodName, $args)
 037      {
 038          return call_user_func_array([$this->collection, $methodName], $args);
 039      }
 040   
 041      //==========================================================================
 042      // ArrayAccess
 043      //==========================================================================
 044   
 045      /**
 046      * @param  string|integer $offset
 047      * @return bool
 048      */
 049      public function offsetExists($offset): bool
 050      {
 051          return isset($this->collection[$offset]);
 052      }
 053   
 054      /**
 055      * @param  string|integer $offset
 056      * @return mixed
 057      */
 058      #[\ReturnTypeWillChange]
 059      public function offsetGet($offset)
 060      {
 061          return $this->collection[$offset];
 062      }
 063   
 064      /**
 065      * @param  string|integer $offset
 066      * @param  mixed          $value
 067      * @return void
 068      */
 069      public function offsetSet($offset, $value): void
 070      {
 071          $this->collection[$offset] = $value;
 072      }
 073   
 074      /**
 075      * @param  string|integer $offset
 076      * @return void
 077      */
 078      public function offsetUnset($offset): void
 079      {
 080          unset($this->collection[$offset]);
 081      }
 082   
 083      //==========================================================================
 084      // Countable
 085      //==========================================================================
 086   
 087      /**
 088      * @return integer
 089      */
 090      public function count(): int
 091      {
 092          return count($this->collection);
 093      }
 094   
 095      //==========================================================================
 096      // Iterator
 097      //==========================================================================
 098   
 099      /**
 100      * @return mixed
 101      */
 102      #[\ReturnTypeWillChange]
 103      public function current()
 104      {
 105          return $this->collection->current();
 106      }
 107   
 108      /**
 109      * @return string|integer
 110      */
 111      #[\ReturnTypeWillChange]
 112      public function key()
 113      {
 114          return $this->collection->key();
 115      }
 116   
 117      /**
 118      * @return mixed
 119      */
 120      #[\ReturnTypeWillChange]
 121      public function next()
 122      {
 123          return $this->collection->next();
 124      }
 125   
 126      /**
 127      * @return void
 128      */
 129      public function rewind(): void
 130      {
 131          $this->collection->rewind();
 132      }
 133   
 134      /**
 135      * @return boolean
 136      */
 137      public function valid(): bool
 138      {
 139          return $this->collection->valid();
 140      }
 141  }