aboutsummaryrefslogtreecommitdiff
path: root/engine/classes/TableQueryComponent.php
blob: 406ee98d0e2ee6d40c7189ccfce51dfe29591695 (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;
	}
}