Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 1842 | Rev 1844 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1842 Rev 1843
Línea 78... Línea 78...
78
    public function fetchAllMyTrainer()
78
    public function fetchAllMyTrainer()
79
    {
79
    {
80
        $prototype = new Topic;
80
        $prototype = new Topic;
Línea 81... Línea 81...
81
        
81
        
82
        $select = $this->sql->select(self::_TABLE);
82
        $select = $this->sql->select(self::_TABLE);
83
        $select->where->equalTo('status', Topic::TYPE_MYT);
83
        $select->where->equalTo('type', Topic::TYPE_MYT);
Línea 84... Línea 84...
84
        $select->order('id');
84
        $select->order('id');
85
        
85
        
Línea 86... Línea 86...
86
        return $this->executeFetchAllObject($select, $prototype);
86
        return $this->executeFetchAllObject($select, $prototype);
87
    }
87
    }
88
 
88
 
Línea 89... Línea 89...
89
    public function fetchAllHighPerfromanceGroup()
89
    public function fetchAllHighPerfromanceGroup($group_id)
90
    {
90
    {
-
 
91
        $prototype = new Topic;
-
 
92
        
91
        $prototype = new Topic;
93
        $select = $this->sql->select(self::_TABLE);
Línea 92... Línea 94...
92
        
94
        $select->where->equalTo('type', Topic::TYPE_HPTG);
93
        $select = $this->sql->select(self::_TABLE);
95
        $select->where->equalTo('group_id', $group_id);
Línea 94... Línea 96...
94
        $select->where->equalTo('status', Topic::TYPE_HPTG);
96
        $select->where->notEqualTo('status', Topic::STATUS_DELETE);
95
        $select->order('id');
97
        $select->order('id');
96
        
98
        
Línea 97... Línea 99...
97
        return $this->executeFetchAllObject($select, $prototype);
99
        return $this->executeFetchAllObject($select, $prototype);
98
    }
100
    }
-
 
101
 
-
 
102
    public function fetchAllHighPerfromanceForo($group_id)
99
 
103
    {
Línea 100... Línea 104...
100
    public function fetchAllHighPerfromanceForo()
104
        $prototype = new Topic;
101
    {
105