~jstys-z/helioviewer.org/client5

« back to all changes in this revision

Viewing changes to api/src/Movie/HelioviewerMovie.php

  • Committer: Keith Hughitt
  • Date: 2011-04-25 19:26:03 UTC
  • mto: This revision was merged to the branch mainline in revision 567.
  • Revision ID: keith.hughitt@nasa.gov-20110425192603-25zf9j8ne9212sqx
Reimplemented getMovie using new scheme.

Show diffs side-by-side

added added

removed removed

Lines of Context:
72
72
        $this->reqEndDate   = $info['reqEndDate'];
73
73
        $this->startDate    = $info['startDate'];
74
74
        $this->endDate      = $info['endDate'];
75
 
        $this->imageScale   = $info['imageScale'];
76
 
        $this->frameRate    = $info['frameRate'];
77
 
        $this->maxFrames    = $info['maxFrames'];
78
 
        $this->width        = $info['width'];
79
 
        $this->height       = $info['height'];
80
75
        $this->status       = $info['status'];
81
76
        $this->timestamp    = $info['timestamp'];
82
 
        $this->watermark    = $info['watermark'];
 
77
        $this->imageScale   = (float) $info['imageScale'];
 
78
        $this->frameRate    = (float) $info['frameRate'];
 
79
        $this->numFrames    = (int) $info['numFrames'];
 
80
        $this->maxFrames    = (int) $info['maxFrames'];
 
81
        $this->width        = (int) $info['width'];
 
82
        $this->height       = (int) $info['height'];
 
83
        $this->watermark    = (bool) $info['watermark'];
83
84
        
84
85
        // Data Layers
85
86
        $this->_layers = new Helper_HelioviewerLayers($info['dataSourceString']);
136
137
    }
137
138
    
138
139
    /**
 
140
     * Returns information about the completed movie
 
141
     * 
 
142
     * @return array A list of movie properties and a URL to the finished movie
 
143
     */
 
144
    public function getCompletedMovieInformation() {
 
145
        return array(
 
146
            "frameRate" => $this->frameRate,
 
147
            "numFrames" => $this->numFrames,
 
148
            "startDate" => $this->startDate,
 
149
            "endDate"   => $this->endDate,
 
150
            "width"     => $this->width,
 
151
            "height"    => $this->height
 
152
        );
 
153
    }
 
154
 
 
155
    /**
139
156
     * Returns the base filepath for movie without any file extension
140
157
     */
141
158
    public function getFilepath($highQuality=false)