Add more data in the export see #2503

pull/2624/head
Julio Montoya 7 years ago
parent cbf49ee5d6
commit afcec41aae
  1. 17
      src/Chamilo/UserBundle/Repository/UserRepository.php

@ -801,6 +801,21 @@ class UserRepository extends EntityRepository
$cForumThreadList[] = implode(', ', $list);
}
// CForumAttachment
/*$criteria = [
'threadPosterId' => $userId,
];
$result = $em->getRepository('ChamiloCourseBundle:CForumAttachment')->findBy($criteria);
$cForumThreadList = [];
* @var CForumThread $item
foreach ($result as $item) {
$list = [
'Title: '.$item->getThreadTitle(),
'Creation date: '.$item->getThreadDate()->format($dateFormat),
];
$cForumThreadList[] = implode(', ', $list);
}*/
// cGroupRelUser
$criteria = [
'userId' => $userId,
@ -874,6 +889,7 @@ class UserRepository extends EntityRepository
'Title: '.$item->getTitle(),
'Sent date: '.$item->getSendDate()->format($dateFormat),
'To user # '.$item->getUserReceiverId(),
'Status'.$item->getMsgStatus(),
];
$messageList[] = implode(', ', $list);
}
@ -919,6 +935,7 @@ class UserRepository extends EntityRepository
foreach ($result as $item) {
$list = [
'File #'.$item->getFileId(),
'Course #'.$item->getCId(),
];
$cDropboxPerson[] = implode(', ', $list);
}

Loading…
Cancel
Save