/** * List all queries * * @return Query[] * @internal param int $id */ public function listQueries() { $list = $this->db->getData($this->tableName, null, null, $this->getUserId()); return $list ? $list : array(); }