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', $idCompany)
49
    public function fetchAllDataTable($search, $page = 1, $records_per_page = 10, $order_field= 'title', $order_direction = 'ASC', $company_id)
50
    {
50
    {
51
        $prototype = new PlanningObjectivesAndGoalsObjectives();
51
        $prototype = new PlanningObjectivesAndGoalsObjectives();
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_company', $idCompany);
53
        $select->where->equalTo('company_id', $company_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($idCompany)
75
    public function fetchAll($company_id)
76
    {
76
    {
77
        $prototype = new PlanningObjectivesAndGoalsObjectives();
77
        $prototype = new PlanningObjectivesAndGoalsObjectives();
78
        $select = $this->sql->select(self::_TABLE);
78
        $select = $this->sql->select(self::_TABLE);
79
        $select->where->equalTo('id_company', $idCompany)->equalTo('status', 'a');
79
        $select->where->equalTo('company_id', $company_id)->equalTo('status', 'a');
80
        $select->where->notEqualTo('status', PlanningObjectivesAndGoalsObjectives::STATUS_DELETE);
80
        $select->where->notEqualTo('status', PlanningObjectivesAndGoalsObjectives::STATUS_DELETE);
81
        return $this->executeFetchAllObject($select, $prototype);
81
        return $this->executeFetchAllObject($select, $prototype);
82
    }
82
    }