556 lines
111 KiB
HTML
556 lines
111 KiB
HTML
|
|
||
|
<div id="content">
|
||
|
<h1 align="center">Source for file Doctrine.php</h1>
|
||
|
<p>Documentation is available at <a href="../Doctrine/_Doctrine.php.html">Doctrine.php</a></p>
|
||
|
<div class="src-code"><span class="php">
|
||
|
<ol><li><div class="src-line"><a name="a1"></a><span class="src-php"><?php</span></div></li>
|
||
|
<li><div class="src-line"><a name="a2"></a><span class="src-comm">/*</span></div></li>
|
||
|
<li><div class="src-line"><a name="a3"></a><span class="src-comm"> * $Id: Doctrine.php 2255 2007-08-16 22:42:35Z Jonathan.Wage $</span></div></li>
|
||
|
<li><div class="src-line"><a name="a4"></a><span class="src-comm"> *</span></div></li>
|
||
|
<li><div class="src-line"><a name="a5"></a><span class="src-comm"> * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS</span></div></li>
|
||
|
<li><div class="src-line"><a name="a6"></a><span class="src-comm"> * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT</span></div></li>
|
||
|
<li><div class="src-line"><a name="a7"></a><span class="src-comm"> * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR</span></div></li>
|
||
|
<li><div class="src-line"><a name="a8"></a><span class="src-comm"> * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT</span></div></li>
|
||
|
<li><div class="src-line"><a name="a9"></a><span class="src-comm"> * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,</span></div></li>
|
||
|
<li><div class="src-line"><a name="a10"></a><span class="src-comm"> * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT</span></div></li>
|
||
|
<li><div class="src-line"><a name="a11"></a><span class="src-comm"> * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,</span></div></li>
|
||
|
<li><div class="src-line"><a name="a12"></a><span class="src-comm"> * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY</span></div></li>
|
||
|
<li><div class="src-line"><a name="a13"></a><span class="src-comm"> * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT</span></div></li>
|
||
|
<li><div class="src-line"><a name="a14"></a><span class="src-comm"> * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE</span></div></li>
|
||
|
<li><div class="src-line"><a name="a15"></a><span class="src-comm"> * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.</span></div></li>
|
||
|
<li><div class="src-line"><a name="a16"></a><span class="src-comm"> *</span></div></li>
|
||
|
<li><div class="src-line"><a name="a17"></a><span class="src-comm"> * This software consists of voluntary contributions made by many individuals</span></div></li>
|
||
|
<li><div class="src-line"><a name="a18"></a><span class="src-comm"> * and is licensed under the LGPL. For more information, see</span></div></li>
|
||
|
<li><div class="src-line"><a name="a19"></a><span class="src-comm"> * <http://www.phpdoctrine.com>.</span></div></li>
|
||
|
<li><div class="src-line"><a name="a20"></a><span class="src-comm"> */</span></div></li>
|
||
|
<li><div class="src-line"><a name="a21"></a> </div></li>
|
||
|
<li><div class="src-line"><a name="a22"></a><span class="src-doc">/**</span></div></li>
|
||
|
<li><div class="src-line"><a name="a23"></a><span class="src-doc"> * Doctrine</span></div></li>
|
||
|
<li><div class="src-line"><a name="a24"></a><span class="src-doc"> * the base class of Doctrine framework</span></div></li>
|
||
|
<li><div class="src-line"><a name="a25"></a><span class="src-doc"> *</span></div></li>
|
||
|
<li><div class="src-line"><a name="a26"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@package</span><span class="src-doc"> Doctrine</span></div></li>
|
||
|
<li><div class="src-line"><a name="a27"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@author</span><span class="src-doc"> Konsta Vesterinen <kvesteri@cc.hut.fi></span></div></li>
|
||
|
<li><div class="src-line"><a name="a28"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@author</span><span class="src-doc"> Lukas Smith <smith@pooteeweet.org> (PEAR MDB2 library)</span></div></li>
|
||
|
<li><div class="src-line"><a name="a29"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@license</span><span class="src-doc"> http://www.opensource.org/licenses/lgpl-license.php LGPL</span></div></li>
|
||
|
<li><div class="src-line"><a name="a30"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@category</span><span class="src-doc"> Object Relational Mapping</span></div></li>
|
||
|
<li><div class="src-line"><a name="a31"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@link</span><span class="src-doc"> www.phpdoctrine.com</span></div></li>
|
||
|
<li><div class="src-line"><a name="a32"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@since</span><span class="src-doc"> 1.0</span></div></li>
|
||
|
<li><div class="src-line"><a name="a33"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@version</span><span class="src-doc"> $Revision: 2255 $</span></div></li>
|
||
|
<li><div class="src-line"><a name="a34"></a><span class="src-doc"> */</span></div></li>
|
||
|
<li><div class="src-line"><a name="a35"></a><span class="src-key">final </span><span class="src-key">class </span><a href="../Doctrine/Doctrine.html">Doctrine</a></div></li>
|
||
|
<li><div class="src-line"><a name="a36"></a><span class="src-sym">{</span></div></li>
|
||
|
<li><div class="src-line"><a name="a37"></a> <span class="src-doc">/**</span></div></li>
|
||
|
<li><div class="src-line"><a name="a38"></a><span class="src-doc"> * ERROR CONSTANTS</span></div></li>
|
||
|
<li><div class="src-line"><a name="a39"></a><span class="src-doc"> */</span></div></li>
|
||
|
<li><div class="src-line"><a name="a40"></a> <span class="src-key">const </span><span class="src-id">ERR </span>= -<span class="src-num">1</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a41"></a> <span class="src-key">const </span><span class="src-id">ERR_SYNTAX </span>= -<span class="src-num">2</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a42"></a> <span class="src-key">const </span><span class="src-id">ERR_CONSTRAINT </span>= -<span class="src-num">3</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a43"></a> <span class="src-key">const </span><span class="src-id">ERR_NOT_FOUND </span>= -<span class="src-num">4</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a44"></a> <span class="src-key">const </span><span class="src-id">ERR_ALREADY_EXISTS </span>= -<span class="src-num">5</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a45"></a> <span class="src-key">const </span><span class="src-id">ERR_UNSUPPORTED </span>= -<span class="src-num">6</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a46"></a> <span class="src-key">const </span><span class="src-id">ERR_MISMATCH </span>= -<span class="src-num">7</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a47"></a> <span class="src-key">const </span><span class="src-id">ERR_INVALID </span>= -<span class="src-num">8</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a48"></a> <span class="src-key">const </span><span class="src-id">ERR_NOT_CAPABLE </span>= -<span class="src-num">9</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a49"></a> <span class="src-key">const </span><span class="src-id">ERR_TRUNCATED </span>= -<span class="src-num">10</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a50"></a> <span class="src-key">const </span><span class="src-id">ERR_INVALID_NUMBER </span>= -<span class="src-num">11</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a51"></a> <span class="src-key">const </span><span class="src-id">ERR_INVALID_DATE </span>= -<span class="src-num">12</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a52"></a> <span class="src-key">const </span><span class="src-id">ERR_DIVZERO </span>= -<span class="src-num">13</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a53"></a> <span class="src-key">const </span><span class="src-id">ERR_NODBSELECTED </span>= -<span class="src-num">14</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a54"></a> <span class="src-key">const </span><span class="src-id">ERR_CANNOT_CREATE </span>= -<span class="src-num">15</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a55"></a> <span class="src-key">const </span><span class="src-id">ERR_CANNOT_DELETE </span>= -<span class="src-num">16</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a56"></a> <span class="src-key">const </span><span class="src-id">ERR_CANNOT_DROP </span>= -<span class="src-num">17</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a57"></a> <span class="src-key">const </span><span class="src-id">ERR_NOSUCHTABLE </span>= -<span class="src-num">18</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a58"></a> <span class="src-key">const </span><span class="src-id">ERR_NOSUCHFIELD </span>= -<span class="src-num">19</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a59"></a> <span class="src-key">const </span><span class="src-id">ERR_NEED_MORE_DATA </span>= -<span class="src-num">20</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a60"></a> <span class="src-key">const </span><span class="src-id">ERR_NOT_LOCKED </span>= -<span class="src-num">21</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a61"></a> <span class="src-key">const </span><span class="src-id">ERR_VALUE_COUNT_ON_ROW </span>= -<span class="src-num">22</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a62"></a> <span class="src-key">const </span><span class="src-id">ERR_INVALID_DSN </span>= -<span class="src-num">23</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a63"></a> <span class="src-key">const </span><span class="src-id">ERR_CONNECT_FAILED </span>= -<span class="src-num">24</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a64"></a> <span class="src-key">const </span><span class="src-id">ERR_EXTENSION_NOT_FOUND </span>= -<span class="src-num">25</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a65"></a> <span class="src-key">const </span><span class="src-id">ERR_NOSUCHDB </span>= -<span class="src-num">26</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a66"></a> <span class="src-key">const </span><span class="src-id">ERR_ACCESS_VIOLATION </span>= -<span class="src-num">27</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a67"></a> <span class="src-key">const </span><span class="src-id">ERR_CANNOT_REPLACE </span>= -<span class="src-num">28</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a68"></a> <span class="src-key">const </span><span class="src-id">ERR_CONSTRAINT_NOT_NULL </span>= -<span class="src-num">29</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a69"></a> <span class="src-key">const </span><span class="src-id">ERR_DEADLOCK </span>= -<span class="src-num">30</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a70"></a> <span class="src-key">const </span><span class="src-id">ERR_CANNOT_ALTER </span>= -<span class="src-num">31</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a71"></a> <span class="src-key">const </span><span class="src-id">ERR_MANAGER </span>= -<span class="src-num">32</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a72"></a> <span class="src-key">const </span><span class="src-id">ERR_MANAGER_PARSE </span>= -<span class="src-num">33</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a73"></a> <span class="src-key">const </span><span class="src-id">ERR_LOADMODULE </span>= -<span class="src-num">34</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a74"></a> <span class="src-key">const </span><span class="src-id">ERR_INSUFFICIENT_DATA </span>= -<span class="src-num">35</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a75"></a> <span class="src-key">const </span><span class="src-id">ERR_CLASS_NAME </span>= -<span class="src-num">36</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a76"></a> </div></li>
|
||
|
<li><div class="src-line"><a name="a77"></a> <span class="src-doc">/**</span></div></li>
|
||
|
<li><div class="src-line"><a name="a78"></a><span class="src-doc"> * PDO derived constants</span></div></li>
|
||
|
<li><div class="src-line"><a name="a79"></a><span class="src-doc"> */</span></div></li>
|
||
|
<li><div class="src-line"><a name="a80"></a> <span class="src-key">const </span><span class="src-id">CASE_LOWER </span>= <span class="src-num">2</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a81"></a> <span class="src-key">const </span><span class="src-id">CASE_NATURAL </span>= <span class="src-num">0</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a82"></a> <span class="src-key">const </span><span class="src-id">CASE_UPPER </span>= <span class="src-num">1</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a83"></a> <span class="src-key">const </span><span class="src-id">CURSOR_FWDONLY </span>= <span class="src-num">0</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a84"></a> <span class="src-key">const </span><span class="src-id">CURSOR_SCROLL </span>= <span class="src-num">1</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a85"></a> <span class="src-key">const </span><span class="src-id">ERRMODE_EXCEPTION </span>= <span class="src-num">2</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a86"></a> <span class="src-key">const </span><span class="src-id">ERRMODE_SILENT </span>= <span class="src-num">0</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a87"></a> <span class="src-key">const </span><span class="src-id">ERRMODE_WARNING </span>= <span class="src-num">1</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a88"></a> <span class="src-key">const </span><span class="src-id">FETCH_ASSOC </span>= <span class="src-num">2</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a89"></a> <span class="src-key">const </span><span class="src-id">FETCH_BOTH </span>= <span class="src-num">4</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a90"></a> <span class="src-key">const </span><span class="src-id">FETCH_BOUND </span>= <span class="src-num">6</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a91"></a> <span class="src-key">const </span><span class="src-id">FETCH_CLASS </span>= <span class="src-num">8</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a92"></a> <span class="src-key">const </span><span class="src-id">FETCH_CLASSTYPE </span>= <span class="src-num">262144</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a93"></a> <span class="src-key">const </span><span class="src-id">FETCH_COLUMN </span>= <span class="src-num">7</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a94"></a> <span class="src-key">const </span><span class="src-id">FETCH_FUNC </span>= <span class="src-num">10</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a95"></a> <span class="src-key">const </span><span class="src-id">FETCH_GROUP </span>= <span class="src-num">65536</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a96"></a> <span class="src-key">const </span><span class="src-id">FETCH_INTO </span>= <span class="src-num">9</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a97"></a> <span class="src-key">const </span><span class="src-id">FETCH_LAZY </span>= <span class="src-num">1</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a98"></a> <span class="src-key">const </span><span class="src-id">FETCH_NAMED </span>= <span class="src-num">11</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a99"></a> <span class="src-key">const </span><span class="src-id">FETCH_NUM </span>= <span class="src-num">3</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a100"></a> <span class="src-key">const </span><span class="src-id">FETCH_OBJ </span>= <span class="src-num">5</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a101"></a> <span class="src-key">const </span><span class="src-id">FETCH_ORI_ABS </span>= <span class="src-num">4</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a102"></a> <span class="src-key">const </span><span class="src-id">FETCH_ORI_FIRST </span>= <span class="src-num">2</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a103"></a> <span class="src-key">const </span><span class="src-id">FETCH_ORI_LAST </span>= <span class="src-num">3</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a104"></a> <span class="src-key">const </span><span class="src-id">FETCH_ORI_NEXT </span>= <span class="src-num">0</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a105"></a> <span class="src-key">const </span><span class="src-id">FETCH_ORI_PRIOR </span>= <span class="src-num">1</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a106"></a> <span class="src-key">const </span><span class="src-id">FETCH_ORI_REL </span>= <span class="src-num">5</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a107"></a> <span class="src-key">const </span><span class="src-id">FETCH_SERIALIZE </span>= <span class="src-num">524288</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a108"></a> <span class="src-key">const </span><span class="src-id">FETCH_UNIQUE </span>= <span class="src-num">196608</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a109"></a> <span class="src-key">const </span><span class="src-id">NULL_EMPTY_STRING </span>= <span class="src-num">1</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a110"></a> <span class="src-key">const </span><span class="src-id">NULL_NATURAL </span>= <span class="src-num">0</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a111"></a> <span class="src-key">const </span><span class="src-id">NULL_TO_STRING </span>= <span class="src-id">NULL</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a112"></a> <span class="src-key">const </span><span class="src-id">PARAM_BOOL </span>= <span class="src-num">5</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a113"></a> <span class="src-key">const </span><span class="src-id">PARAM_INPUT_OUTPUT </span>= -<span class="src-num">2147483648</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a114"></a> <span class="src-key">const </span><span class="src-id">PARAM_INT </span>= <span class="src-num">1</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a115"></a> <span class="src-key">const </span><span class="src-id">PARAM_LOB </span>= <span class="src-num">3</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a116"></a> <span class="src-key">const </span><span class="src-id">PARAM_NULL </span>= <span class="src-num">0</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a117"></a> <span class="src-key">const </span><span class="src-id">PARAM_STMT </span>= <span class="src-num">4</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a118"></a> <span class="src-key">const </span><span class="src-id">PARAM_STR </span>= <span class="src-num">2</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a119"></a> <span class="src-doc">/**</span></div></li>
|
||
|
<li><div class="src-line"><a name="a120"></a><span class="src-doc"> * ATTRIBUTE CONSTANTS</span></div></li>
|
||
|
<li><div class="src-line"><a name="a121"></a><span class="src-doc"> */</span></div></li>
|
||
|
<li><div class="src-line"><a name="a122"></a> </div></li>
|
||
|
<li><div class="src-line"><a name="a123"></a> <span class="src-doc">/**</span></div></li>
|
||
|
<li><div class="src-line"><a name="a124"></a><span class="src-doc"> * PDO derived attributes</span></div></li>
|
||
|
<li><div class="src-line"><a name="a125"></a><span class="src-doc"> */</span></div></li>
|
||
|
<li><div class="src-line"><a name="a126"></a> <span class="src-key">const </span><span class="src-id">ATTR_AUTOCOMMIT </span>= <span class="src-num">0</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a127"></a> <span class="src-key">const </span><span class="src-id">ATTR_PREFETCH </span>= <span class="src-num">1</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a128"></a> <span class="src-key">const </span><span class="src-id">ATTR_TIMEOUT </span>= <span class="src-num">2</span><span class="src-sym">; </span></div></li>
|
||
|
<li><div class="src-line"><a name="a129"></a> <span class="src-key">const </span><span class="src-id">ATTR_ERRMODE </span>= <span class="src-num">3</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a130"></a> <span class="src-key">const </span><span class="src-id">ATTR_SERVER_VERSION </span>= <span class="src-num">4</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a131"></a> <span class="src-key">const </span><span class="src-id">ATTR_CLIENT_VERSION </span>= <span class="src-num">5</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a132"></a> <span class="src-key">const </span><span class="src-id">ATTR_SERVER_INFO </span>= <span class="src-num">6</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a133"></a> <span class="src-key">const </span><span class="src-id">ATTR_CONNECTION_STATUS </span>= <span class="src-num">7</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a134"></a> <span class="src-key">const </span><span class="src-id">ATTR_CASE </span>= <span class="src-num">8</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a135"></a> <span class="src-key">const </span><span class="src-id">ATTR_CURSOR_NAME </span>= <span class="src-num">9</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a136"></a> <span class="src-key">const </span><span class="src-id">ATTR_CURSOR </span>= <span class="src-num">10</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a137"></a> <span class="src-key">const </span><span class="src-id">ATTR_ORACLE_NULLS </span>= <span class="src-num">11</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a138"></a> <span class="src-key">const </span><span class="src-id">ATTR_PERSISTENT </span>= <span class="src-num">12</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a139"></a> <span class="src-key">const </span><span class="src-id">ATTR_STATEMENT_CLASS </span>= <span class="src-num">13</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a140"></a> <span class="src-key">const </span><span class="src-id">ATTR_FETCH_TABLE_NAMES </span>= <span class="src-num">14</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a141"></a> <span class="src-key">const </span><span class="src-id">ATTR_FETCH_CATALOG_NAMES </span>= <span class="src-num">15</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a142"></a> <span class="src-key">const </span><span class="src-id">ATTR_DRIVER_NAME </span>= <span class="src-num">16</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a143"></a> <span class="src-key">const </span><span class="src-id">ATTR_STRINGIFY_FETCHES </span>= <span class="src-num">17</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a144"></a> <span class="src-key">const </span><span class="src-id">ATTR_MAX_COLUMN_LEN </span>= <span class="src-num">18</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a145"></a> </div></li>
|
||
|
<li><div class="src-line"><a name="a146"></a> <span class="src-doc">/**</span></div></li>
|
||
|
<li><div class="src-line"><a name="a147"></a><span class="src-doc"> * Doctrine constants</span></div></li>
|
||
|
<li><div class="src-line"><a name="a148"></a><span class="src-doc"> */</span></div></li>
|
||
|
<li><div class="src-line"><a name="a149"></a> <span class="src-key">const </span><span class="src-id">ATTR_LISTENER </span>= <span class="src-num">100</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a150"></a> <span class="src-key">const </span><span class="src-id">ATTR_QUOTE_IDENTIFIER </span>= <span class="src-num">101</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a151"></a> <span class="src-key">const </span><span class="src-id">ATTR_FIELD_CASE </span>= <span class="src-num">102</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a152"></a> <span class="src-key">const </span><span class="src-id">ATTR_IDXNAME_FORMAT </span>= <span class="src-num">103</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a153"></a> <span class="src-key">const </span><span class="src-id">ATTR_SEQNAME_FORMAT </span>= <span class="src-num">104</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a154"></a> <span class="src-key">const </span><span class="src-id">ATTR_SEQCOL_NAME </span>= <span class="src-num">105</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a155"></a> <span class="src-key">const </span><span class="src-id">ATTR_CMPNAME_FORMAT </span>= <span class="src-num">118</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a156"></a> <span class="src-key">const </span><span class="src-id">ATTR_DBNAME_FORMAT </span>= <span class="src-num">117</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a157"></a> <span class="src-key">const </span><span class="src-id">ATTR_TBLCLASS_FORMAT </span>= <span class="src-num">119</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a158"></a> <span class="src-key">const </span><span class="src-id">ATTR_EXPORT </span>= <span class="src-num">140</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a159"></a> <span class="src-key">const </span><span class="src-id">ATTR_DECIMAL_PLACES </span>= <span class="src-num">141</span><span class="src-sym">; </span></div></li>
|
||
|
<li><div class="src-line"><a name="a160"></a> </div></li>
|
||
|
<li><div class="src-line"><a name="a161"></a> <span class="src-key">const </span><span class="src-id">ATTR_PORTABILITY </span>= <span class="src-num">106</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a162"></a> <span class="src-key">const </span><span class="src-id">ATTR_VLD </span>= <span class="src-num">107</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a163"></a> <span class="src-key">const </span><span class="src-id">ATTR_COLL_KEY </span>= <span class="src-num">108</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a164"></a> <span class="src-key">const </span><span class="src-id">ATTR_QUERY_LIMIT </span>= <span class="src-num">109</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a165"></a> <span class="src-key">const </span><span class="src-id">ATTR_AUTO_LENGTH_VLD </span>= <span class="src-num">110</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a166"></a> <span class="src-key">const </span><span class="src-id">ATTR_AUTO_TYPE_VLD </span>= <span class="src-num">111</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a167"></a> <span class="src-key">const </span><span class="src-id">ATTR_DEFAULT_TABLE_TYPE </span>= <span class="src-num">112</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a168"></a> <span class="src-key">const </span><span class="src-id">ATTR_DEF_TEXT_LENGTH </span>= <span class="src-num">113</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a169"></a> <span class="src-key">const </span><span class="src-id">ATTR_DEF_VARCHAR_LENGTH </span>= <span class="src-num">114</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a170"></a> <span class="src-key">const </span><span class="src-id">ATTR_DEF_TABLESPACE </span>= <span class="src-num">115</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a171"></a> <span class="src-key">const </span><span class="src-id">ATTR_EMULATE_DATABASE </span>= <span class="src-num">116</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a172"></a> <span class="src-key">const </span><span class="src-id">ATTR_DEFAULT_SEQUENCE </span>= <span class="src-num">133</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a173"></a> </div></li>
|
||
|
<li><div class="src-line"><a name="a174"></a> <span class="src-doc">/** TODO: REMOVE THE FOLLOWING CONSTANTS AND UPDATE THE DOCS ! */</span></div></li>
|
||
|
<li><div class="src-line"><a name="a175"></a> </div></li>
|
||
|
<li><div class="src-line"><a name="a176"></a> </div></li>
|
||
|
<li><div class="src-line"><a name="a177"></a> <span class="src-key">const </span><span class="src-id">ATTR_FETCHMODE </span>= <span class="src-num">118</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a178"></a> <span class="src-key">const </span><span class="src-id">ATTR_BATCH_SIZE </span>= <span class="src-num">119</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a179"></a> <span class="src-key">const </span><span class="src-id">ATTR_LOCKMODE </span>= <span class="src-num">120</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a180"></a> <span class="src-key">const </span><span class="src-id">ATTR_NAME_PREFIX </span>= <span class="src-num">121</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a181"></a> <span class="src-key">const </span><span class="src-id">ATTR_CREATE_TABLES </span>= <span class="src-num">122</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a182"></a> <span class="src-key">const </span><span class="src-id">ATTR_COLL_LIMIT </span>= <span class="src-num">123</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a183"></a> <span class="src-key">const </span><span class="src-id">ATTR_ACCESSORS </span>= <span class="src-num">124</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a184"></a> <span class="src-key">const </span><span class="src-id">ATTR_ACCESSOR_PREFIX_GET </span>= <span class="src-num">125</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a185"></a> <span class="src-key">const </span><span class="src-id">ATTR_ACCESSOR_PREFIX_SET </span>= <span class="src-num">126</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a186"></a> </div></li>
|
||
|
<li><div class="src-line"><a name="a187"></a> <span class="src-doc">/**</span></div></li>
|
||
|
<li><div class="src-line"><a name="a188"></a><span class="src-doc"> * NESTED SET CONSTANTS</span></div></li>
|
||
|
<li><div class="src-line"><a name="a189"></a><span class="src-doc"> */</span></div></li>
|
||
|
<li><div class="src-line"><a name="a190"></a> <span class="src-key">const </span><span class="src-id">ATTR_NS_ROOT_COLUMN_NAME </span>= <span class="src-num">130</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a191"></a> <span class="src-key">const </span><span class="src-id">ATTR_NS_GAP_SIZE </span>= <span class="src-num">131</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a192"></a> <span class="src-key">const </span><span class="src-id">ATTR_NS_GAP_DECREASE_EXP </span>= <span class="src-num">132</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a193"></a> </div></li>
|
||
|
<li><div class="src-line"><a name="a194"></a> <span class="src-key">const </span><span class="src-id">ATTR_CACHE </span>= <span class="src-num">150</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a195"></a> <span class="src-key">const </span><span class="src-id">ATTR_CACHE_LIFESPAN </span>= <span class="src-num">151</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a196"></a> <span class="src-key">const </span><span class="src-id">ATTR_LOAD_REFERENCES </span>= <span class="src-num">153</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a197"></a> <span class="src-key">const </span><span class="src-id">ATTR_RECORD_LISTENER </span>= <span class="src-num">154</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a198"></a> <span class="src-key">const </span><span class="src-id">ATTR_THROW_EXCEPTIONS </span>= <span class="src-num">155</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a199"></a> </div></li>
|
||
|
<li><div class="src-line"><a name="a200"></a> </div></li>
|
||
|
<li><div class="src-line"><a name="a201"></a> <span class="src-doc">/**</span></div></li>
|
||
|
<li><div class="src-line"><a name="a202"></a><span class="src-doc"> * LIMIT CONSTANTS</span></div></li>
|
||
|
<li><div class="src-line"><a name="a203"></a><span class="src-doc"> */</span></div></li>
|
||
|
<li><div class="src-line"><a name="a204"></a> </div></li>
|
||
|
<li><div class="src-line"><a name="a205"></a> <span class="src-doc">/**</span></div></li>
|
||
|
<li><div class="src-line"><a name="a206"></a><span class="src-doc"> * constant for row limiting</span></div></li>
|
||
|
<li><div class="src-line"><a name="a207"></a><span class="src-doc"> */</span></div></li>
|
||
|
<li><div class="src-line"><a name="a208"></a> <span class="src-key">const </span><span class="src-id">LIMIT_ROWS </span>= <span class="src-num">1</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a209"></a> <span class="src-doc">/**</span></div></li>
|
||
|
<li><div class="src-line"><a name="a210"></a><span class="src-doc"> * constant for record limiting</span></div></li>
|
||
|
<li><div class="src-line"><a name="a211"></a><span class="src-doc"> */</span></div></li>
|
||
|
<li><div class="src-line"><a name="a212"></a> <span class="src-key">const </span><span class="src-id">LIMIT_RECORDS </span>= <span class="src-num">2</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a213"></a> </div></li>
|
||
|
<li><div class="src-line"><a name="a214"></a> <span class="src-doc">/**</span></div></li>
|
||
|
<li><div class="src-line"><a name="a215"></a><span class="src-doc"> * FETCHMODE CONSTANTS</span></div></li>
|
||
|
<li><div class="src-line"><a name="a216"></a><span class="src-doc"> */</span></div></li>
|
||
|
<li><div class="src-line"><a name="a217"></a> </div></li>
|
||
|
<li><div class="src-line"><a name="a218"></a> <span class="src-doc">/**</span></div></li>
|
||
|
<li><div class="src-line"><a name="a219"></a><span class="src-doc"> * IMMEDIATE FETCHING</span></div></li>
|
||
|
<li><div class="src-line"><a name="a220"></a><span class="src-doc"> * mode for immediate fetching</span></div></li>
|
||
|
<li><div class="src-line"><a name="a221"></a><span class="src-doc"> */</span></div></li>
|
||
|
<li><div class="src-line"><a name="a222"></a> <span class="src-key">const </span><span class="src-id">FETCH_IMMEDIATE </span>= <span class="src-num">0</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a223"></a> <span class="src-doc">/**</span></div></li>
|
||
|
<li><div class="src-line"><a name="a224"></a><span class="src-doc"> * BATCH FETCHING</span></div></li>
|
||
|
<li><div class="src-line"><a name="a225"></a><span class="src-doc"> * mode for batch fetching</span></div></li>
|
||
|
<li><div class="src-line"><a name="a226"></a><span class="src-doc"> */</span></div></li>
|
||
|
<li><div class="src-line"><a name="a227"></a> <span class="src-key">const </span><span class="src-id">FETCH_BATCH </span>= <span class="src-num">1</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a228"></a> <span class="src-doc">/**</span></div></li>
|
||
|
<li><div class="src-line"><a name="a229"></a><span class="src-doc"> * LAZY FETCHING</span></div></li>
|
||
|
<li><div class="src-line"><a name="a230"></a><span class="src-doc"> * mode for offset fetching</span></div></li>
|
||
|
<li><div class="src-line"><a name="a231"></a><span class="src-doc"> */</span></div></li>
|
||
|
<li><div class="src-line"><a name="a232"></a> <span class="src-key">const </span><span class="src-id">FETCH_OFFSET </span>= <span class="src-num">3</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a233"></a> <span class="src-doc">/**</span></div></li>
|
||
|
<li><div class="src-line"><a name="a234"></a><span class="src-doc"> * LAZY OFFSET FETCHING</span></div></li>
|
||
|
<li><div class="src-line"><a name="a235"></a><span class="src-doc"> * mode for lazy offset fetching</span></div></li>
|
||
|
<li><div class="src-line"><a name="a236"></a><span class="src-doc"> */</span></div></li>
|
||
|
<li><div class="src-line"><a name="a237"></a> <span class="src-key">const </span><span class="src-id">FETCH_LAZY_OFFSET </span>= <span class="src-num">4</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a238"></a> </div></li>
|
||
|
<li><div class="src-line"><a name="a239"></a> <span class="src-doc">/**</span></div></li>
|
||
|
<li><div class="src-line"><a name="a240"></a><span class="src-doc"> * FETCH CONSTANTS</span></div></li>
|
||
|
<li><div class="src-line"><a name="a241"></a><span class="src-doc"> */</span></div></li>
|
||
|
<li><div class="src-line"><a name="a242"></a> </div></li>
|
||
|
<li><div class="src-line"><a name="a243"></a> </div></li>
|
||
|
<li><div class="src-line"><a name="a244"></a> <span class="src-doc">/**</span></div></li>
|
||
|
<li><div class="src-line"><a name="a245"></a><span class="src-doc"> * FETCH VALUEHOLDER</span></div></li>
|
||
|
<li><div class="src-line"><a name="a246"></a><span class="src-doc"> */</span></div></li>
|
||
|
<li><div class="src-line"><a name="a247"></a> <span class="src-key">const </span><span class="src-id">FETCH_VHOLDER </span>= <span class="src-num">1</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a248"></a> <span class="src-doc">/**</span></div></li>
|
||
|
<li><div class="src-line"><a name="a249"></a><span class="src-doc"> * FETCH RECORD</span></div></li>
|
||
|
<li><div class="src-line"><a name="a250"></a><span class="src-doc"> *</span></div></li>
|
||
|
<li><div class="src-line"><a name="a251"></a><span class="src-doc"> * Specifies that the fetch method shall return Doctrine_Record</span></div></li>
|
||
|
<li><div class="src-line"><a name="a252"></a><span class="src-doc"> * objects as the elements of the result set.</span></div></li>
|
||
|
<li><div class="src-line"><a name="a253"></a><span class="src-doc"> *</span></div></li>
|
||
|
<li><div class="src-line"><a name="a254"></a><span class="src-doc"> * This is the default fetchmode.</span></div></li>
|
||
|
<li><div class="src-line"><a name="a255"></a><span class="src-doc"> */</span></div></li>
|
||
|
<li><div class="src-line"><a name="a256"></a> <span class="src-key">const </span><span class="src-id">FETCH_RECORD </span>= <span class="src-num">2</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a257"></a> <span class="src-doc">/**</span></div></li>
|
||
|
<li><div class="src-line"><a name="a258"></a><span class="src-doc"> * FETCH ARRAY</span></div></li>
|
||
|
<li><div class="src-line"><a name="a259"></a><span class="src-doc"> */</span></div></li>
|
||
|
<li><div class="src-line"><a name="a260"></a> </div></li>
|
||
|
<li><div class="src-line"><a name="a261"></a> <span class="src-key">const </span><span class="src-id">FETCH_ARRAY </span>= <span class="src-num">3</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a262"></a> <span class="src-doc">/**</span></div></li>
|
||
|
<li><div class="src-line"><a name="a263"></a><span class="src-doc"> * PORTABILITY CONSTANTS</span></div></li>
|
||
|
<li><div class="src-line"><a name="a264"></a><span class="src-doc"> */</span></div></li>
|
||
|
<li><div class="src-line"><a name="a265"></a> </div></li>
|
||
|
<li><div class="src-line"><a name="a266"></a> <span class="src-doc">/**</span></div></li>
|
||
|
<li><div class="src-line"><a name="a267"></a><span class="src-doc"> * Portability: turn off all portability features.</span></div></li>
|
||
|
<li><div class="src-line"><a name="a268"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@see</span><span class="src-doc"> Doctrine::ATTR_PORTABILITY</span></div></li>
|
||
|
<li><div class="src-line"><a name="a269"></a><span class="src-doc"> */</span></div></li>
|
||
|
<li><div class="src-line"><a name="a270"></a> <span class="src-key">const </span><span class="src-id">PORTABILITY_NONE </span>= <span class="src-num">0</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a271"></a> <span class="src-doc">/**</span></div></li>
|
||
|
<li><div class="src-line"><a name="a272"></a><span class="src-doc"> * Portability: convert names of tables and fields to case defined in the</span></div></li>
|
||
|
<li><div class="src-line"><a name="a273"></a><span class="src-doc"> * "field_case" option when using the query*(), fetch*() methods.</span></div></li>
|
||
|
<li><div class="src-line"><a name="a274"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@see</span><span class="src-doc"> Doctrine::ATTR_PORTABILITY</span></div></li>
|
||
|
<li><div class="src-line"><a name="a275"></a><span class="src-doc"> */</span></div></li>
|
||
|
<li><div class="src-line"><a name="a276"></a> <span class="src-key">const </span><span class="src-id">PORTABILITY_FIX_CASE </span>= <span class="src-num">1</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a277"></a> </div></li>
|
||
|
<li><div class="src-line"><a name="a278"></a> <span class="src-doc">/**</span></div></li>
|
||
|
<li><div class="src-line"><a name="a279"></a><span class="src-doc"> * Portability: right trim the data output by query*() and fetch*().</span></div></li>
|
||
|
<li><div class="src-line"><a name="a280"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@see</span><span class="src-doc"> Doctrine::ATTR_PORTABILITY</span></div></li>
|
||
|
<li><div class="src-line"><a name="a281"></a><span class="src-doc"> */</span></div></li>
|
||
|
<li><div class="src-line"><a name="a282"></a> <span class="src-key">const </span><span class="src-id">PORTABILITY_RTRIM </span>= <span class="src-num">2</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a283"></a> <span class="src-doc">/**</span></div></li>
|
||
|
<li><div class="src-line"><a name="a284"></a><span class="src-doc"> * Portability: force reporting the number of rows deleted.</span></div></li>
|
||
|
<li><div class="src-line"><a name="a285"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@see</span><span class="src-doc"> Doctrine::ATTR_PORTABILITY</span></div></li>
|
||
|
<li><div class="src-line"><a name="a286"></a><span class="src-doc"> */</span></div></li>
|
||
|
<li><div class="src-line"><a name="a287"></a> <span class="src-key">const </span><span class="src-id">PORTABILITY_DELETE_COUNT </span>= <span class="src-num">4</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a288"></a> <span class="src-doc">/**</span></div></li>
|
||
|
<li><div class="src-line"><a name="a289"></a><span class="src-doc"> * Portability: convert empty values to null strings in data output by</span></div></li>
|
||
|
<li><div class="src-line"><a name="a290"></a><span class="src-doc"> * query*() and fetch*().</span></div></li>
|
||
|
<li><div class="src-line"><a name="a291"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@see</span><span class="src-doc"> Doctrine::ATTR_PORTABILITY</span></div></li>
|
||
|
<li><div class="src-line"><a name="a292"></a><span class="src-doc"> */</span></div></li>
|
||
|
<li><div class="src-line"><a name="a293"></a> <span class="src-key">const </span><span class="src-id">PORTABILITY_EMPTY_TO_NULL </span>= <span class="src-num">8</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a294"></a> <span class="src-doc">/**</span></div></li>
|
||
|
<li><div class="src-line"><a name="a295"></a><span class="src-doc"> * Portability: removes database/table qualifiers from associative indexes</span></div></li>
|
||
|
<li><div class="src-line"><a name="a296"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@see</span><span class="src-doc"> Doctrine::ATTR_PORTABILITY</span></div></li>
|
||
|
<li><div class="src-line"><a name="a297"></a><span class="src-doc"> */</span></div></li>
|
||
|
<li><div class="src-line"><a name="a298"></a> <span class="src-key">const </span><span class="src-id">PORTABILITY_FIX_ASSOC_FIELD_NAMES </span>= <span class="src-num">16</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a299"></a> <span class="src-doc">/**</span></div></li>
|
||
|
<li><div class="src-line"><a name="a300"></a><span class="src-doc"> * Portability: makes Doctrine_Expression throw exception for unportable RDBMS expressions</span></div></li>
|
||
|
<li><div class="src-line"><a name="a301"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@see</span><span class="src-doc"> Doctrine::ATTR_PORTABILITY</span></div></li>
|
||
|
<li><div class="src-line"><a name="a302"></a><span class="src-doc"> */</span></div></li>
|
||
|
<li><div class="src-line"><a name="a303"></a> <span class="src-key">const </span><span class="src-id">PORTABILITY_EXPR </span>= <span class="src-num">32</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a304"></a> <span class="src-doc">/**</span></div></li>
|
||
|
<li><div class="src-line"><a name="a305"></a><span class="src-doc"> * Portability: turn on all portability features.</span></div></li>
|
||
|
<li><div class="src-line"><a name="a306"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@see</span><span class="src-doc"> Doctrine::ATTR_PORTABILITY</span></div></li>
|
||
|
<li><div class="src-line"><a name="a307"></a><span class="src-doc"> */</span></div></li>
|
||
|
<li><div class="src-line"><a name="a308"></a> <span class="src-key">const </span><span class="src-id">PORTABILITY_ALL </span>= <span class="src-num">33</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a309"></a> </div></li>
|
||
|
<li><div class="src-line"><a name="a310"></a> <span class="src-doc">/**</span></div></li>
|
||
|
<li><div class="src-line"><a name="a311"></a><span class="src-doc"> * LOCKMODE CONSTANTS</span></div></li>
|
||
|
<li><div class="src-line"><a name="a312"></a><span class="src-doc"> */</span></div></li>
|
||
|
<li><div class="src-line"><a name="a313"></a> </div></li>
|
||
|
<li><div class="src-line"><a name="a314"></a> <span class="src-doc">/**</span></div></li>
|
||
|
<li><div class="src-line"><a name="a315"></a><span class="src-doc"> * mode for optimistic locking</span></div></li>
|
||
|
<li><div class="src-line"><a name="a316"></a><span class="src-doc"> */</span></div></li>
|
||
|
<li><div class="src-line"><a name="a317"></a> <span class="src-key">const </span><span class="src-id">LOCK_OPTIMISTIC </span>= <span class="src-num">0</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a318"></a> <span class="src-doc">/**</span></div></li>
|
||
|
<li><div class="src-line"><a name="a319"></a><span class="src-doc"> * mode for pessimistic locking</span></div></li>
|
||
|
<li><div class="src-line"><a name="a320"></a><span class="src-doc"> */</span></div></li>
|
||
|
<li><div class="src-line"><a name="a321"></a> <span class="src-key">const </span><span class="src-id">LOCK_PESSIMISTIC </span>= <span class="src-num">1</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a322"></a> <span class="src-doc">/**</span></div></li>
|
||
|
<li><div class="src-line"><a name="a323"></a><span class="src-doc"> * EXPORT CONSTANTS</span></div></li>
|
||
|
<li><div class="src-line"><a name="a324"></a><span class="src-doc"> */</span></div></li>
|
||
|
<li><div class="src-line"><a name="a325"></a> </div></li>
|
||
|
<li><div class="src-line"><a name="a326"></a> <span class="src-doc">/**</span></div></li>
|
||
|
<li><div class="src-line"><a name="a327"></a><span class="src-doc"> * turns of exporting</span></div></li>
|
||
|
<li><div class="src-line"><a name="a328"></a><span class="src-doc"> */</span></div></li>
|
||
|
<li><div class="src-line"><a name="a329"></a> <span class="src-key">const </span><span class="src-id">EXPORT_NONE </span>= <span class="src-num">0</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a330"></a> <span class="src-doc">/**</span></div></li>
|
||
|
<li><div class="src-line"><a name="a331"></a><span class="src-doc"> * export tables</span></div></li>
|
||
|
<li><div class="src-line"><a name="a332"></a><span class="src-doc"> */</span></div></li>
|
||
|
<li><div class="src-line"><a name="a333"></a> <span class="src-key">const </span><span class="src-id">EXPORT_TABLES </span>= <span class="src-num">1</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a334"></a> <span class="src-doc">/**</span></div></li>
|
||
|
<li><div class="src-line"><a name="a335"></a><span class="src-doc"> * export constraints</span></div></li>
|
||
|
<li><div class="src-line"><a name="a336"></a><span class="src-doc"> */</span></div></li>
|
||
|
<li><div class="src-line"><a name="a337"></a> <span class="src-key">const </span><span class="src-id">EXPORT_CONSTRAINTS </span>= <span class="src-num">2</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a338"></a> <span class="src-doc">/**</span></div></li>
|
||
|
<li><div class="src-line"><a name="a339"></a><span class="src-doc"> * export all</span></div></li>
|
||
|
<li><div class="src-line"><a name="a340"></a><span class="src-doc"> */</span></div></li>
|
||
|
<li><div class="src-line"><a name="a341"></a> <span class="src-key">const </span><span class="src-id">EXPORT_ALL </span>= <span class="src-num">3</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a342"></a> </div></li>
|
||
|
<li><div class="src-line"><a name="a343"></a> </div></li>
|
||
|
<li><div class="src-line"><a name="a344"></a> <span class="src-doc">/**</span></div></li>
|
||
|
<li><div class="src-line"><a name="a345"></a><span class="src-doc"> * constant for auto_increment identifier</span></div></li>
|
||
|
<li><div class="src-line"><a name="a346"></a><span class="src-doc"> */</span></div></li>
|
||
|
<li><div class="src-line"><a name="a347"></a> <span class="src-key">const </span><span class="src-id">IDENTIFIER_AUTOINC </span>= <span class="src-num">1</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a348"></a> <span class="src-doc">/**</span></div></li>
|
||
|
<li><div class="src-line"><a name="a349"></a><span class="src-doc"> * constant for sequence identifier</span></div></li>
|
||
|
<li><div class="src-line"><a name="a350"></a><span class="src-doc"> */</span></div></li>
|
||
|
<li><div class="src-line"><a name="a351"></a> <span class="src-key">const </span><span class="src-id">IDENTIFIER_SEQUENCE </span>= <span class="src-num">2</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a352"></a> <span class="src-doc">/**</span></div></li>
|
||
|
<li><div class="src-line"><a name="a353"></a><span class="src-doc"> * constant for normal identifier</span></div></li>
|
||
|
<li><div class="src-line"><a name="a354"></a><span class="src-doc"> */</span></div></li>
|
||
|
<li><div class="src-line"><a name="a355"></a> <span class="src-key">const </span><span class="src-id">IDENTIFIER_NATURAL </span>= <span class="src-num">3</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a356"></a> <span class="src-doc">/**</span></div></li>
|
||
|
<li><div class="src-line"><a name="a357"></a><span class="src-doc"> * constant for composite identifier</span></div></li>
|
||
|
<li><div class="src-line"><a name="a358"></a><span class="src-doc"> */</span></div></li>
|
||
|
<li><div class="src-line"><a name="a359"></a> <span class="src-key">const </span><span class="src-id">IDENTIFIER_COMPOSITE </span>= <span class="src-num">4</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a360"></a> <span class="src-doc">/**</span></div></li>
|
||
|
<li><div class="src-line"><a name="a361"></a><span class="src-doc"> * constructor</span></div></li>
|
||
|
<li><div class="src-line"><a name="a362"></a><span class="src-doc"> */</span></div></li>
|
||
|
<li><div class="src-line"><a name="a363"></a> <span class="src-key">public </span><span class="src-key">function </span><a href="../Doctrine/Doctrine.html#method__construct">__construct</a><span class="src-sym">(</span><span class="src-sym">)</span></div></li>
|
||
|
<li><div class="src-line"><a name="a364"></a> <span class="src-sym">{</span></div></li>
|
||
|
<li><div class="src-line"><a name="a365"></a> throw <span class="src-key">new </span><span class="src-id"><a href="../Doctrine/Doctrine_Exception.html">Doctrine_Exception</a></span><span class="src-sym">(</span><span class="src-str">'Doctrine is static class. No instances can be created.'</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a366"></a> <span class="src-sym">}</span></div></li>
|
||
|
<li><div class="src-line"><a name="a367"></a> <span class="src-doc">/**</span></div></li>
|
||
|
<li><div class="src-line"><a name="a368"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@var </span><span class="src-doc-type">string </span><span class="src-doc-var">$path </span><span class="src-doc"> doctrine root directory</span></div></li>
|
||
|
<li><div class="src-line"><a name="a369"></a><span class="src-doc"> */</span></div></li>
|
||
|
<li><div class="src-line"><a name="a370"></a> <span class="src-key">private </span><span class="src-key">static </span><span class="src-var">$path</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a371"></a> <span class="src-doc">/**</span></div></li>
|
||
|
<li><div class="src-line"><a name="a372"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@var </span><span class="src-doc-type">boolean </span><span class="src-doc-var">$_debug </span></div></li>
|
||
|
<li><div class="src-line"><a name="a373"></a><span class="src-doc"> */</span></div></li>
|
||
|
<li><div class="src-line"><a name="a374"></a> <span class="src-key">private </span><span class="src-key">static </span><span class="src-var">$_debug </span>= <span class="src-id">false</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a375"></a> </div></li>
|
||
|
<li><div class="src-line"><a name="a376"></a> <span class="src-key">public </span><span class="src-key">static </span><span class="src-key">function </span><a href="../Doctrine/Doctrine.html#methoddebug">debug</a><span class="src-sym">(</span><span class="src-var">$bool </span>= <span class="src-id">null</span><span class="src-sym">)</span></div></li>
|
||
|
<li><div class="src-line"><a name="a377"></a> <span class="src-sym">{</span></div></li>
|
||
|
<li><div class="src-line"><a name="a378"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-var">$bool </span>!== <span class="src-id">null</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li>
|
||
|
<li><div class="src-line"><a name="a379"></a> <span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$_debug </span>= (bool) <span class="src-var">$bool</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a380"></a> <span class="src-sym">}</span></div></li>
|
||
|
<li><div class="src-line"><a name="a381"></a> <span class="src-key">return </span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$_debug</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a382"></a> <span class="src-sym">}</span></div></li>
|
||
|
<li><div class="src-line"><a name="a383"></a> <span class="src-doc">/**</span></div></li>
|
||
|
<li><div class="src-line"><a name="a384"></a><span class="src-doc"> * getPath</span></div></li>
|
||
|
<li><div class="src-line"><a name="a385"></a><span class="src-doc"> * returns the doctrine root</span></div></li>
|
||
|
<li><div class="src-line"><a name="a386"></a><span class="src-doc"> *</span></div></li>
|
||
|
<li><div class="src-line"><a name="a387"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc-type">string </span></div></li>
|
||
|
<li><div class="src-line"><a name="a388"></a><span class="src-doc"> */</span></div></li>
|
||
|
<li><div class="src-line"><a name="a389"></a> <span class="src-key">public </span><span class="src-key">static </span><span class="src-key">function </span><a href="../Doctrine/Doctrine.html#methodgetPath">getPath</a><span class="src-sym">(</span><span class="src-sym">)</span></div></li>
|
||
|
<li><div class="src-line"><a name="a390"></a> <span class="src-sym">{</span></div></li>
|
||
|
<li><div class="src-line"><a name="a391"></a> <span class="src-key">if </span><span class="src-sym">( </span><span class="src-sym">! </span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$path</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li>
|
||
|
<li><div class="src-line"><a name="a392"></a> <span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$path </span>= <span class="src-id">dirname</span><span class="src-sym">(</span>__FILE__<span class="src-sym">)</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a393"></a> <span class="src-sym">}</span></div></li>
|
||
|
<li><div class="src-line"><a name="a394"></a> <span class="src-key">return </span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$path</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a395"></a> <span class="src-sym">}</span></div></li>
|
||
|
<li><div class="src-line"><a name="a396"></a> <span class="src-doc">/**</span></div></li>
|
||
|
<li><div class="src-line"><a name="a397"></a><span class="src-doc"> * loadAll</span></div></li>
|
||
|
<li><div class="src-line"><a name="a398"></a><span class="src-doc"> * loads all runtime classes</span></div></li>
|
||
|
<li><div class="src-line"><a name="a399"></a><span class="src-doc"> *</span></div></li>
|
||
|
<li><div class="src-line"><a name="a400"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc-type">void </span></div></li>
|
||
|
<li><div class="src-line"><a name="a401"></a><span class="src-doc"> */</span></div></li>
|
||
|
<li><div class="src-line"><a name="a402"></a> <span class="src-key">public </span><span class="src-key">static </span><span class="src-key">function </span><a href="../Doctrine/Doctrine.html#methodloadAll">loadAll</a><span class="src-sym">(</span><span class="src-sym">)</span></div></li>
|
||
|
<li><div class="src-line"><a name="a403"></a> <span class="src-sym">{</span></div></li>
|
||
|
<li><div class="src-line"><a name="a404"></a> <span class="src-var">$classes </span>= <span class="src-id">Doctrine_Compiler</span><span class="src-sym">::</span><span class="src-id">getRuntimeClasses</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a405"></a> </div></li>
|
||
|
<li><div class="src-line"><a name="a406"></a> <span class="src-key">foreach </span><span class="src-sym">(</span><span class="src-var">$classes </span><span class="src-key">as </span><span class="src-var">$class</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li>
|
||
|
<li><div class="src-line"><a name="a407"></a> <span class="src-id"><a href="../Doctrine/Doctrine.html">Doctrine</a></span><span class="src-sym">::</span><a href="../Doctrine/Doctrine.html#methodautoload">autoload</a><span class="src-sym">(</span><span class="src-var">$class</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a408"></a> <span class="src-sym">}</span></div></li>
|
||
|
<li><div class="src-line"><a name="a409"></a> <span class="src-sym">}</span></div></li>
|
||
|
<li><div class="src-line"><a name="a410"></a> <span class="src-doc">/**</span></div></li>
|
||
|
<li><div class="src-line"><a name="a411"></a><span class="src-doc"> * importSchema</span></div></li>
|
||
|
<li><div class="src-line"><a name="a412"></a><span class="src-doc"> * method for importing existing schema to Doctrine_Record classes</span></div></li>
|
||
|
<li><div class="src-line"><a name="a413"></a><span class="src-doc"> *</span></div></li>
|
||
|
<li><div class="src-line"><a name="a414"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string </span><span class="src-doc-var">$directory </span></div></li>
|
||
|
<li><div class="src-line"><a name="a415"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">array </span><span class="src-doc-var">$info </span></div></li>
|
||
|
<li><div class="src-line"><a name="a416"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc-type">boolean </span></div></li>
|
||
|
<li><div class="src-line"><a name="a417"></a><span class="src-doc"> */</span></div></li>
|
||
|
<li><div class="src-line"><a name="a418"></a> <span class="src-key">public </span><span class="src-key">static </span><span class="src-key">function </span><a href="../Doctrine/Doctrine.html#methodimportSchema">importSchema</a><span class="src-sym">(</span><span class="src-var">$directory</span><span class="src-sym">, </span><span class="src-key">array </span><span class="src-var">$databases </span>= <span class="src-key">array</span><span class="src-sym">(</span><span class="src-sym">))</span></div></li>
|
||
|
<li><div class="src-line"><a name="a419"></a> <span class="src-sym">{</span></div></li>
|
||
|
<li><div class="src-line"><a name="a420"></a> <span class="src-key">return </span><span class="src-id"><a href="../Doctrine/Doctrine_Manager.html">Doctrine_Manager</a></span><span class="src-sym">::</span><a href="../Doctrine/Doctrine_Manager.html#methodconnection">connection</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">-></span><span class="src-id">import</span><span class="src-sym">-></span><span class="src-id">importSchema</span><span class="src-sym">(</span><span class="src-var">$directory</span><span class="src-sym">, </span><span class="src-var">$databases</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a421"></a> <span class="src-sym">}</span></div></li>
|
||
|
<li><div class="src-line"><a name="a422"></a> <span class="src-doc">/**</span></div></li>
|
||
|
<li><div class="src-line"><a name="a423"></a><span class="src-doc"> * exportSchema</span></div></li>
|
||
|
<li><div class="src-line"><a name="a424"></a><span class="src-doc"> * method for exporting Doctrine_Record classes to a schema</span></div></li>
|
||
|
<li><div class="src-line"><a name="a425"></a><span class="src-doc"> *</span></div></li>
|
||
|
<li><div class="src-line"><a name="a426"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string </span><span class="src-doc-var">$directory </span></div></li>
|
||
|
<li><div class="src-line"><a name="a427"></a><span class="src-doc"> */</span></div></li>
|
||
|
<li><div class="src-line"><a name="a428"></a> <span class="src-key">public </span><span class="src-key">static </span><span class="src-key">function </span><a href="../Doctrine/Doctrine.html#methodexportSchema">exportSchema</a><span class="src-sym">(</span><span class="src-var">$directory </span>= <span class="src-id">null</span><span class="src-sym">)</span></div></li>
|
||
|
<li><div class="src-line"><a name="a429"></a> <span class="src-sym">{</span></div></li>
|
||
|
<li><div class="src-line"><a name="a430"></a> <span class="src-key">return </span><span class="src-id"><a href="../Doctrine/Doctrine_Manager.html">Doctrine_Manager</a></span><span class="src-sym">::</span><a href="../Doctrine/Doctrine_Manager.html#methodconnection">connection</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">-></span><span class="src-id">export</span><span class="src-sym">-></span><span class="src-id">exportSchema</span><span class="src-sym">(</span><span class="src-var">$directory</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a431"></a> <span class="src-sym">}</span></div></li>
|
||
|
<li><div class="src-line"><a name="a432"></a> <span class="src-doc">/**</span></div></li>
|
||
|
<li><div class="src-line"><a name="a433"></a><span class="src-doc"> * exportSql</span></div></li>
|
||
|
<li><div class="src-line"><a name="a434"></a><span class="src-doc"> * method for exporting Doctrine_Record classes to a schema</span></div></li>
|
||
|
<li><div class="src-line"><a name="a435"></a><span class="src-doc"> *</span></div></li>
|
||
|
<li><div class="src-line"><a name="a436"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string </span><span class="src-doc-var">$directory </span></div></li>
|
||
|
<li><div class="src-line"><a name="a437"></a><span class="src-doc"> */</span></div></li>
|
||
|
<li><div class="src-line"><a name="a438"></a> <span class="src-key">public </span><span class="src-key">static </span><span class="src-key">function </span><a href="../Doctrine/Doctrine.html#methodexportSql">exportSql</a><span class="src-sym">(</span><span class="src-var">$directory </span>= <span class="src-id">null</span><span class="src-sym">)</span></div></li>
|
||
|
<li><div class="src-line"><a name="a439"></a> <span class="src-sym">{</span></div></li>
|
||
|
<li><div class="src-line"><a name="a440"></a> <span class="src-key">return </span><span class="src-id"><a href="../Doctrine/Doctrine_Manager.html">Doctrine_Manager</a></span><span class="src-sym">::</span><a href="../Doctrine/Doctrine_Manager.html#methodconnection">connection</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">-></span><span class="src-id">export</span><span class="src-sym">-></span><span class="src-id">exportSql</span><span class="src-sym">(</span><span class="src-var">$directory</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a441"></a> <span class="src-sym">}</span></div></li>
|
||
|
<li><div class="src-line"><a name="a442"></a> <span class="src-doc">/**</span></div></li>
|
||
|
<li><div class="src-line"><a name="a443"></a><span class="src-doc"> * compile</span></div></li>
|
||
|
<li><div class="src-line"><a name="a444"></a><span class="src-doc"> * method for making a single file of most used doctrine runtime components</span></div></li>
|
||
|
<li><div class="src-line"><a name="a445"></a><span class="src-doc"> * including the compiled file instead of multiple files (in worst</span></div></li>
|
||
|
<li><div class="src-line"><a name="a446"></a><span class="src-doc"> * cases dozens of files) can improve performance by an order of magnitude</span></div></li>
|
||
|
<li><div class="src-line"><a name="a447"></a><span class="src-doc"> *</span></div></li>
|
||
|
<li><div class="src-line"><a name="a448"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string </span><span class="src-doc-var">$target </span></div></li>
|
||
|
<li><div class="src-line"><a name="a449"></a><span class="src-doc"> *</span></div></li>
|
||
|
<li><div class="src-line"><a name="a450"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@throws</span><span class="src-doc"> Doctrine_Exception</span></div></li>
|
||
|
<li><div class="src-line"><a name="a451"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc-type">void </span></div></li>
|
||
|
<li><div class="src-line"><a name="a452"></a><span class="src-doc"> */</span></div></li>
|
||
|
<li><div class="src-line"><a name="a453"></a> <span class="src-key">public </span><span class="src-key">static </span><span class="src-key">function </span><a href="../Doctrine/Doctrine.html#methodcompile">compile</a><span class="src-sym">(</span><span class="src-var">$target </span>= <span class="src-id">null</span><span class="src-sym">)</span></div></li>
|
||
|
<li><div class="src-line"><a name="a454"></a> <span class="src-sym">{</span></div></li>
|
||
|
<li><div class="src-line"><a name="a455"></a> <span class="src-id"><a href="../Doctrine/Doctrine_Compiler.html">Doctrine_Compiler</a></span><span class="src-sym">::</span><a href="../Doctrine/Doctrine_Compiler.html#methodcompile">compile</a><span class="src-sym">(</span><span class="src-var">$target</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a456"></a> <span class="src-sym">}</span></div></li>
|
||
|
<li><div class="src-line"><a name="a457"></a> <span class="src-doc">/**</span></div></li>
|
||
|
<li><div class="src-line"><a name="a458"></a><span class="src-doc"> * simple autoload function</span></div></li>
|
||
|
<li><div class="src-line"><a name="a459"></a><span class="src-doc"> * returns true if the class was loaded, otherwise false</span></div></li>
|
||
|
<li><div class="src-line"><a name="a460"></a><span class="src-doc"> *</span></div></li>
|
||
|
<li><div class="src-line"><a name="a461"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string </span><span class="src-doc-var">$classname </span></div></li>
|
||
|
<li><div class="src-line"><a name="a462"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc-type">boolean </span></div></li>
|
||
|
<li><div class="src-line"><a name="a463"></a><span class="src-doc"> */</span></div></li>
|
||
|
<li><div class="src-line"><a name="a464"></a> <span class="src-key">public </span><span class="src-key">static </span><span class="src-key">function </span><a href="../Doctrine/Doctrine.html#methodautoload">autoload</a><span class="src-sym">(</span><span class="src-var">$classname</span><span class="src-sym">)</span></div></li>
|
||
|
<li><div class="src-line"><a name="a465"></a> <span class="src-sym">{ </span></div></li>
|
||
|
<li><div class="src-line"><a name="a466"></a> <span class="src-key">if </span><span class="src-sym">(</span><a href="http://www.php.net/class_exists">class_exists</a><span class="src-sym">(</span><span class="src-var">$classname</span><span class="src-sym">, </span><span class="src-id">false</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li>
|
||
|
<li><div class="src-line"><a name="a467"></a> <span class="src-key">return </span><span class="src-id">false</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a468"></a> <span class="src-sym">}</span></div></li>
|
||
|
<li><div class="src-line"><a name="a469"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-sym">! </span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$path</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li>
|
||
|
<li><div class="src-line"><a name="a470"></a> <span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$path </span>= <span class="src-id">dirname</span><span class="src-sym">(</span>__FILE__<span class="src-sym">)</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a471"></a> <span class="src-sym">}</span></div></li>
|
||
|
<li><div class="src-line"><a name="a472"></a> <span class="src-var">$class </span>= <span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$path </span>. <span class="src-id">DIRECTORY_SEPARATOR </span>. <a href="http://www.php.net/str_replace">str_replace</a><span class="src-sym">(</span><span class="src-str">'_'</span><span class="src-sym">, </span><span class="src-id">DIRECTORY_SEPARATOR</span><span class="src-sym">,</span><span class="src-var">$classname</span><span class="src-sym">) </span>. <span class="src-str">'.php'</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a473"></a> </div></li>
|
||
|
<li><div class="src-line"><a name="a474"></a> <span class="src-key">if </span><span class="src-sym">( </span><span class="src-sym">! </span><a href="http://www.php.net/file_exists">file_exists</a><span class="src-sym">(</span><span class="src-var">$class</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li>
|
||
|
<li><div class="src-line"><a name="a475"></a> <span class="src-key">return </span><span class="src-id">false</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a476"></a> <span class="src-sym">}</span></div></li>
|
||
|
<li><div class="src-line"><a name="a477"></a> </div></li>
|
||
|
<li><div class="src-line"><a name="a478"></a> <span class="src-inc">require_once</span><span class="src-sym">(</span><span class="src-var">$class</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a479"></a> </div></li>
|
||
|
<li><div class="src-line"><a name="a480"></a> <span class="src-key">return </span><span class="src-id">true</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a481"></a> <span class="src-sym">}</span></div></li>
|
||
|
<li><div class="src-line"><a name="a482"></a> <span class="src-doc">/**</span></div></li>
|
||
|
<li><div class="src-line"><a name="a483"></a><span class="src-doc"> * dump</span></div></li>
|
||
|
<li><div class="src-line"><a name="a484"></a><span class="src-doc"> *</span></div></li>
|
||
|
<li><div class="src-line"><a name="a485"></a><span class="src-doc"> * dumps a given variable</span></div></li>
|
||
|
<li><div class="src-line"><a name="a486"></a><span class="src-doc"> *</span></div></li>
|
||
|
<li><div class="src-line"><a name="a487"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">mixed </span><span class="src-doc-var">$var </span><span class="src-doc"> a variable of any type</span></div></li>
|
||
|
<li><div class="src-line"><a name="a488"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">boolean </span><span class="src-doc-var">$output </span><span class="src-doc"> whether to output the content</span></div></li>
|
||
|
<li><div class="src-line"><a name="a489"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc-type">void</span><span class="src-doc">|</span><span class="src-doc-type">string</span></div></li>
|
||
|
<li><div class="src-line"><a name="a490"></a><span class="src-doc"> */</span></div></li>
|
||
|
<li><div class="src-line"><a name="a491"></a> <span class="src-key">public </span><span class="src-key">static </span><span class="src-key">function </span><a href="../Doctrine/Doctrine.html#methoddump">dump</a><span class="src-sym">(</span><span class="src-var">$var</span><span class="src-sym">, </span><span class="src-var">$output </span>= <span class="src-id">true</span><span class="src-sym">)</span></div></li>
|
||
|
<li><div class="src-line"><a name="a492"></a> <span class="src-sym">{</span></div></li>
|
||
|
<li><div class="src-line"><a name="a493"></a> <span class="src-var">$ret </span>= <span class="src-key">array</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a494"></a> <span class="src-key">switch </span><span class="src-sym">(</span><a href="http://www.php.net/gettype">gettype</a><span class="src-sym">(</span><span class="src-var">$var</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li>
|
||
|
<li><div class="src-line"><a name="a495"></a> <span class="src-key">case </span><span class="src-str">'array'</span>:</div></li>
|
||
|
<li><div class="src-line"><a name="a496"></a> <span class="src-var">$ret</span><span class="src-sym">[</span><span class="src-sym">] </span>= <span class="src-str">'Array('</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a497"></a> <span class="src-key">foreach </span><span class="src-sym">(</span><span class="src-var">$var </span><span class="src-key">as </span><span class="src-var">$k </span>=> <span class="src-var">$v</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li>
|
||
|
<li><div class="src-line"><a name="a498"></a> <span class="src-var">$ret</span><span class="src-sym">[</span><span class="src-sym">] </span>= <span class="src-var">$k </span>. <span class="src-str">' : ' </span>. <span class="src-id"><a href="../Doctrine/Doctrine.html">Doctrine</a></span><span class="src-sym">::</span><a href="../Doctrine/Doctrine.html#methoddump">dump</a><span class="src-sym">(</span><span class="src-var">$v</span><span class="src-sym">, </span><span class="src-id">false</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a499"></a> <span class="src-sym">}</span></div></li>
|
||
|
<li><div class="src-line"><a name="a500"></a> <span class="src-var">$ret</span><span class="src-sym">[</span><span class="src-sym">] </span>= <span class="src-str">")"</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a501"></a> <span class="src-key">break</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a502"></a> <span class="src-key">case </span><span class="src-str">'object'</span>:</div></li>
|
||
|
<li><div class="src-line"><a name="a503"></a> <span class="src-var">$ret</span><span class="src-sym">[</span><span class="src-sym">] </span>= <span class="src-str">'Object(' </span>. <a href="http://www.php.net/get_class">get_class</a><span class="src-sym">(</span><span class="src-var">$var</span><span class="src-sym">) </span>. <span class="src-str">')'</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a504"></a> <span class="src-key">break</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a505"></a> <span class="src-key">default</span>:</div></li>
|
||
|
<li><div class="src-line"><a name="a506"></a> <span class="src-var">$ret</span><span class="src-sym">[</span><span class="src-sym">] </span>= <a href="http://www.php.net/var_export">var_export</a><span class="src-sym">(</span><span class="src-var">$var</span><span class="src-sym">, </span><span class="src-id">true</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a507"></a> <span class="src-sym">}</span></div></li>
|
||
|
<li><div class="src-line"><a name="a508"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-var">$output</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li>
|
||
|
<li><div class="src-line"><a name="a509"></a> print <a href="http://www.php.net/implode">implode</a><span class="src-sym">(</span><span class="src-str">"\n"</span><span class="src-sym">, </span><span class="src-var">$ret</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a510"></a> <span class="src-sym">}</span></div></li>
|
||
|
<li><div class="src-line"><a name="a511"></a> <span class="src-key">return </span><a href="http://www.php.net/implode">implode</a><span class="src-sym">(</span><span class="src-str">"\n"</span><span class="src-sym">, </span><span class="src-var">$ret</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a512"></a> <span class="src-sym">}</span></div></li>
|
||
|
<li><div class="src-line"><a name="a513"></a> <span class="src-doc">/**</span></div></li>
|
||
|
<li><div class="src-line"><a name="a514"></a><span class="src-doc"> * returns table name from class name</span></div></li>
|
||
|
<li><div class="src-line"><a name="a515"></a><span class="src-doc"> *</span></div></li>
|
||
|
<li><div class="src-line"><a name="a516"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string </span><span class="src-doc-var">$classname </span></div></li>
|
||
|
<li><div class="src-line"><a name="a517"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc-type">string </span></div></li>
|
||
|
<li><div class="src-line"><a name="a518"></a><span class="src-doc"> */</span></div></li>
|
||
|
<li><div class="src-line"><a name="a519"></a> <span class="src-key">public </span><span class="src-key">static </span><span class="src-key">function </span><a href="../Doctrine/Doctrine.html#methodtableize">tableize</a><span class="src-sym">(</span><span class="src-var">$classname</span><span class="src-sym">)</span></div></li>
|
||
|
<li><div class="src-line"><a name="a520"></a> <span class="src-sym">{</span></div></li>
|
||
|
<li><div class="src-line"><a name="a521"></a> <span class="src-key">return </span><a href="http://www.php.net/strtolower">strtolower</a><span class="src-sym">(</span><a href="http://www.php.net/preg_replace">preg_replace</a><span class="src-sym">(</span><span class="src-str">'~(?<=\\w)([A-Z])~'</span><span class="src-sym">, </span><span class="src-str">'_$1'</span><span class="src-sym">, </span><span class="src-var">$classname</span><span class="src-sym">))</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a522"></a> <span class="src-sym">}</span></div></li>
|
||
|
<li><div class="src-line"><a name="a523"></a> <span class="src-doc">/**</span></div></li>
|
||
|
<li><div class="src-line"><a name="a524"></a><span class="src-doc"> * returns class name from table name</span></div></li>
|
||
|
<li><div class="src-line"><a name="a525"></a><span class="src-doc"> *</span></div></li>
|
||
|
<li><div class="src-line"><a name="a526"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string </span><span class="src-doc-var">$tablename </span></div></li>
|
||
|
<li><div class="src-line"><a name="a527"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc-type">string </span></div></li>
|
||
|
<li><div class="src-line"><a name="a528"></a><span class="src-doc"> */</span></div></li>
|
||
|
<li><div class="src-line"><a name="a529"></a> <span class="src-key">public </span><span class="src-key">static </span><span class="src-key">function </span><a href="../Doctrine/Doctrine.html#methodclassify">classify</a><span class="src-sym">(</span><span class="src-var">$tablename</span><span class="src-sym">)</span></div></li>
|
||
|
<li><div class="src-line"><a name="a530"></a> <span class="src-sym">{</span></div></li>
|
||
|
<li><div class="src-line"><a name="a531"></a> <span class="src-key">return </span><a href="http://www.php.net/preg_replace">preg_replace</a><span class="src-sym">(</span><span class="src-str">'~(_?)(_)([\w])~e'</span><span class="src-sym">, </span><span class="src-str">'"$1".strtoupper("$3")'</span><span class="src-sym">, </span><a href="http://www.php.net/ucfirst">ucfirst</a><span class="src-sym">(</span><span class="src-var">$tablename</span><span class="src-sym">))</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a532"></a> <span class="src-sym">}</span></div></li>
|
||
|
<li><div class="src-line"><a name="a533"></a> <span class="src-doc">/**</span></div></li>
|
||
|
<li><div class="src-line"><a name="a534"></a><span class="src-doc"> * checks for valid class name (uses camel case and underscores)</span></div></li>
|
||
|
<li><div class="src-line"><a name="a535"></a><span class="src-doc"> *</span></div></li>
|
||
|
<li><div class="src-line"><a name="a536"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">string </span><span class="src-doc-var">$classname </span></div></li>
|
||
|
<li><div class="src-line"><a name="a537"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc-type">boolean </span></div></li>
|
||
|
<li><div class="src-line"><a name="a538"></a><span class="src-doc"> */</span></div></li>
|
||
|
<li><div class="src-line"><a name="a539"></a> <span class="src-key">public </span><span class="src-key">static </span><span class="src-key">function </span><a href="../Doctrine/Doctrine.html#methodisValidClassname">isValidClassname</a><span class="src-sym">(</span><span class="src-var">$classname</span><span class="src-sym">)</span></div></li>
|
||
|
<li><div class="src-line"><a name="a540"></a> <span class="src-sym">{</span></div></li>
|
||
|
<li><div class="src-line"><a name="a541"></a> <span class="src-key">if </span><span class="src-sym">(</span><a href="http://www.php.net/preg_match">preg_match</a><span class="src-sym">(</span><span class="src-str">'~(^[a-z])|(_[a-z])|([\W])|(_{2})~'</span><span class="src-sym">, </span><span class="src-var">$classname</span><span class="src-sym">)) </span><span class="src-sym">{</span></div></li>
|
||
|
<li><div class="src-line"><a name="a542"></a> <span class="src-key">return </span><span class="src-id">false</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a543"></a> <span class="src-sym">} </span></div></li>
|
||
|
<li><div class="src-line"><a name="a544"></a> </div></li>
|
||
|
<li><div class="src-line"><a name="a545"></a> <span class="src-key">return </span><span class="src-id">true</span><span class="src-sym">;</span></div></li>
|
||
|
<li><div class="src-line"><a name="a546"></a> <span class="src-sym">}</span></div></li>
|
||
|
<li><div class="src-line"><a name="a547"></a><span class="src-sym">}</span></div></li>
|
||
|
<li><div class="src-line"><a name="a548"></a><span class="src-php">?></span></div></li>
|
||
|
</ol>
|
||
|
</span></div>
|
||
|
</div>
|