# css-javascript-toolbox/6.0.15/framework/db/mysql/single-table-simple-view.inc.php

CSS &amp; JavaScript Toolbox, version 6.0.15. 45 lines.

- Page: https://pluginprobe.com/plugins/css-javascript-toolbox/6.0.15/code/framework/db/mysql/single-table-simple-view.inc.php
- Raw: https://pluginprobe.com/plugins/css-javascript-toolbox/6.0.15/raw/framework/db/mysql/single-table-simple-view.inc.php
- Modified: 2013-03-17T20:09:52+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/css-javascript-toolbox/6.0.15/code/framework/db/mysql/single-table-simple-view.inc.php#L10-L20`.

```php
<?php
/**
* @version $ Id; ?FILE_NAME ?DATE ?TIME ?AUTHOR $
*/

/**
* No direct access.
*/
defined('ABSPATH') or die("Access denied");

/**
* Import libs.
*/
require_once CJTOOLBOX_INCLUDE_PATH . '/db/mysql/sql-view.inc.php';

/**
* 
* DESCRIPTION
* 
* @author ??
* @version ??
*/
class CJTMYSQLQuery extends CJTSQLView {
	
	/**
	* put your comment there...
	* 
	*/
	public function __toString() {
		// Build where clause.
		$query['where'] = implode(' AND ', $this->driver->getDBDriver()->prepareQueryParameters($this->query->filter));
		// Build query.
		$query = $this->buildQuery($this->driver->getName(), $query['where']);
		return $query;
	}
	
	/**
	* put your comment there...
	* 
	*/
	public function exec() {
		return $this->driver->dbDriver->select($this, OBJECT_K);
	}
	
} // End class.
```
