Changeset 131 for Dev/trunk/classes/Application.php
- Timestamp:
- 10/24/11 14:21:53 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Dev/trunk/classes/Application.php
r89 r131 6 6 * @author fpvanagthoven 7 7 */ 8 class Application {8 class Application extends ResearchToolObject{ 9 9 10 public $id;11 10 public $title; 12 11 public $description; 13 12 public $style; 14 13 15 public function __construct($ id = null, $title = null, $description = null, $style = null)14 public function __construct($uid = null, $title = null, $description = null, $style = null) 16 15 { 17 $this->id = $id; 16 if(!isset ($uid)) 17 { 18 $uid = md5(uniqid(rand(), true)); 19 } 20 $this->uid = $uid; 18 21 $this->title = $title; 19 22 $this->description = $description; 20 23 $this->style = $style; 21 24 } 22 23 public static function getApplication($info)24 {25 return new Application(26 $info['applicationID'],27 $info['applicationTitle'],28 $info['applicationDescription'],29 $info['applicationStyle']);30 }31 25 32 26 }
Note: See TracChangeset
for help on using the changeset viewer.