You are here

interface Proxy in Plug 7

Same name in this branch
  1. 7 lib/doctrine/common/lib/Doctrine/Common/Persistence/Proxy.php \Doctrine\Common\Persistence\Proxy
  2. 7 lib/doctrine/common/lib/Doctrine/Common/Proxy/Proxy.php \Doctrine\Common\Proxy\Proxy

Interface for proxy classes.

@author Roman Borschel <roman@code-factory.org> @since 2.2

Hierarchy

  • interface \Doctrine\Common\Persistence\Proxy

Expanded class hierarchy of Proxy

All classes that implement Proxy

4 files declare their use of Proxy
ClassUtils.php in lib/doctrine/common/lib/Doctrine/Common/Util/ClassUtils.php
Debug.php in lib/doctrine/common/lib/Doctrine/Common/Util/Debug.php
InvalidArgumentException.php in lib/doctrine/common/lib/Doctrine/Common/Proxy/Exception/InvalidArgumentException.php
Proxy.php in lib/doctrine/common/lib/Doctrine/Common/Proxy/Proxy.php
9 string references to 'Proxy'
ProxyClassGeneratorTest::setUp in lib/doctrine/common/tests/Doctrine/Tests/Common/Proxy/ProxyClassGeneratorTest.php
ProxyClassGeneratorTest::testClassWithCallableTypeHintOnProxiedMethod in lib/doctrine/common/tests/Doctrine/Tests/Common/Proxy/ProxyClassGeneratorTest.php
ProxyClassGeneratorTest::testClassWithInvalidTypeHintOnProxiedMethod in lib/doctrine/common/tests/Doctrine/Tests/Common/Proxy/ProxyClassGeneratorTest.php
ProxyClassGeneratorTest::testClassWithSleepProxyGeneration in lib/doctrine/common/tests/Doctrine/Tests/Common/Proxy/ProxyClassGeneratorTest.php
ProxyClassGeneratorTest::testClassWithStaticPropertyProxyGeneration in lib/doctrine/common/tests/Doctrine/Tests/Common/Proxy/ProxyClassGeneratorTest.php
Check that the proxy doesn't serialize static properties (in __sleep() method) @group DCOM-212

... See full list

File

lib/doctrine/common/lib/Doctrine/Common/Persistence/Proxy.php, line 28

Namespace

Doctrine\Common\Persistence
View source
interface Proxy {

  /**
   * Marker for Proxy class names.
   *
   * @var string
   */
  const MARKER = '__CG__';

  /**
   * Length of the proxy marker.
   *
   * @var integer
   */
  const MARKER_LENGTH = 6;

  /**
   * Initializes this proxy if its not yet initialized.
   *
   * Acts as a no-op if already initialized.
   *
   * @return void
   */
  public function __load();

  /**
   * Returns whether this proxy is initialized or not.
   *
   * @return bool
   */
  public function __isInitialized();

}

Members

Namesort descending Modifiers Type Description Overrides
Proxy::MARKER constant Marker for Proxy class names.
Proxy::MARKER_LENGTH constant Length of the proxy marker.
Proxy::__isInitialized public function Returns whether this proxy is initialized or not. 1
Proxy::__load public function Initializes this proxy if its not yet initialized. 1