public function __construct($table) { // parse a fully qualified table name $tokens = explode('.', $table, 2); $this->table = array_pop($tokens); $this->database = array_pop($tokens); }