Ignore:
Timestamp:
10/24/11 13:47:23 (14 years ago)
Author:
jkraaijeveld
Message:

Added support for questions and users

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Dev/branches/jos-branch/classes/Application.php

    r128 r130  
    1414    public function __construct($uid = null, $title = null, $description = null, $style = null)
    1515    {
     16        if(!isset ($uid))
     17        {
     18            $uid = md5(uniqid(rand(), true));
     19        }
    1620        $this->uid = $uid;
    1721        $this->title = $title;
     
    1923        $this->style = $style;
    2024    }
    21    
    22     public static function getApplication($info)
    23     {
    24         return new Application(
    25                 $info['applicationID'],
    26                 $info['applicationTitle'],
    27                 $info['applicationDescription'],
    28                 $info['applicationStyle']);
    29     }
    3025
    3126}
Note: See TracChangeset for help on using the changeset viewer.