interface Proxy in Plug 7
Same name in this branch
- 7 lib/doctrine/common/lib/Doctrine/Common/Persistence/Proxy.php \Doctrine\Common\Persistence\Proxy
- 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> @author Marco Pivetta <ocramius@gmail.com> @since 2.4
Hierarchy
Expanded class hierarchy of Proxy
All classes that implement Proxy
4 files declare their use of Proxy
- ProxyLogicTest.php in lib/
doctrine/ common/ tests/ Doctrine/ Tests/ Common/ Proxy/ ProxyLogicTest.php - ProxyMagicMethodsTest.php in lib/
doctrine/ common/ tests/ Doctrine/ Tests/ Common/ Proxy/ ProxyMagicMethodsTest.php - RuntimePublicReflectionProperty.php in lib/
doctrine/ common/ lib/ Doctrine/ Common/ Reflection/ RuntimePublicReflectionProperty.php - RuntimePublicReflectionPropertyTest.php in lib/
doctrine/ common/ tests/ Doctrine/ Tests/ Common/ Reflection/ RuntimePublicReflectionPropertyTest.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
File
- lib/
doctrine/ common/ lib/ Doctrine/ Common/ Proxy/ Proxy.php, line 32
Namespace
Doctrine\Common\ProxyView source
interface Proxy extends BaseProxy {
/**
* Marks the proxy as initialized or not.
*
* @param boolean $initialized
*
* @return void
*/
public function __setInitialized($initialized);
/**
* Sets the initializer callback to be used when initializing the proxy. That
* initializer should accept 3 parameters: $proxy, $method and $params. Those
* are respectively the proxy object that is being initialized, the method name
* that triggered initialization and the parameters passed to that method.
*
* @param Closure|null $initializer
*
* @return void
*/
public function __setInitializer(Closure $initializer = null);
/**
* Retrieves the initializer callback used to initialize the proxy.
*
* @see __setInitializer
*
* @return Closure|null
*/
public function __getInitializer();
/**
* Sets the callback to be used when cloning the proxy. That initializer should accept
* a single parameter, which is the cloned proxy instance itself.
*
* @param Closure|null $cloner
*
* @return void
*/
public function __setCloner(Closure $cloner = null);
/**
* Retrieves the callback to be used when cloning the proxy.
*
* @see __setCloner
*
* @return Closure|null
*/
public function __getCloner();
/**
* Retrieves the list of lazy loaded properties for a given proxy
*
* @return array Keys are the property names, and values are the default values
* for those properties.
*/
public function __getLazyProperties();
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Proxy:: |
constant | Marker for Proxy class names. | ||
Proxy:: |
constant | Length of the proxy marker. | ||
Proxy:: |
public | function | Retrieves the callback to be used when cloning the proxy. | 1 |
Proxy:: |
public | function | Retrieves the initializer callback used to initialize the proxy. | 1 |
Proxy:: |
public | function | Retrieves the list of lazy loaded properties for a given proxy | 1 |
Proxy:: |
public | function | Returns whether this proxy is initialized or not. | 1 |
Proxy:: |
public | function | Initializes this proxy if its not yet initialized. | 1 |
Proxy:: |
public | function | Sets the callback to be used when cloning the proxy. That initializer should accept a single parameter, which is the cloned proxy instance itself. | 1 |
Proxy:: |
public | function | Marks the proxy as initialized or not. | 1 |
Proxy:: |
public | function | Sets the initializer callback to be used when initializing the proxy. That initializer should accept 3 parameters: $proxy, $method and $params. Those are respectively the proxy object that is being initialized, the method name that triggered… | 1 |