Difference between revisions of "JQuery/ toString"
From Joomla! Documentation
< API15:JQuery
(New page: ===Description===
string The completed query
<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>Edit Descripton<nowiki>]</nowiki>
...) |
m (removing red link to edit, no existant pages) |
||
Line 4: | Line 4: | ||
<span class="editsection" style="font-size:76%;"> | <span class="editsection" style="font-size:76%;"> | ||
− | <nowiki>[< | + | <nowiki>[<! removed edit link to red link >]</nowiki> |
</span> | </span> | ||
− | + | <! removed transcluded page call, red link never existed > | |
===Syntax=== | ===Syntax=== | ||
Line 58: | Line 58: | ||
<span class="editsection" style="font-size:76%;"> | <span class="editsection" style="font-size:76%;"> | ||
− | <nowiki>[< | + | <nowiki>[<! removed edit link to red link >]</nowiki> |
</span> | </span> | ||
− | + | <! removed transcluded page call, red link never existed > | |
===Examples=== | ===Examples=== | ||
Line 73: | Line 73: | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
+ | [[Category:Archived pages API15]] |
Revision as of 13:42, 12 May 2013
The "API15" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.
Description[edit]
string The completed query
[<! removed edit link to red link >]
<! removed transcluded page call, red link never existed >
Syntax[edit]
__toString()
Returns[edit]
string The completed query
Defined in[edit]
libraries/joomla/database/query.php
Importing[edit]
jimport( 'joomla.database.query' );
Source Body[edit]
public function __toString()
{
$query = '';
switch ($this->_type)
{
case 'select':
$query .= $this->_select->toString();
$query .= $this->_from->toString();
if ($this->_join) {
// special case for joins
foreach ($this->_join as $join) {
$query .= $join->toString();
}
}
if ($this->_where) {
$query .= $this->_where->toString();
}
if ($this->_group) {
$query .= $this->_group->toString();
}
if ($this->_having) {
$query .= $this->_having->toString();
}
if ($this->_order) {
$query .= $this->_order->toString();
}
break;
}
return $query;
}
[<! removed edit link to red link >] <! removed transcluded page call, red link never existed >
Examples[edit]
<CodeExamplesForm />