| Línea 60... |
Línea 60... |
| 60 |
use LeadersLinked\Mapper\SyncLogMapper;
|
60 |
use LeadersLinked\Mapper\SyncLogMapper;
|
| 61 |
use LeadersLinked\Model\SyncLog;
|
61 |
use LeadersLinked\Model\SyncLog;
|
| 62 |
use LeadersLinked\Model\CompanyMicrolearningExtendUser;
|
62 |
use LeadersLinked\Model\CompanyMicrolearningExtendUser;
|
| 63 |
use LeadersLinked\Mapper\CompanyMicrolearningExtendUserMapper;
|
63 |
use LeadersLinked\Mapper\CompanyMicrolearningExtendUserMapper;
|
| 64 |
use LeadersLinked\Model\CompanyMicrolearningExtendUserCompany;
|
64 |
use LeadersLinked\Model\CompanyMicrolearningExtendUserCompany;
|
| - |
|
65 |
use LeadersLinked\Mapper\CompanyMicrolearningCapsuleCommentMapper;
|
| 65 |
use LeadersLinked\Mapper\CompanyMicrolearningExtendUserCompanyMapper;
|
66 |
use LeadersLinked\Mapper\CompanyMicrolearningExtendUserCompanyMapper;
|
| 66 |
use LeadersLinked\Mapper\CompanyMicrolearningExtendUserFunctionMapper;
|
67 |
use LeadersLinked\Mapper\CompanyMicrolearningExtendUserFunctionMapper;
|
| 67 |
use LeadersLinked\Mapper\CompanyMicrolearningExtendUserGroupMapper;
|
68 |
use LeadersLinked\Mapper\CompanyMicrolearningExtendUserGroupMapper;
|
| 68 |
use LeadersLinked\Mapper\CompanyMicrolearningExtendUserInstitutionMapper;
|
69 |
use LeadersLinked\Mapper\CompanyMicrolearningExtendUserInstitutionMapper;
|
| 69 |
use LeadersLinked\Mapper\CompanyMicrolearningExtendUserPartnerMapper;
|
70 |
use LeadersLinked\Mapper\CompanyMicrolearningExtendUserPartnerMapper;
|
| Línea 3228... |
Línea 3229... |
| 3228 |
$capsules_with_access = [];
|
3229 |
$capsules_with_access = [];
|
| 3229 |
$quizzes_with_access = [];
|
3230 |
$quizzes_with_access = [];
|
| 3230 |
$quizzes = [];
|
3231 |
$quizzes = [];
|
| Línea -... |
Línea 3232... |
| - |
|
3232 |
|
| 3231 |
|
3233 |
|
| 3232 |
|
3234 |
$capsuleCommentMapper = CompanyMicrolearningCapsuleCommentMapper::getInstance($this->adapter);
|
| Línea 3233... |
Línea 3235... |
| 3233 |
$capsuleUserMapper = CompanyMicrolearningCapsuleUserMapper::getInstance($this->adapter);
|
3235 |
$capsuleUserMapper = CompanyMicrolearningCapsuleUserMapper::getInstance($this->adapter);
|
| Línea 3344... |
Línea 3346... |
| 3344 |
}
|
3346 |
}
|
| Línea 3345... |
Línea 3347... |
| 3345 |
|
3347 |
|
| 3346 |
$dtAddedOn = \DateTime::createFromFormat('Y-m-d H:i:s', $capsule->added_on);
|
3348 |
$dtAddedOn = \DateTime::createFromFormat('Y-m-d H:i:s', $capsule->added_on);
|
| Línea -... |
Línea 3349... |
| - |
|
3349 |
$dtUpdatedOn = \DateTime::createFromFormat('Y-m-d H:i:s', $capsule->updated_on);
|
| - |
|
3350 |
|
| - |
|
3351 |
$dataCountrAndRatingAverage = $capsuleCommentMapper->fetchCountAndRatingAverage($capsule->company_id, $capsule->topic_id, $capsule->id);
|
| - |
|
3352 |
|
| 3347 |
$dtUpdatedOn = \DateTime::createFromFormat('Y-m-d H:i:s', $capsule->updated_on);
|
3353 |
|
| 3348 |
|
3354 |
|
| 3349 |
array_push($record_capsules, [
|
3355 |
array_push($record_capsules, [
|
| 3350 |
'uuid' => $capsule->uuid,
|
3356 |
'uuid' => $capsule->uuid,
|
| 3351 |
'name' => $capsule->name ? $capsule->name : '',
|
3357 |
'name' => $capsule->name ? $capsule->name : '',
|
| 3352 |
'description' => $capsule->description ? $capsule->description : '',
|
3358 |
'description' => $capsule->description ? $capsule->description : '',
|
| 3353 |
'image' => $capsule->image ? $this->url()->fromRoute('services/storage',['type' => 'microlearning-capsule', 'code' => $capsule->uuid, 'filename' => $capsule->image ], ['force_canonical' => true]) : '',
|
3359 |
'image' => $capsule->image ? $this->url()->fromRoute('services/storage',['type' => 'microlearning-capsule', 'code' => $capsule->uuid, 'filename' => $capsule->image ], ['force_canonical' => true]) : '',
|
| - |
|
3360 |
'position' => $capsule->order,
|
| - |
|
3361 |
'slides' => $record_slides,
|
| - |
|
3362 |
'link_comments' => $this->url()->fromRoute('services/microlearning/capsules/comments', ['capsule_id' => $capsule->uuid]),
|
| - |
|
3363 |
'link_comment_add' => $this->url()->fromRoute('services/microlearning/capsules/comments/add', ['capsule_id' => $capsule->uuid]),
|
| 3354 |
'position' => $capsule->order,
|
3364 |
'total_comments' => $dataCountrAndRatingAverage['total_comments'],
|
| 3355 |
'slides' => $record_slides,
|
3365 |
'total_rating' => $dataCountrAndRatingAverage['total_rating'],
|
| 3356 |
'added_on' => $dtAddedOn->format($serviceDatetimeFormat),
|
3366 |
'added_on' => $dtAddedOn->format($serviceDatetimeFormat),
|
| 3357 |
'updated_on' => $dtUpdatedOn->format($serviceDatetimeFormat),
|
3367 |
'updated_on' => $dtUpdatedOn->format($serviceDatetimeFormat),
|