/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/admin/admin_model.php

  • Committer: elof.bigestans at gmail
  • Date: 2013-05-23 09:39:22 UTC
  • mto: This revision was merged to the branch mainline in revision 94.
  • Revision ID: elof.bigestans@gmail.com-20130523093922-xbqeshpui6u2wkbt
Working on functionality for managecourses

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
                return $query->result();
18
18
        }
19
19
 
 
20
        public function setCourseHidden($courseID) {
 
21
                $this->db->where("courseID", $courseID);
 
22
                $this->db->update("Courses", array("isHidden" => 0));
 
23
        }
 
24
 
 
25
        public function unsetCourseHidden($courseID){
 
26
                $this->db->where("courseID", $courseID);
 
27
                $this->db->update("Courses", array("isHidden" => 0));
 
28
        }
 
29
 
20
30
        function addCourse($cid, $name, $courseData){
21
31
                $data = array(
22
32
                        'courseID' => $cid ,
219
229
                        echo json_encode(array('status'=>'File was uploaded successfuly!'));
220
230
                }       
221
231
        }
 
232
 
222
233
}