Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 1330 Rev 1337
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')
50
    {
-
 
51
        $prototype = new HighPerformanceTeamsMyGroups();
50
    {
Línea 52... Línea 51...
52
        $select = $this->sql->select(self::_TABLE);
51
        $prototype = new HighPerformanceTeamsMyGroups();
53
        $select->where->equalTo('id_company', $idCompany);
52
        $select = $this->sql->select(self::_TABLE);
Línea 74... Línea 73...
74
    }
73
    }
75
    public function fetchAll($idCompany)
74
    public function fetchAll($idCompany)
76
    {
75
    {
77
        $prototype = new HighPerformanceTeamsMyGroups();
76
        $prototype = new HighPerformanceTeamsMyGroups();
78
        $select = $this->sql->select(self::_TABLE);
77
        $select = $this->sql->select(self::_TABLE);
79
        $select->where->equalTo('id_company', $idCompany)->equalTo('status', 'a');
78
        $select->where->equalTo('status', 'a');
80
        $select->where->notEqualTo('status', HighPerformanceTeamsMyGroups::STATUS_DELETE);
79
        $select->where->notEqualTo('status', HighPerformanceTeamsMyGroups::STATUS_DELETE);
81
        return $this->executeFetchAllObject($select, $prototype);
80
        return $this->executeFetchAllObject($select, $prototype);
82
    }
81
    }
83
    public function insert($datos)
82
    public function insert($datos)
84
    {
83
    {