Línea 1843... |
Línea 1843... |
1843 |
if(!$userProgressTopic) {
|
1843 |
if(!$userProgressTopic) {
|
Línea 1844... |
Línea 1844... |
1844 |
|
1844 |
|
1845 |
$userProgressTopic = new CompanyMicrolearningUserProgress();
|
1845 |
$userProgressTopic = new CompanyMicrolearningUserProgress();
|
1846 |
$userProgressTopic->company_id = $slide->company_id;
|
1846 |
$userProgressTopic->company_id = $slide->company_id;
|
- |
|
1847 |
$userProgressTopic->topic_id = $slide->topic_id;
|
1847 |
$userProgressTopic->topic_id = $slide->topic_id;
|
1848 |
$userProgressTopic->user_id = $currentUser->id;
|
1848 |
$userProgressTopic->progress = 0;
|
1849 |
$userProgressTopic->progress = 0;
|
1849 |
$userProgressTopic->returning = 0;
|
1850 |
$userProgressTopic->returning = 0;
|
1850 |
$userProgressTopic->returning_after_completed = 0;
|
1851 |
$userProgressTopic->returning_after_completed = 0;
|
1851 |
$userProgressTopic->completed = 0;
|
1852 |
$userProgressTopic->completed = 0;
|
Línea 1884... |
Línea 1885... |
1884 |
|
1885 |
|
1885 |
$userProgressCapsule = new CompanyMicrolearningUserProgress();
|
1886 |
$userProgressCapsule = new CompanyMicrolearningUserProgress();
|
1886 |
$userProgressCapsule->company_id = $slide->company_id;
|
1887 |
$userProgressCapsule->company_id = $slide->company_id;
|
1887 |
$userProgressCapsule->topic_id = $slide->topic_id;
|
1888 |
$userProgressCapsule->topic_id = $slide->topic_id;
|
- |
|
1889 |
$userProgressCapsule->capsule_id = $slide->capsule_id;
|
1888 |
$userProgressCapsule->capsule_id = $slide->capsule_id;
|
1890 |
$userProgressCapsule->user_id = $currentUser->id;
|
1889 |
$userProgressCapsule->progress = 0;
|
1891 |
$userProgressCapsule->progress = 0;
|
1890 |
$userProgressCapsule->returning = 0;
|
1892 |
$userProgressCapsule->returning = 0;
|
1891 |
$userProgressCapsule->returning_after_completed = 0;
|
1893 |
$userProgressCapsule->returning_after_completed = 0;
|
1892 |
$userProgressCapsule->completed = 0;
|
1894 |
$userProgressCapsule->completed = 0;
|
Línea 1926... |
Línea 1928... |
1926 |
$userProgressSlide = new CompanyMicrolearningUserProgress();
|
1928 |
$userProgressSlide = new CompanyMicrolearningUserProgress();
|
1927 |
$userProgressSlide->company_id = $slide->company_id;
|
1929 |
$userProgressSlide->company_id = $slide->company_id;
|
1928 |
$userProgressSlide->topic_id = $slide->topic_id;
|
1930 |
$userProgressSlide->topic_id = $slide->topic_id;
|
1929 |
$userProgressSlide->capsule_id = $slide->capsule_id;
|
1931 |
$userProgressSlide->capsule_id = $slide->capsule_id;
|
1930 |
$userProgressSlide->slide_id = $slide->id;
|
1932 |
$userProgressSlide->slide_id = $slide->id;
|
- |
|
1933 |
$userProgressSlide->user_id = $currentUser->id;
|
1931 |
$userProgressSlide->progress = 0;
|
1934 |
$userProgressSlide->progress = 0;
|
1932 |
$userProgressSlide->returning = 0;
|
1935 |
$userProgressSlide->returning = 0;
|
1933 |
$userProgressSlide->returning_after_completed = 0;
|
1936 |
$userProgressSlide->returning_after_completed = 0;
|
1934 |
$userProgressSlide->completed = 1;
|
1937 |
$userProgressSlide->completed = 1;
|
1935 |
$userProgressSlide->total_slides = 0;
|
1938 |
$userProgressSlide->total_slides = 0;
|