Proyectos de Subversion LeadersLinked - Services

Rev

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

Rev 618 Rev 620
Línea 178... Línea 178...
178
        $select->where->equalTo('topic_id', $topic_id);
178
        $select->where->equalTo('topic_id', $topic_id);
179
        $select->order('added_on DESC');
179
        $select->order('added_on DESC');
Línea 180... Línea 180...
180
        
180
        
181
        return $this->executeFetchAllObject($select, $prototype);
181
        return $this->executeFetchAllObject($select, $prototype);
-
 
182
    }
-
 
183
 
-
 
184
    /**
-
 
185
     *
-
 
186
     * @param int $company_id
-
 
187
     * @param int $topic_id
-
 
188
     * @return MicrolearningTopicCapsule[]
-
 
189
     */
-
 
190
    public function fetchAllByCompanyIdAndTopicId($company_id, $topic_id)
-
 
191
    {
-
 
192
        $prototype = new MicrolearningTopicCapsule();
-
 
193
        
-
 
194
        $select = $this->sql->select(self::_TABLE);
-
 
195
        $select->where->equalTo('company_id', $company_id);
-
 
196
        $select->where->equalTo('topic_id', $topic_id);
-
 
197
        $select->order('added_on DESC');
-
 
198
        
-
 
199
        return $this->executeFetchAllObject($select, $prototype);
Línea 182... Línea 200...
182
    }
200
    }
183
    
201
    
184
    /**
202
    /**
185
     *
203
     *