PluginProbe
CSS & JavaScript Toolbox / 8.0
CSS & JavaScript Toolbox v8.0
trunk 0.3 0.8 10 10.1 11 11.2 11.3 11.4 11.5 11.6 11.7 11.8 11.9 11.9.1 12 12.0 12.0.1 12.0.3 12.0.4 12.0.5 12.0.6 12.0.7 6.0 6.0.11 All 60 releases
css-javascript-toolbox / framework / db / mysql / single-table-simple-view.inc.php

single-table-simple-view.inc.php in CSS & JavaScript Toolbox 8.0, at framework/db/mysql/single-table-simple-view.inc.php

45 lines 797 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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.