You are here

class NativeProxy in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/http-foundation/Session/Storage/Proxy/NativeProxy.php \Symfony\Component\HttpFoundation\Session\Storage\Proxy\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 vendor/symfony/http-foundation/Tests/Session/Storage/Proxy/NativeProxyTest.php
NativeSessionStorage.php in vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php
NativeSessionStorageTest.php in vendor/symfony/http-foundation/Tests/Session/Storage/NativeSessionStorageTest.php

File

vendor/symfony/http-foundation/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 bool 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.