Update docs to reduce inconsistent type compatibility in api/
authorSiebrand Mazeland <s.mazeland@xs4all.nl>
Sat, 16 Nov 2013 21:15:17 +0000 (22:15 +0100)
committerIAlex <codereview@emsenhuber.ch>
Sun, 17 Nov 2013 21:47:51 +0000 (21:47 +0000)
Change-Id: Iaf97aeb514ddb2176491c3820fe891be8e989939

includes/Title.php
includes/api/ApiMain.php
includes/api/ApiPageSet.php

index 09c5a3a..4b8a141 100644 (file)
@@ -273,7 +273,7 @@ class Title {
        /**
         * Make a Title object from a DB row
         *
-        * @param $row Object database row (needs at least page_title,page_namespace)
+        * @param stdClass $row Object database row (needs at least page_title,page_namespace)
         * @return Title corresponding Title
         */
        public static function newFromRow( $row ) {
@@ -286,7 +286,7 @@ class Title {
         * Load Title object fields from a DB row.
         * If false is given, the title will be treated as non-existing.
         *
-        * @param $row Object|bool database row
+        * @param $row stdClass|bool database row
         */
        public function loadFromRow( $row ) {
                if ( $row ) { // page found
index c301e9e..9b09956 100644 (file)
@@ -858,7 +858,7 @@ class ApiMain extends ApiBase {
 
        /**
         * Log the preceding request
-        * @param $time Time in seconds
+        * @param int $time Time in seconds
         */
        protected function logRequest( $time ) {
                $request = $this->getRequest();
index 6c4bb08..e95e680 100644 (file)
@@ -593,7 +593,7 @@ class ApiPageSet extends ApiBase {
 
        /**
         * Extract all requested fields from the row received from the database
-        * @param $row Result row
+        * @param stdClass $row Result row
         */
        public function processDbRow( $row ) {
                // Store Title object in various data structures