Verzeichnisstruktur phpBB-3.3.15


Veröffentlicht
28.08.2024

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

SessionHandlerProxy.php

Zuletzt modifiziert: 02.04.2025, 15:04 - Dateigröße: 2.26 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\HttpFoundation\Session\Storage\Proxy;
013   
014  /**
015   * @author Drak <drak@zikula.org>
016   */
017  class SessionHandlerProxy extends AbstractProxy implements \SessionHandlerInterface, \SessionUpdateTimestampHandlerInterface
018  {
019      protected $handler;
020   
021      public function __construct(\SessionHandlerInterface $handler)
022      {
023          $this->handler = $handler;
024          $this->wrapper = ($handler instanceof \SessionHandler);
025          $this->saveHandlerName = $this->wrapper ? ini_get('session.save_handler') : 'user';
026      }
027   
028      /**
029       * @return \SessionHandlerInterface
030       */
031      public function getHandler()
032      {
033          return $this->handler;
034      }
035   
036      // \SessionHandlerInterface
037   
038      /**
039       * {@inheritdoc}
040       */
041      public function open($savePath, $sessionName)
042      {
043          return (bool) $this->handler->open($savePath, $sessionName);
044      }
045   
046      /**
047       * {@inheritdoc}
048       */
049      public function close()
050      {
051          return (bool) $this->handler->close();
052      }
053   
054      /**
055       * {@inheritdoc}
056       */
057      public function read($sessionId)
058      {
059          return (string) $this->handler->read($sessionId);
060      }
061   
062      /**
063       * {@inheritdoc}
064       */
065      public function write($sessionId, $data)
066      {
067          return (bool) $this->handler->write($sessionId, $data);
068      }
069   
070      /**
071       * {@inheritdoc}
072       */
073      public function destroy($sessionId)
074      {
075          return (bool) $this->handler->destroy($sessionId);
076      }
077   
078      /**
079       * @return bool
080       */
081      public function gc($maxlifetime)
082      {
083          return (bool) $this->handler->gc($maxlifetime);
084      }
085   
086      /**
087       * {@inheritdoc}
088       */
089      public function validateId($sessionId)
090      {
091          return !$this->handler instanceof \SessionUpdateTimestampHandlerInterface || $this->handler->validateId($sessionId);
092      }
093   
094      /**
095       * {@inheritdoc}
096       */
097      public function updateTimestamp($sessionId, $data)
098      {
099          return $this->handler instanceof \SessionUpdateTimestampHandlerInterface ? $this->handler->updateTimestamp($sessionId, $data) : $this->write($sessionId, $data);
100      }
101  }
102