Commit 19d2cb29 authored by Matías Pagano's avatar Matías Pagano

id

parent 1cb7901e
......@@ -19,14 +19,14 @@ class ResourceRepository extends PDORepository {
}
private function __construct() {
}
public function listAll() {
$answer = $this->queryList("select * from usuarios where estado=?;", ['Confirmado']);
$final_answer = [];
foreach ($answer as &$element) {
$final_answer[] = new Resource($element['apellido'].", ".$element['nombre'], $element['id']);
$final_answer[] = new Resource($element['apellido'].", ".$element['nombre'], "?id=".$element['id']);
}
return $final_answer;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment