コード例 #1
0
 public function index()
 {
     $this->setTela('Relatório');
     $groupBy = $this->getParametro('group', 'ano');
     $codUsuario = $this->getUsuario()->getCodUsu();
     $tarefa = new Tarefa();
     $tarefa->setConexao(Conexao::getInstancia()->getConexao());
     $report = $tarefa->getRelatorioPeloUsuario($codUsuario, $groupBy);
     return ['group' => $groupBy, 'relatorio' => $report];
 }
コード例 #2
0
ファイル: TarefaController.php プロジェクト: Thalita/TP2015
 private function excluir(Tarefa $tarefa)
 {
     $tarefa->excluir();
     $this->setMensagemSucesso('Tarefa excluída com sucesso!');
 }