14499ad9df612158565933e6b5b4b7ae69f98cda
[atutor.git] / mods / atutor_opencaps / include / classes / ATOC_Json.php
1 <?php\r
2 /****************************************************************/\r
3 /* Atutor-OpenCaps Module                                               \r
4 /****************************************************************/\r
5 /* Copyright (c) 2010                           \r
6 /* Written by Antonio Gamba                                             \r
7 /* Adaptive Technology Resource Centre / University of Toronto\r
8 /*\r
9 /* This program is free software. You can redistribute it and/or\r
10 /* modify it under the terms of the GNU General Public License\r
11 /* as published by the Free Software Foundation.\r
12 /****************************************************************/\r
13 \r
14 class OcJsonFileProject\r
15 {\r
16         // set here all the global vars\r
17         public $id;\r
18         public $title;\r
19         public $login;\r
20         public $mediaFile;\r
21         public $captionFile;\r
22         public $timeStamp;\r
23         public $returnFormat;\r
24         \r
25         /**\r
26          * @desc setVars\r
27          * @param String $varName\r
28          * @param String $varValue\r
29          */\r
30         public function setVars($varName, $varValue)\r
31         {\r
32                 $this->$varName = $varValue;\r
33         }\r
34         \r
35         /**\r
36          * @desc addProjectData\r
37          * @param String $theProjectData\r
38          */\r
39         public function addProjectData($theProjectData)\r
40         {\r
41                 \r
42                 $this->results[]=$theProjectData;\r
43         }\r
44 \r
45 } // end class\r
46 ?>