| Línea 1608... |
Línea 1608... |
| 1608 |
}
|
1608 |
}
|
| Línea 1609... |
Línea 1609... |
| 1609 |
|
1609 |
|
| Línea 1610... |
Línea 1610... |
| 1610 |
$path = $storage->getPathMicrolearningCapsule();
|
1610 |
$path = $storage->getPathMicrolearningCapsule();
|
| - |
|
1611 |
|
| Línea 1611... |
Línea 1612... |
| 1611 |
|
1612 |
$slides = $this->_getSlidesByCapsule($capsule, $storage);
|
| 1612 |
$slides = $this->_getSlidesByCapsule($capsule, $storage);
|
1613 |
$image = $storage->getGenericImage($path, $capsule->uuid, $capsule->image);
|
| 1613 |
|
1614 |
|
| 1614 |
$data = [
|
1615 |
$data = [
|
| 1615 |
'uuid' => $capsule->uuid,
|
1616 |
'uuid' => $capsule->uuid,
|
| 1616 |
'name' => $capsule->name ?? '',
|
1617 |
'name' => $capsule->name ?? '',
|
| 1617 |
'description' => $capsule->description ?? '',
|
1618 |
'description' => $capsule->description ?? '',
|
| 1618 |
'image' => '',
|
1619 |
'image' => $image,
|
| 1619 |
'link_comment_add' => $this->url()->fromRoute('microlearning/capsules-comments/add', ['capsule_id' => $capsule->uuid], ['force_canonical' => true]),
|
1620 |
'link_comment_add' => $this->url()->fromRoute('microlearning/capsules-comments/add', ['capsule_id' => $capsule->uuid], ['force_canonical' => true]),
|
| 1620 |
'total_comments' => strval($dataCountAndRatingAverage['total_comments']),
|
1621 |
'total_comments' => strval($dataCountAndRatingAverage['total_comments']),
|
| Línea 1837... |
Línea 1838... |
| 1837 |
'added_on' => $dtAddedOn->format($serviceDatetimeFormat),
|
1838 |
'added_on' => $dtAddedOn->format($serviceDatetimeFormat),
|
| 1838 |
'updated_on' => $dtUpdatedOn->format($serviceDatetimeFormat),
|
1839 |
'updated_on' => $dtUpdatedOn->format($serviceDatetimeFormat),
|
| 1839 |
]);
|
1840 |
]);
|
| 1840 |
}
|
1841 |
}
|
| Línea -... |
Línea 1842... |
| - |
|
1842 |
|
| 1841 |
|
1843 |
$storage = Storage::getInstance($this->config, $this->adapter);
|
| 1842 |
$dtAddedOn = \DateTime::createFromFormat('Y-m-d H:i:s', $quiz->added_on);
|
1844 |
$dtAddedOn = \DateTime::createFromFormat('Y-m-d H:i:s', $quiz->added_on);
|
| Línea 1843... |
Línea 1845... |
| 1843 |
$dtUpdatedOn = \DateTime::createFromFormat('Y-m-d H:i:s', $quiz->updated_on);
|
1845 |
$dtUpdatedOn = \DateTime::createFromFormat('Y-m-d H:i:s', $quiz->updated_on);
|
| 1844 |
|
1846 |
|
| Línea 1850... |
Línea 1852... |
| 1850 |
'points' => strval($quiz->points),
|
1852 |
'points' => strval($quiz->points),
|
| 1851 |
'minimum_points_required' => strval($quiz->minimum_points_required),
|
1853 |
'minimum_points_required' => strval($quiz->minimum_points_required),
|
| 1852 |
'max_time' => $quiz->max_time ? $quiz->max_time : 5,
|
1854 |
'max_time' => $quiz->max_time ? $quiz->max_time : 5,
|
| 1853 |
'company_uuid' => $company->uuid,
|
1855 |
'company_uuid' => $company->uuid,
|
| 1854 |
'company_name' => $company->name,
|
1856 |
'company_name' => $company->name,
|
| 1855 |
'company_image' => $this->url()->fromRoute('services/storage',['type' => 'company', 'code' => $company->uuid, 'filename' => $company->image], ['force_canonical' => true]),
|
1857 |
'company_image' => $storage->getCompanyImage($company),
|
| 1856 |
'questions' => $record_questions,
|
1858 |
'questions' => $record_questions,
|
| 1857 |
'added_on' => $dtAddedOn->format($serviceDatetimeFormat),
|
1859 |
'added_on' => $dtAddedOn->format($serviceDatetimeFormat),
|
| 1858 |
'updated_on' => $dtUpdatedOn->format($serviceDatetimeFormat),
|
1860 |
'updated_on' => $dtUpdatedOn->format($serviceDatetimeFormat),
|
| 1859 |
]);
|
1861 |
]);
|