Proyectos de Subversion LeadersLinked - Services

Rev

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

Rev 632 Rev 649
Línea 226... Línea 226...
226
        $select->where->equalTo('status', MicrolearningTopicCapsule::STATUS_ACTIVE);
226
        $select->where->equalTo('status', MicrolearningTopicCapsule::STATUS_ACTIVE);
227
        $select->order('added_on DESC');
227
        $select->order('added_on DESC');
Línea 228... Línea 228...
228
        
228
        
229
        return $this->executeFetchAllObject($select, $prototype);
229
        return $this->executeFetchAllObject($select, $prototype);
-
 
230
    }
-
 
231
 
-
 
232
    /**
-
 
233
     *
-
 
234
     * @param  int $capsule_id
-
 
235
     * @return MicrolearningTopicCapsule[]
-
 
236
     */
-
 
237
    public function fetchAllByCapsuleId($capsule_id){
-
 
238
        $prototype = new MicrolearningTopicCapsule();
-
 
239
        
-
 
240
        $select = $this->sql->select(self::_TABLE);
-
 
241
        $select->where->equalTo('capsule_id', $capsule_id);
-
 
242
        $select->order('added_on DESC');
-
 
243
        
-
 
244
        return $this->executeFetchAllObject($select, $prototype);
Línea 230... Línea 245...
230
    }
245
    }
231
    
246
    
232
    /**
247
    /**
233
     *
248
     *