Merge branch '1.10.x' of github.com:chamilo/chamilo-lms into 1.10.x

1.10.x
Yannick Warnier 10 years ago
commit f0080bb220
  1. 2
      README.md
  2. 2
      documentation/optimization.html
  3. 14
      main/coursecopy/classes/Announcement.class.php
  4. 9
      main/coursecopy/classes/CourseDescription.class.php
  5. 3
      main/coursecopy/classes/CourseSelectForm.class.php
  6. 3
      main/coursecopy/classes/CourseSession.class.php
  7. 3
      main/coursecopy/classes/DummyCourseCreator.class.php
  8. 2
      main/coursecopy/classes/Event.class.php
  9. 5
      main/coursecopy/classes/Forum.class.php
  10. 2
      main/coursecopy/classes/ForumCategory.class.php
  11. 4
      main/coursecopy/classes/ForumTopic.class.php
  12. 3
      main/coursecopy/classes/Link.class.php
  13. 4
      main/coursecopy/classes/LinkCategory.class.php
  14. 4
      main/coursecopy/classes/Quiz.class.php
  15. 27
      main/coursecopy/classes/Resource.class.php
  16. 8
      main/coursecopy/classes/Survey.class.php
  17. 4
      main/coursecopy/classes/SurveyInvitation.class.php
  18. 9
      main/coursecopy/classes/SurveyQuestion.class.php
  19. 2
      main/coursecopy/classes/Thematic.class.php
  20. 2
      main/coursecopy/classes/ToolIntro.class.php
  21. 2
      main/coursecopy/classes/Work.class.php
  22. 8
      main/inc/ajax/lp.ajax.php
  23. 16
      main/inc/lib/pear/PEAR.php
  24. 24
      main/inc/lib/usermanager.lib.php
  25. 26
      main/newscorm/lp_nav.php
  26. 4
      main/newscorm/scorm_api.php
  27. 2
      main/template/default/learnpath/view.tpl
  28. 10
      plugin/bbb/lib/bbb.lib.php
  29. 1
      src/Chamilo/CoreBundle/Entity/SysCalendar.php
  30. 1
      src/Chamilo/CoreBundle/Entity/SystemTemplate.php
  31. 21
      src/Chamilo/CoreBundle/Entity/Tag.php
  32. 1
      src/Chamilo/CoreBundle/Entity/Templates.php
  33. 1
      src/Chamilo/CoreBundle/Entity/TrackCourseRanking.php
  34. 1
      src/Chamilo/CoreBundle/Entity/TrackEAccess.php
  35. 1
      src/Chamilo/CoreBundle/Entity/TrackEAttempt.php
  36. 1
      src/Chamilo/CoreBundle/Entity/TrackEAttemptCoeff.php
  37. 21
      src/Chamilo/CoreBundle/Entity/TrackEAttemptRecording.php
  38. 21
      src/Chamilo/CoreBundle/Entity/TrackECourseAccess.php
  39. 1
      src/Chamilo/CoreBundle/Entity/TrackEDownloads.php
  40. 1
      src/Chamilo/CoreBundle/Entity/TrackEExercises.php
  41. 1
      src/Chamilo/CoreBundle/Entity/TrackEHotpotatoes.php
  42. 1
      src/Chamilo/CoreBundle/Entity/TrackEHotspot.php
  43. 1
      src/Chamilo/CoreBundle/Entity/TrackEItemProperty.php
  44. 1
      src/Chamilo/CoreBundle/Entity/TrackELastaccess.php
  45. 1
      src/Chamilo/CoreBundle/Entity/TrackELinks.php
  46. 1
      src/Chamilo/CoreBundle/Entity/TrackELogin.php
  47. 1
      src/Chamilo/CoreBundle/Entity/TrackEOnline.php
  48. 1
      src/Chamilo/CoreBundle/Entity/TrackEOpen.php
  49. 1
      src/Chamilo/CoreBundle/Entity/TrackEUploads.php
  50. 1
      src/Chamilo/CoreBundle/Entity/TrackStoredValues.php
  51. 21
      src/Chamilo/CoreBundle/Entity/TrackStoredValuesStack.php
  52. 21
      src/Chamilo/CoreBundle/Entity/UserApiKey.php
  53. 21
      src/Chamilo/CoreBundle/Entity/UserCourseCategory.php
  54. 1
      src/Chamilo/CoreBundle/Entity/UserFriendRelationType.php
  55. 1
      src/Chamilo/CoreBundle/Entity/UserGroupRelUserGroup.php
  56. 1
      src/Chamilo/CoreBundle/Entity/UserRelCourseVote.php
  57. 21
      src/Chamilo/CoreBundle/Entity/UserRelEventType.php
  58. 21
      src/Chamilo/CoreBundle/Entity/UserRelUser.php
  59. 2
      src/Chamilo/CoreBundle/Entity/Usergroup.php
  60. 19
      src/Chamilo/CoreBundle/Entity/UsergroupRelCourse.php
  61. 21
      src/Chamilo/CoreBundle/Entity/UsergroupRelQuestion.php
  62. 19
      src/Chamilo/CoreBundle/Entity/UsergroupRelSession.php
  63. 8
      src/Chamilo/CoreBundle/Entity/UsergroupRelUser.php

