source: branches/2.2.0.1/agileProjects/inc/class.sobacklogs.inc.php @ 4269

Revision 4269, 2.8 KB checked in by rafaelraymundo, 13 years ago (diff)

Ticket #1823 - Adicionada primeira versao do modulo de kanban para avaliacao.

  • Property svn:executable set to *
Line 
1<?php
2        /************************************************************************************************\
3        *  Gerencia de projetos ageis                                                                   *
4        *  by Rafael Raymundo da Silva (rafael2000@gmail.com)                                           *
5        * ----------------------------------------------------------------------------------------------*
6        *  This program is free software; you can redistribute it and/or modify it                      *
7        *  under the terms of the GNU General Public License as published by the                        *
8        *  Free Software Foundation; either version 2 of the License, or (at your                       *
9        *  option) any later version.                                                                   *
10        \***********************************************************************************************/
11
12
13        class sobacklogs{
14                var $tasks_id_sprints;
15                var $tasks_owner;
16                var $tasks_title;
17                var $tasks_subtitle;
18                var $tasks_description;
19                var $tasks_status;
20               
21                var $tasks;
22                var $tasks_sprints;
23                var $tasksElements;
24                var $tasksSprints;
25               
26
27                function sobacklogs(){
28                        include_once('../phpgwapi/inc/class.db.inc.php');
29                        include_once('inc/class.ldap_functions.inc.php');
30
31                        $projId = $_SESSION['phpgw_info']['expresso']['agileProjects']['active'];
32
33                        $this->tasks_id_sprints = $GLOBALS['phpgw']->db;
34                        $this->tasks_owner = $GLOBALS['phpgw']->db;
35                        $this->tasks_title = $GLOBALS['phpgw']->db;
36                        $this->tasks_subtitle = $GLOBALS['phpgw']->db;
37                        $this->tasks_description = $GLOBALS['phpgw']->db;
38                        $this->tasks_status = $GLOBALS['phpgw']->db;
39
40                        $this->tasks = $GLOBALS['phpgw']->db;
41                        $this->tasks_sprints = $GLOBALS['phpgw']->db;
42                        $list = new ldap_functions();
43
44                        $this->tasks->query('SELECT tasks_id_owner, tasks_title, tasks_description, tasks_status, sprints_name
45                                                FROM phpgw_agile_tasks, phpgw_agile_sprints
46                                                WHERE sprints_id=tasks_id_sprints AND tasks_id_proj='.$projId.'
47                                                GROUP BY tasks_id_owner, tasks_title, tasks_description, tasks_status, sprints_name',__LINE__,__FILE__);
48
49                        if($this->tasks->num_rows()){
50                                $i=0;
51                                while($this->tasks->next_record())
52                                {
53                                        $this->tasksElements['tasks_sprints'][$i] = $this->tasks->f('sprints_name');
54                                        $this->tasksElements['tasks_owner'][$i] = $list->uidnumber2cn($this->tasks->f('tasks_id_owner'));
55                                        $this->tasksElements['tasks_title'][$i] = $this->tasks->f('tasks_title');
56                                        $this->tasksElements['tasks_description'][$i] = $this->tasks->f('tasks_description');
57                                        $this->tasksElements['tasks_status'][$i] = $this->tasks->f('tasks_status');
58                                        $i++;
59                                }
60                        }
61                }
62        }
Note: See TracBrowser for help on using the repository browser.