Update documentation related to newFromRow and formatRow
authorSiebrand Mazeland <s.mazeland@xs4all.nl>
Fri, 27 Dec 2013 12:56:52 +0000 (13:56 +0100)
committerSiebrand Mazeland <s.mazeland@xs4all.nl>
Fri, 27 Dec 2013 12:56:52 +0000 (13:56 +0100)
Change-Id: I65e5923c4dc3a63bd9cdbbc5fdcb572ab0cb9cae

includes/Pager.php
includes/User.php
includes/logging/LogEntry.php

index 19c3c43..6a10e88 100644 (file)
@@ -659,7 +659,7 @@ abstract class IndexPager extends ContextSource implements Pager {
         * representing the result row $row. Rows will be concatenated and
         * returned by getBody()
         *
-        * @param array $row Database row
+        * @param array|stdClass $row Database row
         * @return string
         */
        abstract function formatRow( $row );
index e7c5a32..43128fa 100644 (file)
@@ -465,7 +465,7 @@ class User {
         * user_name and user_real_name are not provided because the whole row
         * will be loaded once more from the database when accessing them.
         *
-        * @param array $row A row from the user table
+        * @param stdClass $row A row from the user table
         * @param array $data Further data to load into the object (see User::loadFromRow for valid keys)
         * @return User
         */
index a725402..76c2280 100644 (file)
@@ -157,7 +157,7 @@ class DatabaseLogEntry extends LogEntryBase {
        /**
         * Constructs new LogEntry from database result row.
         * Supports rows from both logging and recentchanges table.
-        * @param $row
+        * @param stdClass|array $row
         * @return DatabaseLogEntry
         */
        public static function newFromRow( $row ) {