@ -168,7 +168,7 @@ php bin/doctrine.php migrations:execute 20150527120703 --up --configuration=app/
You can also print the differences between your database and what it should be by issuing the following command from the Chamilo base folder:
```
php bin/doctrine.php orm:schema:update --dump-sql
php bin/doctrine.php orm:schema-tool:update --dump-sql
```
## Contributing

@ -342,7 +342,7 @@ ALTER TABLE user_rel_tag ADD INDEX idx_user_rel_tag_user (user_id);
In Chamilo 1.10.0 (the first version of the serie), many indexes were forgotten, so you can boost your database by adding the following indexes:<br />
<pre>
alter table extra_field_values add index idx_extra_field_values (field_id, item_id);
alter table usergroup_rel_user add index idx_usergroup_ru (group_id);
alter table usergroup_rel_user add index idx_usergroup_ru (usergroup_id);
alter table usergroup_rel_user add index idx_usergroup_ru_u (user_id);
alter table c_student_publication add index idxstudpub_cid (c_id);
alter table c_student_publication add index idxstudpub_uid (user_id);

@ -47,8 +47,18 @@ class Announcement extends Coursecopy\Resource
* @param string $date
* @param int display_order
*/
function __construct($id, $title, $content, $date, $display_order, $email_sent, $path, $filename, $size, $comment)
{
public function __construct(
$id,
$title,
$content,
$date,
$display_order,
$email_sent,
$path,
$filename,
$size,
$comment
) {
parent::__construct($id,RESOURCE_ANNOUNCEMENT);
$this->content = $content;

@ -1,6 +1,7 @@
<?php
/* For licensing terms, see /license.txt */
namespace Coursecopy;
require_once 'Resource.class.php';
/**
@ -14,10 +15,12 @@ class CourseDescription extends Resource
* The title
*/
public $title;
/**
* The content
*/
public $content;
/**
* The description type
*/
@ -29,9 +32,9 @@ class CourseDescription extends Resource
* @param string $title
* @param string $content
*/
public function __construct($id,$title,$content,$description_type)
public function __construct($id, $title, $content, $description_type)
{
parent::__construct($id,RESOURCE_COURSEDESCRIPTION);
parent::__construct($id, RESOURCE_COURSEDESCRIPTION);
$this->title = $title;
$this->content = $content;
$this->description_type = $description_type;
@ -40,7 +43,7 @@ class CourseDescription extends Resource
/**
* Show this Event
*/
function show()
public function show()
{
parent::show();
echo $this->title;

@ -16,7 +16,7 @@ class CourseSelectForm
* @param array $hidden_fields Hidden fields to add to the form.
* @param boolean the document array will be serialize. This is used in the course_copy.php file
*/
static function display_form($course, $hidden_fields = null, $avoid_serialize = false)
public static function display_form($course, $hidden_fields = null, $avoid_serialize = false)
{
global $charset;
$resource_titles[RESOURCE_GRADEBOOK] = get_lang('Gradebook');
@ -224,7 +224,6 @@ class CourseSelectForm
foreach ($resources as $id => $resource) {
if ($resource) {
// Event obj in 1.9.x in 1.10.x the class is CalendarEvent
Coursecopy\Resource::setClassType($resource);
echo '<label class="checkbox">';
echo '<input type="checkbox" name="resource['.$type.']['.$id.']" id="resource['.$type.']['.$id.']" />';

@ -27,7 +27,8 @@ class CourseSession extends Coursecopy\Resource
/**
* Show this Event
*/
function show() {
public function show()
{
parent::show();
echo $this->title;
}

@ -60,10 +60,11 @@ class DummyCourseCreator
$cr->restore($course_code);
rmdirr($tmp_path);
}
/**
* Create dummy documents
*/
function create_dummy_documents()
public function create_dummy_documents()
{
$course = api_get_course_info();
$course_doc_path = $this->course->backup_path.'/document/';

@ -80,7 +80,7 @@ class CalendarEvent extends Coursecopy\Resource
/**
* Show this Event
*/
function show()
public function show()
{
parent::show();
echo $this->title.' ('.$this->start_date.' -> '.$this->end_date.')';

@ -103,7 +103,7 @@ class Forum extends Coursecopy\Resource
/**
* Create a new Forum
*/
function __construct($obj)
public function __construct($obj)
{
parent::__construct($obj->forum_id, RESOURCE_FORUM);
$this->obj = $obj;
@ -112,7 +112,8 @@ class Forum extends Coursecopy\Resource
/**
* Show this resource
*/
function show() {
public function show()
{
parent::show();
echo $this->obj->forum_title;
}

@ -22,7 +22,7 @@ class ForumCategory extends Coursecopy\Resource
/**
* Show this resource
*/
function show()
public function show()
{
parent::show();
echo $this->obj->cat_title;

@ -15,7 +15,7 @@ class ForumTopic extends Coursecopy\Resource
*/
/* function ForumTopic($id, $title, $time, $topic_poster_id, $topic_poster_name, $forum_id, $last_post, $replies, $views = 0, $sticky = 0, $locked = 0,
$time_closed = null, $weight = 0, $title_qualify = null, $qualify_max = 0) */
function __construct($obj)
public function __construct($obj)
{
parent::__construct($obj->thread_id, RESOURCE_FORUMTOPIC);
$this->obj = $obj;
@ -39,7 +39,7 @@ class ForumTopic extends Coursecopy\Resource
/**
* Show this resource
*/
function show()
public function show()
{
parent::show();
$extra = api_convert_and_format_date($this->obj->thread_date);

@ -45,8 +45,7 @@ class Link extends Coursecopy\Resource
$description,
$category_id,
$on_homepage
)
{
) {
parent::__construct($id,RESOURCE_LINK);
$this->title = $title;
$this->url = $url;

@ -29,7 +29,7 @@ class LinkCategory extends Coursecopy\Resource
* @param string $title
* @param string $description
*/
function __construct($id,$title,$description,$display_order)
public function __construct($id,$title,$description,$display_order)
{
parent::__construct($id,RESOURCE_LINKCATEGORY);
$this->title = $title;
@ -40,7 +40,7 @@ class LinkCategory extends Coursecopy\Resource
/**
* Show this LinkCategory
*/
function show()
public function show()
{
parent::show();
echo $this->title.' '.$this->description.'<br />';

@ -21,6 +21,10 @@ class Quiz extends Coursecopy\Resource
*/
public $obj; //question
/**
* Quiz constructor.
* @param int $obj
*/
public function __construct($obj)
{
$this->obj = $obj;

@ -240,9 +240,11 @@ class Resource
*/
public static function setClassType(&$resource)
{
if (get_class($resource) == 'Event') {
/** @var $resource CalendarEvent */
$newResource = new CalendarEvent(
$class = get_class($resource);
switch ($class) {
case 'Event':
/** @var $resource \CalendarEvent */
$newResource = new \CalendarEvent(
$resource->source_id,
$resource->title,
$resource->content,
@ -255,6 +257,25 @@ class Resource
$resource->all_day
);
$resource = $newResource;
break;
case 'CourseDescription':
if (!method_exists($resource, 'show')) {
$resource = (array) $resource;
$newResource = new CourseDescription(
isset($resource['id']) ? $resource['id'] : '',
$resource['title'],
$resource['content'],
$resource['description_type']
);
$newResource->source_id = $resource['source_id'];
$newResource->destination_id = $resource['source_id'];
$newResource->linked_resources = $resource['source_id'];
$newResource->item_properties = $resource['source_id'];
$newResource->obj = $resource['obj'];
$resource = $newResource;
}
break;
}
}
}

@ -109,7 +109,7 @@ class Survey extends Coursecopy\Resource
$invite_mail,
$reminder_mail
) {
parent::__construct($id,RESOURCE_SURVEY);
parent::__construct($id, RESOURCE_SURVEY);
$this->code = $code;
$this->title = $title;
$this->subtitle = $subtitle;
@ -133,7 +133,7 @@ class Survey extends Coursecopy\Resource
/**
* Add a question to this survey
*/
function add_question($id)
public function add_question($id)
{
$this->question_ids[] = $id;
}
@ -141,7 +141,7 @@ class Survey extends Coursecopy\Resource
/**
* Add an invitation to this survey
*/
function add_invitation($id)
public function add_invitation($id)
{
$this->invitation_ids[] = $id;
}
@ -149,7 +149,7 @@ class Survey extends Coursecopy\Resource
/**
* Show this survey
*/
function show()
public function show()
{
parent::show();
echo $this->code.' - '.$this->title;

@ -40,7 +40,7 @@ class SurveyInvitation extends Coursecopy\Resource
* @param string $invitation_date
* @param string $reminder_date
*/
public function __construct($id,$code,$user,$invitation_code,$invitation_date,$reminder_date)
public function __construct($id, $code, $user, $invitation_code, $invitation_date, $reminder_date)
{
parent::__construct($id, RESOURCE_SURVEYINVITATION);
$this->code = $code;
@ -53,7 +53,7 @@ class SurveyInvitation extends Coursecopy\Resource
/**
* Show this invitation
*/
function show()
public function show()
{
parent::show();
echo $this->invitation_code;

@ -57,7 +57,7 @@ class SurveyQuestion extends Coursecopy\Resource
* @param int $shared_question_id
* @param int $max_value
*/
function __construct(
public function __construct(
$id,
$survey_id,
$survey_question,
@ -68,7 +68,7 @@ class SurveyQuestion extends Coursecopy\Resource
$shared_question_id,
$max_value
) {
parent::__construct($id,RESOURCE_SURVEYQUESTION);
parent::__construct($id, RESOURCE_SURVEYQUESTION);
$this->survey_id = $survey_id;
$this->survey_question = $survey_question;
$this->survey_question_comment = $survey_question_comment;
@ -79,12 +79,13 @@ class SurveyQuestion extends Coursecopy\Resource
$this->max_value = $max_value;
$this->answers = array();
}
/**
* Add an answer option to this SurveyQuestion
* @param string $option_text
* @param int $sort
*/
function add_answer($option_text,$sort)
public function add_answer($option_text,$sort)
{
$answer = array();
$answer['option_text'] = $option_text;
@ -94,7 +95,7 @@ class SurveyQuestion extends Coursecopy\Resource
/**
* Show this question
*/
function show()
public function show()
{
parent::show();
echo $this->survey_question;

@ -16,7 +16,7 @@ class Thematic extends Coursecopy\Resource
/**
* Create a new Thematic
*
* @param array parameters
* @param array $params
*/
public function __construct($params)
{

@ -32,7 +32,7 @@ class ToolIntro extends Coursecopy\Resource
/**
* Show this resource
*/
function show()
public function show()
{
parent::show();
switch ($this->id)

@ -15,7 +15,7 @@ class Work extends Coursecopy\Resource
/**
* Create a new Work
*
* @param array parameters
* @param array $params
*/
public function __construct($params)
{

@ -65,7 +65,6 @@ switch ($action) {
if (api_is_allowed_to_edit(null, true)) {
$new_order = $_POST['new_order'];
$sections = explode('^', $new_order);
$new_array = array();
@ -189,12 +188,7 @@ switch ($action) {
break;
}
$learningPath = new learnpath(
api_get_course_id(),
$lpId,
api_get_user_id()
);
$learningPath = learnpath::getLpFromSession(api_get_course_id(), $lpId, api_get_user_id());
$lpItem = $learningPath->getItem($lpItemId);
if (empty($lpItem)) {

@ -19,10 +19,6 @@
* @since File available since Release 0.1
*/
// Added by Chamilo team, 16-MAR-2010
if (class_exists('pear')) { return; }
//
/**#@+
* ERROR constants
*/
@ -156,7 +152,7 @@ class PEAR
* @access public
* @return void
*/
function PEAR($error_class = null)
public function __construct($error_class = null)
{
$classname = strtolower(get_class($this));
if ($this->_debug) {
@ -867,9 +863,13 @@ class PEAR_Error
* @access public
*
*/
function PEAR_Error($message = 'unknown error', $code = null,
$mode = null, $options = null, $userinfo = null)
{
public function __constructor(
$message = 'unknown error',
$code = null,
$mode = null,
$options = null,
$userinfo = null
) {
if ($mode === null) {
$mode = PEAR_ERROR_RETURN;
}

@ -2269,24 +2269,28 @@ class UserManager
}
/** Get extra user data by value
* @param string the internal variable name of the field
* @param string the internal value of the field
* @param string $field_variable the internal variable name of the field
* @param string $field_value the internal value of the field
* @param bool $all_visibility
*
* @return array with extra data info of a user i.e array('field_variable'=>'value');
*/
public static function get_extra_user_data_by_value($field_variable, $field_value)
public static function get_extra_user_data_by_value($field_variable, $field_value, $all_visibility = true)
{
$extraField = new ExtraFieldValue('user');
$data = $extraField->get_item_id_from_field_variable_and_field_value(
$data = $extraField->get_values_by_handler_and_field_variable(
$field_variable,
$field_value,
true
null,
true,
intval($all_visibility)
);
$result = [];
if (!empty($data)) {
foreach ($data as $data) {
$result[] = $data;
$result[] = $data['item_id'];
}
}
@ -3602,7 +3606,7 @@ class UserManager
$finalResult = array();
if (count($extraFieldResult)>1) {
for ($i=0; $i < count($extraFieldResult) -1; $i++) {
if (is_array($extraFieldResult[$i+1])) {
if (is_array($extraFieldResult[$i]) && is_array($extraFieldResult[$i+1])) {
$finalResult = array_intersect($extraFieldResult[$i], $extraFieldResult[$i+1]);
}
}
@ -3626,7 +3630,7 @@ class UserManager
* @param string $query the value of the search box
* @return string HTML form
*/
public static function get_search_form($query)
public static function get_search_form($query, $defaultParams = [])
{
$searchType = isset($_GET['search_type']) ? $_GET['search_type'] : null;
$form = new FormValidator(
@ -3678,6 +3682,10 @@ class UserManager
$defaults['search_type'] = intval($searchType);
$defaults['q'] = api_htmlentities(Security::remove_XSS($query));
if (!empty($defaultParams)) {
$defaults = array_merge($defaults, $defaultParams);
}
$form->setDefaults($defaults);
$form->addButtonSearch(get_lang('Search'));

@ -21,22 +21,18 @@ $navigation_bar = '';
$display_mode = '';
$autostart = 'true';
if (isset($_SESSION['lpobject'])) {
$oLP = unserialize($_SESSION['lpobject']);
if (is_object($oLP)) {
$_SESSION['oLP'] = $oLP;
} else {
die('Could not instanciate lp object');
}
$display_mode = $_SESSION['oLP']->mode;
$myLP = learnpath::getLpFromSession(api_get_course_id(), '', '');
if ($myLP) {
$display_mode = $myLP->mode;
$scorm_css_header = true;
$lp_theme_css = $_SESSION['oLP']->get_theme();
$lp_theme_css = $myLP->get_theme();
$my_style = api_get_visual_theme();
// Setting up the CSS theme if exists
$mycourselptheme = null;
if (api_get_setting('allow_course_theme') == 'true') {
if (api_get_setting('allow_course_theme') === 'true') {
$mycourselptheme = api_get_course_setting('allow_learning_path_theme');
}
@ -46,13 +42,13 @@ if (isset($_SESSION['lpobject'])) {
$lp_theme_css = $my_style;
}
$progress_bar = $_SESSION['oLP']->getProgressBar();
$navigation_bar = $_SESSION['oLP']->get_navigation_bar();
$mediaplayer = $_SESSION['oLP']->get_mediaplayer($autostart);
$progress_bar = $myLP->getProgressBar();
$navigation_bar = $myLP->get_navigation_bar();
$mediaplayer = $myLP->get_mediaplayer($autostart);
}
session_write_close();
?>
<script type="text/javascript">
<script>
$(document).ready(function() {
jQuery('video:not(.skip), audio:not(.skip)').mediaelementplayer({
success: function(player, node) {
@ -61,5 +57,5 @@ session_write_close();
});
</script>
<span>
<?php echo (!empty($mediaplayer)) ? $mediaplayer : '&nbsp;' ?>
<?php echo !empty($mediaplayer) ? $mediaplayer : '&nbsp;' ?>
</span>

@ -1663,7 +1663,7 @@ function switch_item(current_item, next_item){
});
olms.switch_finished = 0; //only changed back once LMSInitialize() happens
loadForumThead(olms.lms_lp_id, next_item);
loadForumThread(olms.lms_lp_id, next_item);
return true;
}
@ -1671,7 +1671,7 @@ function switch_item(current_item, next_item){
/**
* Get a forum info when the learning path item has a associated forum
*/
var loadForumThead = function(lpId, lpItemId) {
var loadForumThread = function(lpId, lpItemId) {
var loadForum = $.getJSON('<?php echo api_get_path(WEB_AJAX_PATH) ?>lp.ajax.php', {
a: 'get_forum_thread',
lp: lpId,

@ -214,7 +214,7 @@
$('.lp-view-tabs').fadeIn();
});
loadForumThead({{ lp_id }}, {{ lp_current_item_id }});
loadForumThread({{ lp_id }}, {{ lp_current_item_id }});
{% if glossary_extra_tools in glossary_tool_availables %}
// Loads the glossary library.

@ -55,14 +55,24 @@ class bbb
$this->groupSupport = isset($columns['group_id']) ? true : false;
if ($this->groupSupport) {
// Plugin check
$this->groupSupport = (bool) $plugin->get('enable_conference_in_course_groups');
if ($this->groupSupport) {
// Platform check
$bbbSetting = api_get_setting('bbb_enable_conference_in_course_groups');
$bbbSetting = isset($bbbSetting['bbb']) ? $bbbSetting['bbb'] === 'true' : false;
if ($bbbSetting) {
// Course check
$courseInfo = api_get_course_info();
if ($courseInfo) {
$this->groupSupport = api_get_course_setting('bbb_enable_conference_in_groups') === '1';
}
}
}
}
if ($bbbPlugin == true) {
$userInfo = api_get_user_info();

@ -1,4 +1,5 @@
<?php
/* For licensing terms, see /license.txt */
namespace Chamilo\CoreBundle\Entity;

@ -1,4 +1,5 @@
<?php
/* For licensing terms, see /license.txt */
namespace Chamilo\CoreBundle\Entity;

@ -1,4 +1,5 @@
<?php
/* For licensing terms, see /license.txt */
namespace Chamilo\CoreBundle\Entity;
@ -12,6 +13,15 @@ use Doctrine\ORM\Mapping as ORM;
*/
class Tag
{
/**
* @var integer
*
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue
*/
private $id;
/**
* @var string
*
@ -33,17 +43,6 @@ class Tag
*/
private $count;
/**
* @var integer
*
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="IDENTITY")
*/
private $id;
/**
* Set tag
*

@ -1,4 +1,5 @@
<?php
/* For licensing terms, see /license.txt */
namespace Chamilo\CoreBundle\Entity;

@ -1,4 +1,5 @@
<?php
/* For licensing terms, see /license.txt */
namespace Chamilo\CoreBundle\Entity;

@ -1,4 +1,5 @@
<?php
/* For licensing terms, see /license.txt */
namespace Chamilo\CoreBundle\Entity;

@ -1,4 +1,5 @@
<?php
/* For licensing terms, see /license.txt */
namespace Chamilo\CoreBundle\Entity;

@ -1,4 +1,5 @@
<?php
/* For licensing terms, see /license.txt */
namespace Chamilo\CoreBundle\Entity;

@ -1,4 +1,5 @@
<?php
/* For licensing terms, see /license.txt */
namespace Chamilo\CoreBundle\Entity;
@ -12,6 +13,15 @@ use Doctrine\ORM\Mapping as ORM;
*/
class TrackEAttemptRecording
{
/**
* @var integer
*
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue
*/
private $id;
/**
* @var integer
*
@ -61,17 +71,6 @@ class TrackEAttemptRecording
*/
private $sessionId;
/**
* @var integer
*
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="IDENTITY")
*/
private $id;
/**
* Set exeId
*

@ -1,4 +1,5 @@
<?php
/* For licensing terms, see /license.txt */
namespace Chamilo\CoreBundle\Entity;
@ -20,6 +21,15 @@ use Doctrine\ORM\Mapping as ORM;
*/
class TrackECourseAccess
{
/**
* @var integer
*
* @ORM\Column(name="course_access_id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue
*/
private $courseAccessId;
/**
* @var integer
*
@ -69,17 +79,6 @@ class TrackECourseAccess
*/
private $userIp;
/**
* @var integer
*
* @ORM\Column(name="course_access_id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="IDENTITY")
*/
private $courseAccessId;
/**
* Set cId
*

@ -1,4 +1,5 @@
<?php
/* For licensing terms, see /license.txt */
namespace Chamilo\CoreBundle\Entity;

@ -1,4 +1,5 @@
<?php
/* For licensing terms, see /license.txt */
namespace Chamilo\CoreBundle\Entity;

@ -1,4 +1,5 @@
<?php
/* For licensing terms, see /license.txt */
namespace Chamilo\CoreBundle\Entity;

@ -1,4 +1,5 @@
<?php
/* For licensing terms, see /license.txt */
namespace Chamilo\CoreBundle\Entity;

@ -1,4 +1,5 @@
<?php
/* For licensing terms, see /license.txt */
namespace Chamilo\CoreBundle\Entity;

@ -1,4 +1,5 @@
<?php
/* For licensing terms, see /license.txt */
namespace Chamilo\CoreBundle\Entity;

@ -1,4 +1,5 @@
<?php
/* For licensing terms, see /license.txt */
namespace Chamilo\CoreBundle\Entity;

@ -1,4 +1,5 @@
<?php
/* For licensing terms, see /license.txt */
namespace Chamilo\CoreBundle\Entity;

@ -1,4 +1,5 @@
<?php
/* For licensing terms, see /license.txt */
namespace Chamilo\CoreBundle\Entity;

@ -1,4 +1,5 @@
<?php
/* For licensing terms, see /license.txt */
namespace Chamilo\CoreBundle\Entity;

@ -1,4 +1,5 @@
<?php
/* For licensing terms, see /license.txt */
namespace Chamilo\CoreBundle\Entity;

@ -1,4 +1,5 @@
<?php
/* For licensing terms, see /license.txt */
namespace Chamilo\CoreBundle\Entity;

@ -1,4 +1,5 @@
<?php
/* For licensing terms, see /license.txt */
namespace Chamilo\CoreBundle\Entity;
@ -20,6 +21,15 @@ use Doctrine\ORM\Mapping as ORM;
*/
class TrackStoredValuesStack
{
/**
* @var integer
*
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue
*/
private $id;
/**
* @var integer
*
@ -62,17 +72,6 @@ class TrackStoredValuesStack
*/
private $svValue;
/**
* @var integer
*
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="IDENTITY")
*/
private $id;
/**
* Set userId
*

@ -1,4 +1,5 @@
<?php
/* For licensing terms, see /license.txt */
namespace Chamilo\CoreBundle\Entity;
@ -12,6 +13,15 @@ use Doctrine\ORM\Mapping as ORM;
*/
class UserApiKey
{
/**
* @var integer
*
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue
*/
private $id;
/**
* @var integer
*
@ -68,17 +78,6 @@ class UserApiKey
*/
private $description;
/**
* @var integer
*
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="IDENTITY")
*/
private $id;
/**
* Set userId
*

@ -1,4 +1,5 @@
<?php
/* For licensing terms, see /license.txt */
namespace Chamilo\CoreBundle\Entity;
@ -12,6 +13,15 @@ use Doctrine\ORM\Mapping as ORM;
*/
class UserCourseCategory
{
/**
* @var integer
*
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue
*/
private $id;
/**
* @var integer
*
@ -33,17 +43,6 @@ class UserCourseCategory
*/
private $sort;
/**
* @var integer
*
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="IDENTITY")
*/
private $id;
/**
* Set userId
*

@ -1,4 +1,5 @@
<?php
/* For licensing terms, see /license.txt */
namespace Chamilo\CoreBundle\Entity;

@ -1,4 +1,5 @@
<?php
/* For licensing terms, see /license.txt */
namespace Chamilo\CoreBundle\Entity;

@ -1,4 +1,5 @@
<?php
/* For licensing terms, see /license.txt */
namespace Chamilo\CoreBundle\Entity;

@ -1,4 +1,5 @@
<?php
/* For licensing terms, see /license.txt */
namespace Chamilo\CoreBundle\Entity;
@ -12,6 +13,15 @@ use Doctrine\ORM\Mapping as ORM;
*/
class UserRelEventType
{
/**
* @var integer
*
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue
*/
private $id;
/**
* @var integer
*
@ -26,17 +36,6 @@ class UserRelEventType
*/
private $eventTypeName;
/**
* @var integer
*
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="IDENTITY")
*/
private $id;
/**
* Set userId
*

@ -1,4 +1,5 @@
<?php
/* For licensing terms, see /license.txt */
namespace Chamilo\CoreBundle\Entity;
@ -12,6 +13,15 @@ use Doctrine\ORM\Mapping as ORM;
*/
class UserRelUser
{
/**
* @var integer
*
* @ORM\Column(name="id", type="bigint")
* @ORM\Id
* @ORM\GeneratedValue
*/
private $id;
/**
* @var integer
*
@ -40,17 +50,6 @@ class UserRelUser
*/
private $lastEdit;
/**
* @var integer
*
* @ORM\Column(name="id", type="bigint")
* @ORM\Id
* @ORM\GeneratedValue(strategy="IDENTITY")
*/
private $id;
/**
* Set userId
*

@ -20,7 +20,7 @@ class Usergroup
*
* @ORM\Column(name="id", type="integer", nullable=false)
* @ORM\Id
* @ORM\GeneratedValue()
* @ORM\GeneratedValue
*/
protected $id;

@ -1,4 +1,5 @@
<?php
/* For licensing terms, see /license.txt */
namespace Chamilo\CoreBundle\Entity;
@ -15,27 +16,25 @@ class UsergroupRelCourse
/**
* @var integer
*
* @ORM\Column(name="usergroup_id", type="integer", nullable=false)
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue
*/
private $usergroupId;
private $id;
/**
* @var integer
*
* @ORM\Column(name="course_id", type="integer", nullable=false)
* @ORM\Column(name="usergroup_id", type="integer", nullable=false)
*/
private $courseId;
private $usergroupId;
/**
* @var integer
*
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="IDENTITY")
* @ORM\Column(name="course_id", type="integer", nullable=false)
*/
private $id;
private $courseId;
/**
* Set usergroupId

@ -1,4 +1,5 @@
<?php
/* For licensing terms, see /license.txt */
namespace Chamilo\CoreBundle\Entity;
@ -12,6 +13,15 @@ use Doctrine\ORM\Mapping as ORM;
*/
class UsergroupRelQuestion
{
/**
* @var integer
*
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue
*/
private $id;
/**
* @var integer
*
@ -40,17 +50,6 @@ class UsergroupRelQuestion
*/
private $coefficient;
/**
* @var integer
*
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="IDENTITY")
*/
private $id;
/**
* Set cId
*

@ -1,4 +1,5 @@
<?php
/* For licensing terms, see /license.txt */
namespace Chamilo\CoreBundle\Entity;
@ -15,27 +16,25 @@ class UsergroupRelSession
/**
* @var integer
*
* @ORM\Column(name="usergroup_id", type="integer", nullable=false)
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue
*/
private $usergroupId;
private $id;
/**
* @var integer
*
* @ORM\Column(name="session_id", type="integer", nullable=false)
* @ORM\Column(name="usergroup_id", type="integer", nullable=false)
*/
private $sessionId;
private $usergroupId;
/**
* @var integer
*
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="IDENTITY")
* @ORM\Column(name="session_id", type="integer", nullable=false)
*/
private $id;
private $sessionId;
/**
* Set usergroupId

@ -6,14 +6,6 @@ namespace Chamilo\CoreBundle\Entity;
use Chamilo\UserBundle\Entity\User;
use Doctrine\ORM\Mapping as ORM;
/**
* ,
* indexes={
// * @ORM\Index(name="IDX_739515A9A76ED395", columns={"user_id"}),
// * @ORM\Index(name="IDX_739515A9D2112630", columns={"usergroup_id"})
* }
*/
/**
* Class UsergroupRelUser
*

Loading…
Cancel
Save