I needed to import classes, so I wrote a patch for it. It's not beautiful, but it works.
It takes a csv file with one column of usernames (in other words, one username per line). The usernames must exist.
The patch also fixes two bugs in the usermanager: it wasn't able to search for strings, and it incorrectly used limit_from twice in a check. See patch for details.
It uses my csv.lib.php. In the meantime I found that there is also csv support in import.lib.php, but I didn't look into how that works yet. I suppose this (and my other patches) should use that instead of creating a new file.
Updated by Bas Wijnen almost 10 years ago
Classes are invisible for users. The administrator can use them to mass-subscribe and mass-unsubscribe users to sessions or courses.
I will probably need the ability to create groups inside a course from classes as well. If I do, I'll write a patch if it isn't possible yet (I don't think it is).
Proper support for classes would mean that the class itself is registered instead of the users in it. That is such a big change in the code, for so little result, that I don't think it's worth doing for Chamilo 1. IMO it should be done in Chamilo 2, though, as it is the Right Way.
Updated by Marko Kastelic almost 10 years ago
Jan Derriks wrote:
Classes? How do you use those classes? Can I create sessions from classes or create groups from classes?
'class' is an organizational unit, a kind of close group of users, for eq. with the same syllabus. often is the basic organizational unit on the primary/secondary educational level.
So if you have the same group of people all the time, you can do enrolment to the selected course/s/ with one click, and with no everhead, and no missing members.
And : the same could be done with importing the list of users from csv,xls(x), ... but this feature does not exist any more (?or does not ever?).
Our course teachers often create groups inside a course that represent classes. Al lot of duplicated work if classes are already available.
agree, if you already have groups defined inside the course. On that level, there is no help. but the members of all the groups==classes must be enroled to the same course somehow. Is it enrolment to the course voluntarily /student does enrolment her/himself / or forced /teacher does it ? In the first case, classes are irrelevant.
Updated by Julio Montoya almost 9 years ago
- Status changed from New to Needs more info
the class import/export already exists check: