/** * Gets the stack of queries run up to this point, in order, as an array * keyed on query id OR, if an id is specified, gets the query for that id. * * @access public * @param int $id The query id * @return array */ public function queryStack($id = 0) { return Application_Model_Queryprofiler::getQueryStack($id); }