148 lines
5.8 KiB
HTML
148 lines
5.8 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
|
|
|
<html lang="en">
|
|
<head>
|
|
|
|
<meta name="generator" content="PHPDoctor 2RC4 (http://phpdoctor.sourceforge.net/)">
|
|
<meta name="when" content="Wed, 14 Apr 2010 15:12:05 +0000">
|
|
|
|
<link rel="stylesheet" type="text/css" href="../../../stylesheet.css">
|
|
<link rel="start" href="../../../overview-summary.html">
|
|
|
|
<title>ProxyFactory (Doctrine)</title>
|
|
|
|
</head>
|
|
<body id="definition" onload="parent.document.title=document.title;">
|
|
|
|
<div class="header">
|
|
<h1>Doctrine</h1>
|
|
<ul>
|
|
<li><a href="../../../overview-summary.html">Overview</a></li>
|
|
<li><a href="../../../doctrine/orm/proxy/package-summary.html">Namespace</a></li>
|
|
<li class="active">Class</li>
|
|
<li><a href="../../../doctrine/orm/proxy/package-tree.html">Tree</a></li>
|
|
<li><a href="../../../deprecated-list.html">Deprecated</a></li>
|
|
<li><a href="../../../index-all.html">Index</a></li>
|
|
</ul>
|
|
</div>
|
|
|
|
<div class="small_links">
|
|
<a href="../../../index.html" target="_top">Frames</a>
|
|
<a href="../../../doctrine/orm/proxy/proxyfactory.html" target="_top">No frames</a>
|
|
</div>
|
|
<div class="small_links">
|
|
Summary: <a href="#summary_field">Field</a> | <a href="#summary_method">Method</a> | <a href="#summary_constr">Constr</a>
|
|
Detail: <a href="#detail_field">Field</a> | <a href="#detail_method">Method</a> | <a href="#summary_constr">Constr</a>
|
|
</div>
|
|
<hr>
|
|
|
|
<div class="qualifiedName">Doctrine\ORM\Proxy\ProxyFactory</div>
|
|
<div class="location">/Doctrine/ORM/Proxy/ProxyFactory.php at line 35</div>
|
|
|
|
<h1>Class ProxyFactory</h1>
|
|
|
|
<pre class="tree"><strong>ProxyFactory</strong><br /></pre>
|
|
|
|
<hr>
|
|
|
|
<p class="signature">public class <strong>ProxyFactory</strong></p>
|
|
|
|
<div class="comment" id="overview_description"><p>This factory is used to create proxy objects for entities at runtime.</p></div>
|
|
|
|
<dl>
|
|
<dt>Author:</dt>
|
|
<dd>Roman Borschel <roman@code-factory.org></dd>
|
|
<dd>Giorgio Sironi <piccoloprincipeazzurro@gmail.com></dd>
|
|
<dt>Since:</dt>
|
|
<dd>2.0</dd>
|
|
</dl>
|
|
<hr>
|
|
|
|
<table id="summary_constr">
|
|
<tr><th colspan="2">Constructor Summary</th></tr>
|
|
<tr>
|
|
<td class="description"><p class="name"><a href="#ProxyFactory()">ProxyFactory</a>(<a href="../../../doctrine/orm/entitymanager.html">EntityManager</a> em, string proxyDir, string proxyNs, boolean autoGenerate)</p><p class="description">Initializes a new instance of the ProxyFactory class that is
|
|
connected to the given EntityManager.</p></td>
|
|
</tr>
|
|
</table>
|
|
|
|
<table id="summary_method">
|
|
<tr><th colspan="2">Method Summary</th></tr>
|
|
<tr>
|
|
<td class="type"> void</td>
|
|
<td class="description"><p class="name"><a href="#generateProxyClasses()">generateProxyClasses</a>(array classes, string toDir)</p><p class="description">Generates proxy classes for all given classes.</p></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="type"> object</td>
|
|
<td class="description"><p class="name"><a href="#getProxy()">getProxy</a>(string className, mixed identifier)</p><p class="description">Gets a reference proxy instance for the entity of the given type and identified by
|
|
the given identifier.</p></td>
|
|
</tr>
|
|
</table>
|
|
|
|
<h2 id="detail_constr">Constructor Detail</h2>
|
|
<div class="location">/Doctrine/ORM/Proxy/ProxyFactory.php at line 55</div>
|
|
<h3 id="ProxyFactory()">ProxyFactory</h3>
|
|
<code class="signature">public <strong>ProxyFactory</strong>(<a href="../../../doctrine/orm/entitymanager.html">EntityManager</a> em, string proxyDir, string proxyNs, boolean autoGenerate)</code>
|
|
<div class="details">
|
|
<p>Initializes a new instance of the <tt>ProxyFactory</tt> class that is
|
|
connected to the given <tt>EntityManager</tt>.</p><dl>
|
|
<dt>Parameters:</dt>
|
|
<dd>em - The EntityManager the new factory works for.</dd>
|
|
<dd>proxyDir - The directory to use for the proxy classes. It must exist.</dd>
|
|
<dd>proxyNs - The namespace to use for the proxy classes.</dd>
|
|
<dd>autoGenerate - Whether to automatically generate proxy classes.</dd>
|
|
</dl>
|
|
</div>
|
|
|
|
<hr>
|
|
|
|
<h2 id="detail_method">Method Detail</h2>
|
|
<div class="location">/Doctrine/ORM/Proxy/ProxyFactory.php at line 105</div>
|
|
<h3 id="generateProxyClasses()">generateProxyClasses</h3>
|
|
<code class="signature">public void <strong>generateProxyClasses</strong>(array classes, string toDir)</code>
|
|
<div class="details">
|
|
<p>Generates proxy classes for all given classes.</p><dl>
|
|
<dt>Parameters:</dt>
|
|
<dd>classes - The classes (ClassMetadata instances) for which to generate proxies.</dd>
|
|
<dd>toDir - The target directory of the proxy classes. If not specified, the directory configured on the Configuration of the EntityManager used by this factory is used.</dd>
|
|
</dl>
|
|
</div>
|
|
|
|
<hr>
|
|
|
|
<div class="location">/Doctrine/ORM/Proxy/ProxyFactory.php at line 77</div>
|
|
<h3 id="getProxy()">getProxy</h3>
|
|
<code class="signature">public object <strong>getProxy</strong>(string className, mixed identifier)</code>
|
|
<div class="details">
|
|
<p>Gets a reference proxy instance for the entity of the given type and identified by
|
|
the given identifier.</p></div>
|
|
|
|
<hr>
|
|
|
|
<div class="header">
|
|
<h1>Doctrine</h1>
|
|
<ul>
|
|
<li><a href="../../../overview-summary.html">Overview</a></li>
|
|
<li><a href="../../../doctrine/orm/proxy/package-summary.html">Namespace</a></li>
|
|
<li class="active">Class</li>
|
|
<li><a href="../../../doctrine/orm/proxy/package-tree.html">Tree</a></li>
|
|
<li><a href="../../../deprecated-list.html">Deprecated</a></li>
|
|
<li><a href="../../../index-all.html">Index</a></li>
|
|
</ul>
|
|
</div>
|
|
|
|
<div class="small_links">
|
|
<a href="../../../index.html" target="_top">Frames</a>
|
|
<a href="../../../doctrine/orm/proxy/proxyfactory.html" target="_top">No frames</a>
|
|
</div>
|
|
<div class="small_links">
|
|
Summary: <a href="#summary_field">Field</a> | <a href="#summary_method">Method</a> | <a href="#summary_constr">Constr</a>
|
|
Detail: <a href="#detail_field">Field</a> | <a href="#detail_method">Method</a> | <a href="#summary_constr">Constr</a>
|
|
</div>
|
|
<hr>
|
|
|
|
<p id="footer">This document was generated by <a href="http://peej.github.com/phpdoctor/">PHPDoctor: The PHP Documentation Creator</a></p>
|
|
|
|
</body>
|
|
|
|
</html> |