| 1 |
<?php |
| 2 |
/** |
| 3 |
* @version $ Id; ?FILE_NAME ?DATE ?TIME ?AUTHOR $ |
| 4 |
*/ |
| 5 |
|
| 6 |
/** |
| 7 |
* No direct access. |
| 8 |
*/ |
| 9 |
defined('ABSPATH') or die("Access denied"); |
| 10 |
|
| 11 |
/** |
| 12 |
* Import libs. |
| 13 |
*/ |
| 14 |
require_once CJTOOLBOX_INCLUDE_PATH . '/db/mysql/sql-view.inc.php'; |
| 15 |
|
| 16 |
/** |
| 17 |
* |
| 18 |
* DESCRIPTION |
| 19 |
* |
| 20 |
* @author ?? |
| 21 |
* @version ?? |
| 22 |
*/ |
| 23 |
class CJTMYSQLQuery extends CJTSQLView { |
| 24 |
|
| 25 |
/** |
| 26 |
* put your comment there... |
| 27 |
* |
| 28 |
*/ |
| 29 |
public function __toString() { |
| 30 |
// Build where clause. |
| 31 |
$query['where'] = implode(' AND ', $this->driver->getDBDriver()->prepareQueryParameters($this->query->filter)); |
| 32 |
// Build query. |
| 33 |
$query = $this->buildQuery($this->driver->getName(), $query['where']); |
| 34 |
return $query; |
| 35 |
} |
| 36 |
|
| 37 |
/** |
| 38 |
* put your comment there... |
| 39 |
* |
| 40 |
*/ |
| 41 |
public function exec() { |
| 42 |
return $this->driver->dbDriver->select($this, OBJECT_K); |
| 43 |
} |
| 44 |
|
| 45 |
} // End class. |