Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 1905 Rev 1907
Línea 137... Línea 137...
137
        $paginator->setCurrentPageNumber($page);
137
        $paginator->setCurrentPageNumber($page);
Línea 138... Línea 138...
138
        
138
        
139
        
139
        
140
        return $paginator;
140
        return $paginator;
141
    }
141
    }
142
    public function fetchFiveForoJoinTopic($topic_id,$topic_type)
142
    public function fetchFiveForoJoinTopic($group_id,$topic_type)
143
    {
143
    {
144
        $prototype = new Feed();
144
        $prototype = new Feed();
145
        $select->from(['t' => TopicMapper::_TABLE]);
145
        $select->from(['t' => TopicMapper::_TABLE]);
146
        $select->join(['f' => self::_TABLE], 'f.topic_id = t.id', []);
146
        $select->join(['f' => self::_TABLE], 'f.topic_id = t.id', []);
147
        $select->where->equalTo('f.topic_id', $topic_id);
147
        $select->where->equalTo('f.group_id', $group_id);
148
        $select->where->equalTo('f.status', Feed::STATUS_PUBLISHED);
148
        $select->where->equalTo('f.status', Feed::STATUS_PUBLISHED);
Línea 149... Línea 149...
149
        $select->where->equalTo('t.type', $topic_type);
149
        $select->where->equalTo('t.type', $topic_type);