class NativeProxy

NativeProxy.

This proxy is built-in session handlers in PHP 5.3.x

@author Drak <drak@zikula.org>

Hierarchy

  • class \Symfony\Component\HttpFoundation\Session\Storage\Proxy\AbstractProxy
    • class \Symfony\Component\HttpFoundation\Session\Storage\Proxy\NativeProxy

Expanded class hierarchy of NativeProxy

3 files declare their use of NativeProxy
NativeProxyTest.php in drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Tests/Session/Storage/Proxy/NativeProxyTest.php
NativeSessionStorage.php in drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Session/Storage/NativeSessionStorage.php
NativeSessionStorageTest.php in drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Tests/Session/Storage/NativeSessionStorageTest.php

File

drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Session/Storage/Proxy/NativeProxy.php, line 21

Namespace

Symfony\Component\HttpFoundation\Session\Storage\Proxy
View source
class NativeProxy extends AbstractProxy {

  /**
   * Constructor.
   */
  public function __construct() {

    // this makes an educated guess as to what the handler is since it should already be set.
    $this->saveHandlerName = ini_get('session.save_handler');
  }

  /**
   * Returns true if this handler wraps an internal PHP session save handler using \SessionHandler.
   *
   * @return Boolean False.
   */
  public function isWrapper() {
    return false;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
AbstractProxy::$active protected property
AbstractProxy::$saveHandlerName protected property
AbstractProxy::$wrapper protected property Flag if handler wraps an internal PHP session handler (using \SessionHandler).
AbstractProxy::getId public function Gets the session ID.
AbstractProxy::getName public function Gets the session name.
AbstractProxy::getSaveHandlerName public function Gets the session.save_handler name.
AbstractProxy::isActive public function Has a session started?
AbstractProxy::isSessionHandlerInterface public function Is this proxy handler and instance of \SessionHandlerInterface.
AbstractProxy::setActive public function Sets the active flag.
AbstractProxy::setId public function Sets the session ID.
AbstractProxy::setName public function Sets the session name.
NativeProxy::isWrapper public function Returns true if this handler wraps an internal PHP session save handler using \SessionHandler. Overrides AbstractProxy::isWrapper
NativeProxy::__construct public function Constructor.