Changeset 1912


Ignore:
Timestamp:
4/16/2010 4:39:10 AM (4 years ago)
Author:
lowjoel
Message:

Implemented querying of builds from the database.

Location:
trunk/website/scripts
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/website/scripts/Download.php

    r1910 r1912  
    44 * 
    55 * @author Joel Low <lowjoel@users.sourceforge.net> 
    6  * @version $Id $ 
     6 * @version $Id$ 
    77 */ 
    88 
     
    1414class Download 
    1515{ 
    16     private $ID; 
    17     private $Downloads; 
    18     private $Name; 
    19     private $Released; 
    20     private $Superseded; 
    21     private $Link; 
     16    protected $ID; 
     17    protected $Downloads; 
     18    protected $Name; 
     19    protected $Released; 
     20    protected $Superseded; 
     21    protected $Link; 
    2222 
    2323    /** 
     
    4040        if ($statement->fetch() === false) 
    4141            throw new Exception('The given Download could not be found.'); 
     42 
     43        //Convert the release date to a DateTime object 
     44        $this->Released = new DateTime($this->Released); 
    4245 
    4346        //Get the number of downloads 
Note: See TracChangeset for help on using the changeset viewer.