/lenasys/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/lenasys/trunk

« back to all changes in this revision

Viewing changes to codeigniter/application/models/examplesmodel.php

  • Committer: b11johgu
  • Date: 2013-05-14 12:30:38 UTC
  • mto: This revision was merged to the branch mainline in revision 65.
  • Revision ID: b11johgu@student.his.se-20130514123038-rthxj3f34o32gpxy
ExamplesController:
- Added expand/collapse arrows for categories/subcategories.
- Added category positioning (incomplete).

more general changes made.

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
                /* Loads category names for menu */
5
5
                function getTitles($user)
6
6
                {
7
 
                        $this -> db -> select('Categories.categoryName, Categories.CourseID');
 
7
                        $this -> db -> select('Categories.categoryName, Categories.courseID');
8
8
                        $this -> db -> from('Categories');
9
9
                        $this -> db -> join('StudentCourseRegistrations', 'Categories.courseID = StudentCourseRegistrations.courseID'); 
10
10
                        $this -> db -> where('StudentCourseRegistrations.username', $user); 
 
11
                        $this -> db -> order_by("orderNr", "asc"); 
11
12
                /*      $this -> db -> where('StudentCourseRegistrations.courseID', 'd1popcrn');  
12
13
                *       Line is disabled for now because of testing purposes.
13
14
                *       Will be modified to be used with parameter in function.