| @@ 85-93 (lines=9) @@ | ||
| 82 | /** |
|
| 83 | * @param $id |
|
| 84 | */ |
|
| 85 | public function load($id) |
|
| 86 | { |
|
| 87 | $sql = 'SELECT * FROM ' . $this->db->prefix('assessment_documentos') . ' WHERE cod_documento=' . $id; |
|
| 88 | $myrow = $this->db->fetchArray($this->db->query($sql)); |
|
| 89 | $this->assignVars($myrow); |
|
| 90 | if (!$myrow) { |
|
| 91 | $this->setNew(); |
|
| 92 | } |
|
| 93 | } |
|
| 94 | ||
| 95 | /** |
|
| 96 | * @param array $criteria |
|
| @@ 75-83 (lines=9) @@ | ||
| 72 | /** |
|
| 73 | * @param $id |
|
| 74 | */ |
|
| 75 | public function load($id) |
|
| 76 | { |
|
| 77 | $sql = 'SELECT * FROM ' . $this->db->prefix('assessment_perguntas') . ' WHERE cod_pergunta=' . $id; |
|
| 78 | $myrow = $this->db->fetchArray($this->db->query($sql)); |
|
| 79 | $this->assignVars($myrow); |
|
| 80 | if (!$myrow) { |
|
| 81 | $this->setNew(); |
|
| 82 | } |
|
| 83 | } |
|
| 84 | ||
| 85 | /** |
|
| 86 | * @param array $criteria |
|
| @@ 74-82 (lines=9) @@ | ||
| 71 | /** |
|
| 72 | * @param $id |
|
| 73 | */ |
|
| 74 | public function load($id) |
|
| 75 | { |
|
| 76 | $sql = 'SELECT * FROM ' . $this->db->prefix('assessment_provas') . ' WHERE cod_prova=' . $id; |
|
| 77 | $myrow = $this->db->fetchArray($this->db->query($sql)); |
|
| 78 | $this->assignVars($myrow); |
|
| 79 | if (!$myrow) { |
|
| 80 | $this->setNew(); |
|
| 81 | } |
|
| 82 | } |
|
| 83 | ||
| 84 | /** |
|
| 85 | * @param array $criteria |
|
| @@ 69-77 (lines=9) @@ | ||
| 66 | /** |
|
| 67 | * @param $id |
|
| 68 | */ |
|
| 69 | public function load($id) |
|
| 70 | { |
|
| 71 | $sql = 'SELECT * FROM ' . $this->db->prefix('assessment_respostas') . ' WHERE cod_resposta=' . $id; |
|
| 72 | $myrow = $this->db->fetchArray($this->db->query($sql)); |
|
| 73 | $this->assignVars($myrow); |
|
| 74 | if (!$myrow) { |
|
| 75 | $this->setNew(); |
|
| 76 | } |
|
| 77 | } |
|
| 78 | ||
| 79 | /** |
|
| 80 | * @param array $criteria |
|
| @@ 73-81 (lines=9) @@ | ||
| 70 | /** |
|
| 71 | * @param $id |
|
| 72 | */ |
|
| 73 | public function load($id) |
|
| 74 | { |
|
| 75 | $sql = 'SELECT * FROM ' . $this->db->prefix('assessment_resultados') . ' WHERE cod_resultado=' . $id; |
|
| 76 | $myrow = $this->db->fetchArray($this->db->query($sql)); |
|
| 77 | $this->assignVars($myrow); |
|
| 78 | if (!$myrow) { |
|
| 79 | $this->setNew(); |
|
| 80 | } |
|
| 81 | } |
|
| 82 | ||
| 83 | /** |
|
| 84 | * @param array $criteria |
|