Proyectos de Subversion LeadersLinked - Services

Rev

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

Rev 558 Rev 603
Línea 117... Línea 117...
117
        $prototype = new MicrolearningCapsule();
117
        $prototype = new MicrolearningCapsule();
Línea 118... Línea 118...
118
        
118
        
119
        $select = $this->sql->select(self::_TABLE);
119
        $select = $this->sql->select(self::_TABLE);
120
        $select->where->equalTo('company_id', $company_id);
120
        $select->where->equalTo('company_id', $company_id);
121
        $select->where->equalTo('status', MicrolearningCapsule::STATUS_ACTIVE);
121
        $select->where->equalTo('status', MicrolearningCapsule::STATUS_ACTIVE);
Línea 122... Línea 122...
122
        $select->order(['order', 'name']);
122
        $select->order(['name']);
123
        
123
        
Línea 124... Línea 124...
124
        return $this->executeFetchAllObject($select, $prototype);
124
        return $this->executeFetchAllObject($select, $prototype);
Línea 212... Línea 212...
212
    public function fetchAllActive()
212
    public function fetchAllActive()
213
    {
213
    {
214
        $prototype = new MicrolearningCapsule();
214
        $prototype = new MicrolearningCapsule();
Línea 215... Línea 215...
215
        
215
        
216
        $select = $this->sql->select(self::_TABLE);
-
 
217
        
216
        $select = $this->sql->select(self::_TABLE);
218
        $select->where->equalTo('status', MicrolearningCapsule::STATUS_ACTIVE);
-
 
219
        
217
        $select->where->equalTo('status', MicrolearningCapsule::STATUS_ACTIVE);
Línea 220... Línea 218...
220
        $select->order(['order', 'name']);
218
        $select->order(['name']);
221
        
219
        
Línea 231... Línea 229...
231
    public function fetchAll()
229
    public function fetchAll()
232
    {
230
    {
233
        $prototype = new MicrolearningCapsule();
231
        $prototype = new MicrolearningCapsule();
Línea 234... Línea 232...
234
        
232
        
235
        $select = $this->sql->select(self::_TABLE);
233
        $select = $this->sql->select(self::_TABLE);
Línea 236... Línea 234...
236
        $select->order(['order', 'name']);
234
        $select->order(['name']);
237
        
235