/** * Get the list of saved documents * * @return array, documents list * @todo add pagination */ public function getDocumentsList() { $selectDocuments = 'SELECT * FROM documents'; $st = $this->_db->prepare($selectDocuments); $this->_execute($st); $list = $st->fetchAll(\PDO::FETCH_ASSOC); return $list; }