Stylize API
[lhc/web/wiklou.git] / includes / api / ApiQueryImageInfo.php
index 4590615..17cb2fa 100644 (file)
@@ -19,7 +19,7 @@
  *
  * You should have received a copy of the GNU General Public License along
  * with this program; if not, write to the Free Software Foundation, Inc.,
- * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  * http://www.gnu.org/copyleft/gpl.html
  */
 
@@ -213,13 +213,13 @@ class ApiQueryImageInfo extends ApiQueryBase {
                                if ( $mto && !$mto->isError() ) {
                                        $vals['thumburl'] = wfExpandUrl( $mto->getUrl() );
 
-                                       //bug 23834 - If the URL's are the same, we haven't resized it, so shouldn't give the wanted
-                                       //thumbnail sizes for the thumbnail actual size
+                                       // bug 23834 - If the URL's are the same, we haven't resized it, so shouldn't give the wanted
+                                       // thumbnail sizes for the thumbnail actual size
                                        if ( $mto->getUrl() !== $file->getUrl() ) {
-                                               $vals['thumbwidth'] = intval( $mto->getWidth() );                                       
+                                               $vals['thumbwidth'] = intval( $mto->getWidth() );
                                                $vals['thumbheight'] = intval( $mto->getHeight() );
                                        } else {
-                                               $vals['thumbwidth'] = intval( $file->getWidth() );                                      
+                                               $vals['thumbwidth'] = intval( $file->getWidth() );
                                                $vals['thumbheight'] = intval( $file->getHeight() );
                                        }
                                        
@@ -334,7 +334,21 @@ class ApiQueryImageInfo extends ApiQueryBase {
        public function getParamDescription() {
                $p = $this->getModulePrefix();
                return array(
-                       'prop' => 'What image information to get',
+                       'prop' => array(
+                               'What image information to get:',
+                               ' timestamp    - Adds timestamp for the uploaded version',
+                               ' user         - Adds user for uploaded the image version',
+                               ' comment      - Comment on the version',
+                               ' url          - Gives URL to the image and the description page',
+                               ' size         - Adds the size of the image in bytes and the height and width',
+                               ' dimensions   - Alias for size',
+                               ' sha1         - Adds sha1 hash for the image',
+                               ' mime         - Adds MIME of the image',
+                               ' thumbmime    - Adss MIME of the image thumbnail (requires url)',
+                               ' metadata     - Lists EXIF metadata for the version of the image',
+                               ' archivename  - Adds the file name of the archive version for non-latest versions',
+                               ' bitdepth     - Adds the bit depth of the version',
+            ),
                        'limit' => 'How many image revisions to return',
                        'start' => 'Timestamp to start listing from',
                        'end' => 'Timestamp to stop listing at',