More parameter documentation
[lhc/web/wiklou.git] / includes / api / ApiQueryQueryPage.php
index 4059260..b09ffa2 100644 (file)
@@ -2,7 +2,7 @@
 /**
  *
  *
- * Created on Sep 10, 2007
+ * Created on Dec 22, 2010
  *
  * Copyright © 2010 Roan Kattouw <Firstname>.<Lastname>@gmail.com
  *
@@ -60,6 +60,10 @@ class ApiQueryQueryPage extends ApiQueryGeneratorBase {
                $this->run( $resultPageSet );
        }
 
+       /**
+        * @param $resultPageSet ApiPageSet
+        * @return void
+        */
        public function run( $resultPageSet = null ) {
                global $wgUser;
                $params = $this->extractRequestParams();
@@ -78,7 +82,7 @@ class ApiQueryQueryPage extends ApiQueryGeneratorBase {
                                $r['cached'] = '';
                                $ts = $qp->getCachedTimestamp();
                                if ( $ts ) {
-                                       $r['cachedTimestamp'] = wfTimestamp( TS_ISO_8601, $ts );
+                                       $r['cachedtimestamp'] = wfTimestamp( TS_ISO_8601, $ts );
                                }
                        }
                }
@@ -168,7 +172,7 @@ class ApiQueryQueryPage extends ApiQueryGeneratorBase {
 
        protected function getExamples() {
                return array(
-                       'api.php?action=query&list=querypages&qppage=Ancientpages'
+                       'api.php?action=query&list=querypage&qppage=Ancientpages'
                );
        }