aboutsummaryrefslogtreecommitdiff
path: root/engine/classes/TableQueryComponent.php
blob: 54e6ab0217d0904bc31c1eb36fa53ad658845388 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?php
/**
 * @class TableQueryComponent
 * List of tables to select from or insert into.
 * @author Curverider Ltd
 * @see Query
 */
class TableQueryComponent extends QueryComponent
{
	function __construct($table)
	{
		global $CONFIG;

		$this->table = $CONFIG->dbprefix . sanitise_string($table);
	}

	function __toString()
	{
		return $this->table;
	}
}