Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 1275 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1275 Rev 1445
Línea 45... Línea 45...
45
        return self::$_instance;
45
        return self::$_instance;
46
    }
46
    }
Línea 47... Línea 47...
47
 
47
 
48
 
48
 
49
 
49
 
50
    public function fetchAllDataTable($search, $page = 1, $records_per_page = 10, $order_field= 'title', $order_direction = 'ASC', $id_goals)
50
    public function fetchAllDataTable($search, $page = 1, $records_per_page = 10, $order_field= 'title', $order_direction = 'ASC', $goal_id)
51
    {
51
    {
52
        $prototype = new PlanningObjectivesAndGoalsTask();
52
        $prototype = new PlanningObjectivesAndGoalsTask();
Línea 53... Línea 53...
53
        $select = $this->sql->select(self::_TABLE);
53
        $select = $this->sql->select(self::_TABLE);
54
        $select->where->equalTo('id_goals', $id_goals);
54
        $select->where->equalTo('goal_id', $goal_id);
Línea 71... Línea 71...
71
        $paginator->setCurrentPageNumber($page);
71
        $paginator->setCurrentPageNumber($page);
Línea 72... Línea 72...
72
        
72
        
73
        
73
        
74
        return $paginator;
74
        return $paginator;
75
    }
75
    }
76
    public function fetchAll($id_goals)
76
    public function fetchAll($goal_id)
77
    {
77
    {
78
        $prototype = new PlanningObjectivesAndGoalsTask();
78
        $prototype = new PlanningObjectivesAndGoalsTask();
79
        $select = $this->sql->select(self::_TABLE);
79
        $select = $this->sql->select(self::_TABLE);
80
        $select->where->equalTo('id_goals', $id_goals)->equalTo('status', 'a');
80
        $select->where->equalTo('goal_id', $goal_id)->equalTo('status', 'a');
Línea 81... Línea 81...
81
        $select->where->notEqualTo('status', PlanningObjectivesAndGoalsTask::STATUS_DELETE);
81
        $select->where->notEqualTo('status', PlanningObjectivesAndGoalsTask::STATUS_DELETE);