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 44... Línea 44...
44
        return self::$_instance;
44
        return self::$_instance;
45
    }
45
    }
Línea 46... Línea 46...
46
 
46
 
47
 
47
 
48
 
48
 
49
    public function fetchAllDataTable($search, $page = 1, $records_per_page = 10, $order_field= 'title', $order_direction = 'ASC', $id_objectives)
49
    public function fetchAllDataTable($search, $page = 1, $records_per_page = 10, $order_field= 'title', $order_direction = 'ASC', $objective_id)
50
    {
50
    {
51
        $prototype = new PlanningObjectivesAndGoalsGoals();
51
        $prototype = new PlanningObjectivesAndGoalsGoals();
Línea 52... Línea 52...
52
        $select = $this->sql->select(self::_TABLE);
52
        $select = $this->sql->select(self::_TABLE);
53
        $select->where->equalTo('id_objectives', $id_objectives);
53
        $select->where->equalTo('objective_id', $objective_id);
Línea 70... Línea 70...
70
        $paginator->setCurrentPageNumber($page);
70
        $paginator->setCurrentPageNumber($page);
Línea 71... Línea 71...
71
        
71
        
72
        
72
        
73
        return $paginator;
73
        return $paginator;
74
    }
74
    }
75
    public function fetchAll($id_objectives)
75
    public function fetchAll($objective_id)
76
    {
76
    {
77
        $prototype = new PlanningObjectivesAndGoalsGoals();
77
        $prototype = new PlanningObjectivesAndGoalsGoals();
78
        $select = $this->sql->select(self::_TABLE);
78
        $select = $this->sql->select(self::_TABLE);
79
        $select->where->equalTo('id_objectives', $id_objectives)->equalTo('status', 'a');
79
        $select->where->equalTo('objective_id', $objective_id)->equalTo('status', 'a');
80
        $select->where->notEqualTo('status', PlanningObjectivesAndGoalsGoals::STATUS_DELETE);
80
        $select->where->notEqualTo('status', PlanningObjectivesAndGoalsGoals::STATUS_DELETE);
81
        return $this->executeFetchAllObject($select, $prototype);
81
        return $this->executeFetchAllObject($select, $prototype);
82
    }
82
    }