Proyectos de Subversion LeadersLinked - Services

Rev

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

Rev 590 Rev 626
Línea 488... Línea 488...
488
        
488
        
Línea 489... Línea 489...
489
        //echo $update->getSqlString($this->adapter->platform) . PHP_EOL;
489
        //echo $update->getSqlString($this->adapter->platform) . PHP_EOL;
490
        
490
        
-
 
491
        return $this->executeUpdate($update);
-
 
492
    }
-
 
493
 
-
 
494
    /**
-
 
495
     * Delete all user progress by topic id
-
 
496
     * @param int $topic_id
-
 
497
     * @return int
-
 
498
     */
-
 
499
    public function deleteAllTopicProgressByTopicId($topic_id)
-
 
500
    {
-
 
501
        $delete = $this->sql->delete(self::_TABLE);
-
 
502
        $delete->where->equalTo('topic_id', $topic_id);
-
 
503
        $delete->where->equalTo('type', MicrolearningUserProgress::TYPE_TOPIC);
Línea 491... Línea 504...
491
        return $this->executeUpdate($update);
504
        return $this->executeDelete($delete);
492
    }
505
    }
493
    
506