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

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

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