12 lines
21 KiB
HTML
12 lines
21 KiB
HTML
<?xml version="1.0"?>
|
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="en"><head><title>phpDox - Source of AbstractSQL.php</title><link rel="stylesheet" type="text/css" href="../../css/style.css" media="screen"/><link rel="stylesheet" href="../../css/source.css"/><meta http-equiv="content-type" content="text/html; charset=utf-8"/></head><body><nav class="topnav"><ul><li><div class="logo"><span>/**</span>phpDox</div></li><li class="separator"><a href="../../index.html">Overview</a></li><li class="separator"><a href="../../namespaces.html">Namespaces</a></li><li><a href="../../interfaces.html">Interfaces</a></li><li><a href="../../classes.html">Classes</a></li><li class="separator"><a href="../../source/index.html">Source</a></li></ul></nav><div id="mainstage"><div class="box"><ul class="breadcrumb"><li><a href="../../index.html">Overview</a></li><li class="separator"><a href="../../source/index.html">Source</a></li></ul></div><h1>Source of file AbstractSQL.php</h1><p>
|
|
Size: 0,847 Bytes - Last Modified: 2018-01-24T19:47:00+00:00</p><section><h2><small>src/Drivers/</small>AbstractSQL.php</h2><table class="source"><tr><td class="no"><a class="anker" href="#line1">1</a><a class="anker" href="#line2">2</a><a class="anker" href="#line3">3</a><a class="anker" href="#line4">4</a><a class="anker" href="#line5">5</a><a class="anker" href="#line6">6</a><a class="anker" href="#line7">7</a><a class="anker" href="#line8">8</a><a class="anker" href="#line9">9</a><a class="anker" href="#line10">10</a><a class="anker" href="#line11">11</a><a class="anker" href="#line12">12</a><a class="anker" href="#line13">13</a><a class="anker" href="#line14">14</a><a class="anker" href="#line15">15</a><a class="anker" href="#line16">16</a><a class="anker" href="#line17">17</a><a class="anker" href="#line18">18</a><a class="anker" href="#line19">19</a><a class="anker" href="#line20">20</a><a class="anker" href="#line21">21</a><a class="anker" href="#line22">22</a><a class="anker" href="#line23">23</a><a class="anker" href="#line24">24</a><a class="anker" href="#line25">25</a><a class="anker" href="#line26">26</a><a class="anker" href="#line27">27</a><a class="anker" href="#line28">28</a><a class="anker" href="#line29">29</a><a class="anker" href="#line30">30</a><a class="anker" href="#line31">31</a><a class="anker covered" href="#line32">32</a><div class="coverage_details"><span>
|
|
Covered by 38 test(s):
|
|
</span><ul><li>Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testQueryExplain</li><li>Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testGetLimit</li><li>Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testGetLimitSkip</li><li>Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testGetWhere</li><li>Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testSelectWhereGet</li><li>Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testSelectGet</li><li>Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testSelectFromLimitGet</li><li>Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testSelectWhereGet2</li><li>Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testGroup</li><li>Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testOrGroup</li><li>Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testOrNotGroup</li><li>Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testAndNotGroupStart</li><li>Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testNotGroupStart</li><li>Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testGroupCamelCase</li><li>Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testOrderBy</li><li>Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testOrderByRandom</li><li>Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testGroupBy</li><li>Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testOrWhere</li><li>Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testCountAllResults2</li><li>Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testQueryExplain</li><li>Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testGetLimit</li><li>Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testGetLimitSkip</li><li>Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testGetWhere</li><li>Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testSelectWhereGet</li><li>Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testSelectGet</li><li>Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testSelectFromLimitGet</li><li>Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testSelectWhereGet2</li><li>Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testGroup</li><li>Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testOrGroup</li><li>Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testOrNotGroup</li><li>Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testAndNotGroupStart</li><li>Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testNotGroupStart</li><li>Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testGroupCamelCase</li><li>Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testOrderBy</li><li>Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testOrderByRandom</li><li>Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testGroupBy</li><li>Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testOrWhere</li><li>Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testCountAllResults2</li></ul></div><a class="anker" href="#line33">33</a><a class="anker covered" href="#line34">34</a><div class="coverage_details"><span>
|
|
Covered by 38 test(s):
|
|
</span><ul><li>Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testQueryExplain</li><li>Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testGetLimit</li><li>Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testGetLimitSkip</li><li>Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testGetWhere</li><li>Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testSelectWhereGet</li><li>Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testSelectGet</li><li>Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testSelectFromLimitGet</li><li>Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testSelectWhereGet2</li><li>Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testGroup</li><li>Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testOrGroup</li><li>Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testOrNotGroup</li><li>Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testAndNotGroupStart</li><li>Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testNotGroupStart</li><li>Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testGroupCamelCase</li><li>Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testOrderBy</li><li>Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testOrderByRandom</li><li>Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testGroupBy</li><li>Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testOrWhere</li><li>Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testCountAllResults2</li><li>Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testQueryExplain</li><li>Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testGetLimit</li><li>Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testGetLimitSkip</li><li>Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testGetWhere</li><li>Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testSelectWhereGet</li><li>Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testSelectGet</li><li>Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testSelectFromLimitGet</li><li>Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testSelectWhereGet2</li><li>Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testGroup</li><li>Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testOrGroup</li><li>Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testOrNotGroup</li><li>Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testAndNotGroupStart</li><li>Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testNotGroupStart</li><li>Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testGroupCamelCase</li><li>Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testOrderBy</li><li>Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testOrderByRandom</li><li>Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testGroupBy</li><li>Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testOrWhere</li><li>Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testCountAllResults2</li></ul></div><a class="anker" href="#line35">35</a><a class="anker covered" href="#line36">36</a><div class="coverage_details"><span>
|
|
Covered by 34 test(s):
|
|
</span><ul><li>Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testQueryExplain</li><li>Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testGetLimitSkip</li><li>Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testGetWhere</li><li>Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testSelectWhereGet</li><li>Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testSelectGet</li><li>Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testSelectWhereGet2</li><li>Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testGroup</li><li>Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testOrGroup</li><li>Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testOrNotGroup</li><li>Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testAndNotGroupStart</li><li>Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testNotGroupStart</li><li>Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testGroupCamelCase</li><li>Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testOrderBy</li><li>Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testOrderByRandom</li><li>Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testGroupBy</li><li>Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testOrWhere</li><li>Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testCountAllResults2</li><li>Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testQueryExplain</li><li>Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testGetLimitSkip</li><li>Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testGetWhere</li><li>Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testSelectWhereGet</li><li>Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testSelectGet</li><li>Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testSelectWhereGet2</li><li>Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testGroup</li><li>Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testOrGroup</li><li>Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testOrNotGroup</li><li>Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testAndNotGroupStart</li><li>Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testNotGroupStart</li><li>Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testGroupCamelCase</li><li>Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testOrderBy</li><li>Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testOrderByRandom</li><li>Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testGroupBy</li><li>Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testOrWhere</li><li>Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testCountAllResults2</li></ul></div><a class="anker" href="#line37">37</a><a class="anker" href="#line38">38</a><a class="anker covered" href="#line39">39</a><div class="coverage_details"><span>
|
|
Covered by 38 test(s):
|
|
</span><ul><li>Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testQueryExplain</li><li>Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testGetLimit</li><li>Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testGetLimitSkip</li><li>Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testGetWhere</li><li>Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testSelectWhereGet</li><li>Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testSelectGet</li><li>Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testSelectFromLimitGet</li><li>Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testSelectWhereGet2</li><li>Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testGroup</li><li>Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testOrGroup</li><li>Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testOrNotGroup</li><li>Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testAndNotGroupStart</li><li>Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testNotGroupStart</li><li>Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testGroupCamelCase</li><li>Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testOrderBy</li><li>Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testOrderByRandom</li><li>Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testGroupBy</li><li>Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testOrWhere</li><li>Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testCountAllResults2</li><li>Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testQueryExplain</li><li>Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testGetLimit</li><li>Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testGetLimitSkip</li><li>Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testGetWhere</li><li>Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testSelectWhereGet</li><li>Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testSelectGet</li><li>Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testSelectFromLimitGet</li><li>Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testSelectWhereGet2</li><li>Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testGroup</li><li>Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testOrGroup</li><li>Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testOrNotGroup</li><li>Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testAndNotGroupStart</li><li>Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testNotGroupStart</li><li>Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testGroupCamelCase</li><li>Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testOrderBy</li><li>Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testOrderByRandom</li><li>Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testGroupBy</li><li>Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testOrWhere</li><li>Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testCountAllResults2</li></ul></div><a class="anker" href="#line40">40</a><a class="anker" href="#line41">41</a><a class="anker" href="#line42">42</a></td><td class="line"><div id="line1"><pre><span class="token T_OPEN_TAG"><?php </span><span class="token T_DECLARE">declare</span><span class="token T_PHPDOX_OPEN_BRACKET">(</span><span class="token T_STRING">strict_types</span><span class="token T_PHPDOX_EQUAL">=</span><span class="token T_LNUMBER">1</span><span class="token T_PHPDOX_CLOSE_BRACKET">)</span><span class="token T_PHPDOX_SEMICOLON">;</span></pre></div><div id="line2"><pre><span class="token T_DOC_COMMENT">/**</span></pre></div><div id="line3"><pre><span class="token T_DOC_COMMENT"> * Query</span></pre></div><div id="line4"><pre><span class="token T_DOC_COMMENT"> *</span></pre></div><div id="line5"><pre><span class="token T_DOC_COMMENT"> * SQL Query Builder / Database Abstraction Layer</span></pre></div><div id="line6"><pre><span class="token T_DOC_COMMENT"> *</span></pre></div><div id="line7"><pre><span class="token T_DOC_COMMENT"> * PHP version 7.1</span></pre></div><div id="line8"><pre><span class="token T_DOC_COMMENT"> *</span></pre></div><div id="line9"><pre><span class="token T_DOC_COMMENT"> * @package Query</span></pre></div><div id="line10"><pre><span class="token T_DOC_COMMENT"> * @author Timothy J. Warren <tim@timshomepage.net></span></pre></div><div id="line11"><pre><span class="token T_DOC_COMMENT"> * @copyright 2012 - 2018 Timothy J. Warren</span></pre></div><div id="line12"><pre><span class="token T_DOC_COMMENT"> * @license http://www.opensource.org/licenses/mit-license.html MIT License</span></pre></div><div id="line13"><pre><span class="token T_DOC_COMMENT"> * @link https://git.timshomepage.net/aviat4ion/Query</span></pre></div><div id="line14"><pre><span class="token T_DOC_COMMENT"> */</span></pre></div><div id="line15"><pre><span class="token T_NAMESPACE">namespace</span><span class="token T_WHITESPACE"> </span><span class="token T_STRING">Query</span><span class="token T_NS_SEPARATOR">\</span><span class="token T_STRING">Drivers</span><span class="token T_PHPDOX_SEMICOLON">;</span></pre></div><div id="line16"><br/></div><div id="line17"><pre><span class="token T_DOC_COMMENT">/**</span></pre></div><div id="line18"><pre><span class="token T_DOC_COMMENT"> * Parent for database-specific syntax subclasses</span></pre></div><div id="line19"><pre><span class="token T_DOC_COMMENT"> */</span></pre></div><div id="line20"><pre><span class="token T_ABSTRACT">abstract</span><span class="token T_WHITESPACE"> </span><span class="token T_CLASS">class</span><span class="token T_WHITESPACE"> </span><span class="token T_STRING">AbstractSQL</span><span class="token T_WHITESPACE"> </span><span class="token T_IMPLEMENTS">implements</span><span class="token T_WHITESPACE"> </span><span class="token T_STRING">SQLInterface</span><span class="token T_WHITESPACE"> </span><span class="token T_PHPDOX_OPEN_CURLY">{</span></pre></div><div id="line21"><br/></div><div id="line22"><pre><span class="token T_WHITESPACE"> </span><span class="token T_DOC_COMMENT">/**</span></pre></div><div id="line23"><pre><span class="token T_DOC_COMMENT"> * Limit clause</span></pre></div><div id="line24"><pre><span class="token T_DOC_COMMENT"> *</span></pre></div><div id="line25"><pre><span class="token T_DOC_COMMENT"> * @param string $sql</span></pre></div><div id="line26"><pre><span class="token T_DOC_COMMENT"> * @param int $limit</span></pre></div><div id="line27"><pre><span class="token T_DOC_COMMENT"> * @param int|bool $offset</span></pre></div><div id="line28"><pre><span class="token T_DOC_COMMENT"> * @return string</span></pre></div><div id="line29"><pre><span class="token T_DOC_COMMENT"> */</span></pre></div><div id="line30"><pre><span class="token T_WHITESPACE"> </span><span class="token T_PUBLIC">public</span><span class="token T_WHITESPACE"> </span><span class="token T_FUNCTION">function</span><span class="token T_WHITESPACE"> </span><span class="token T_STRING">limit</span><span class="token T_PHPDOX_OPEN_BRACKET">(</span><span class="token T_STRING">string</span><span class="token T_WHITESPACE"> </span><span class="token T_VARIABLE">$sql</span><span class="token T_PHPDOX_COMMA">,</span><span class="token T_WHITESPACE"> </span><span class="token T_STRING">int</span><span class="token T_WHITESPACE"> </span><span class="token T_VARIABLE">$limit</span><span class="token T_PHPDOX_COMMA">,</span><span class="token T_WHITESPACE"> </span><span class="token T_VARIABLE">$offset</span><span class="token T_PHPDOX_EQUAL">=</span><span class="token T_STRING">FALSE</span><span class="token T_PHPDOX_CLOSE_BRACKET">)</span><span class="token T_PHPDOX_COLON">:</span><span class="token T_WHITESPACE"> </span><span class="token T_STRING">string</span></pre></div><div id="line31"><pre><span class="token T_WHITESPACE"> </span><span class="token T_PHPDOX_OPEN_CURLY">{</span></pre></div><div id="line32"><pre><span class="token T_WHITESPACE"> </span><span class="token T_VARIABLE">$sql</span><span class="token T_WHITESPACE"> </span><span class="token T_CONCAT_EQUAL">.=</span><span class="token T_WHITESPACE"> </span><span class="token T_PHPDOX_DOUBLE_QUOTES">"</span><span class="token T_ENCAPSED_AND_WHITESPACE">\nLIMIT </span><span class="token T_CURLY_OPEN">{</span><span class="token T_VARIABLE">$limit</span><span class="token T_PHPDOX_CLOSE_CURLY">}</span><span class="token T_PHPDOX_DOUBLE_QUOTES">"</span><span class="token T_PHPDOX_SEMICOLON">;</span></pre></div><div id="line33"><br/></div><div id="line34"><pre><span class="token T_WHITESPACE"> </span><span class="token T_IF">if</span><span class="token T_WHITESPACE"> </span><span class="token T_PHPDOX_OPEN_BRACKET">(</span><span class="token T_STRING">is_numeric</span><span class="token T_PHPDOX_OPEN_BRACKET">(</span><span class="token T_VARIABLE">$offset</span><span class="token T_PHPDOX_CLOSE_BRACKET">)</span><span class="token T_PHPDOX_CLOSE_BRACKET">)</span></pre></div><div id="line35"><pre><span class="token T_WHITESPACE"> </span><span class="token T_PHPDOX_OPEN_CURLY">{</span></pre></div><div id="line36"><pre><span class="token T_WHITESPACE"> </span><span class="token T_VARIABLE">$sql</span><span class="token T_WHITESPACE"> </span><span class="token T_CONCAT_EQUAL">.=</span><span class="token T_WHITESPACE"> </span><span class="token T_PHPDOX_DOUBLE_QUOTES">"</span><span class="token T_ENCAPSED_AND_WHITESPACE"> OFFSET </span><span class="token T_CURLY_OPEN">{</span><span class="token T_VARIABLE">$offset</span><span class="token T_PHPDOX_CLOSE_CURLY">}</span><span class="token T_PHPDOX_DOUBLE_QUOTES">"</span><span class="token T_PHPDOX_SEMICOLON">;</span></pre></div><div id="line37"><pre><span class="token T_WHITESPACE"> </span><span class="token T_PHPDOX_CLOSE_CURLY">}</span></pre></div><div id="line38"><br/></div><div id="line39"><pre><span class="token T_WHITESPACE"> </span><span class="token T_RETURN">return</span><span class="token T_WHITESPACE"> </span><span class="token T_VARIABLE">$sql</span><span class="token T_PHPDOX_SEMICOLON">;</span></pre></div><div id="line40"><pre><span class="token T_WHITESPACE"> </span><span class="token T_PHPDOX_CLOSE_CURLY">}</span></pre></div><div id="line41"><pre><span class="token T_PHPDOX_CLOSE_CURLY">}</span></pre></div><div id="line42"><br/></div></td></tr></table></section></div><footer><span>Generated using phpDox 0.11.0-dev - Copyright (C) 2010 - 2018 by Arne Blankerts and Contributors</span></footer></body></html>
|