Proyectos de Subversion LeadersLinked - Services

Rev

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

Rev 626 Rev 632
Línea 501... Línea 501...
501
        $delete = $this->sql->delete(self::_TABLE);
501
        $delete = $this->sql->delete(self::_TABLE);
502
        $delete->where->equalTo('topic_id', $topic_id);
502
        $delete->where->equalTo('topic_id', $topic_id);
503
        $delete->where->equalTo('type', MicrolearningUserProgress::TYPE_TOPIC);
503
        $delete->where->equalTo('type', MicrolearningUserProgress::TYPE_TOPIC);
504
        return $this->executeDelete($delete);
504
        return $this->executeDelete($delete);
505
    }
505
    }
-
 
506
 
-
 
507
    /**
-
 
508
     * Deletes all user progress by capsule id
-
 
509
     * @param int $capsule_id
-
 
510
     * @return int
-
 
511
     */
-
 
512
    public function deleteAllByCapsuleId($capsule_id)
-
 
513
    {
-
 
514
        $delete = $this->sql->delete(self::_TABLE);
-
 
515
        $delete->where->equalTo('capsule_id', $capsule_id);
-
 
516
        $delete->where->equalTo('type', MicrolearningUserProgress::TYPE_SLIDE);
-
 
517
        $delete->where->equalTo('type', MicrolearningUserProgress::TYPE_CAPSULE);
-
 
518
        return $this->executeDelete($delete);
-
 
519
    }
Línea 506... Línea 520...
506
    
520
    
507
    
521
    
508
    /**
522
    /**