Cache = $Cache; $this->DB = $DB; $this->UserID = (int) $UserID; if ($this->UserID < 1) error(403); } /** * Set the Table * @param string $Table */ final public function set_table ($Table) { $this->Table = db_string($Table); } /** * Get the Table * @param sting $Table * @return string $Table */ final public function get_table () { return $this->Table; } /** * The extending class must provide a method to send a query and clear the cache */ abstract protected function query_and_clear_cache ($sql); /** * A method to insert many rows into a single table * Not required in subsequent classes */ public function mass_add () {} /** * A method to remove many rows from a table * The extending class must have a mass_remove method */ abstract public function mass_remove (); /** * A method to update many rows in a table * The extending class must have a mass_update method */ abstract public function mass_update (); }