Fix private class member variable access
authorSam Reed <reedy@users.mediawiki.org>
Thu, 30 Dec 2010 17:41:19 +0000 (17:41 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Thu, 30 Dec 2010 17:41:19 +0000 (17:41 +0000)
Some method documentation

includes/db/DatabaseOracle.php

index 63e68f0..8893e2e 100644 (file)
@@ -808,7 +808,7 @@ class DatabaseOracle extends DatabaseBase {
        # Returns the size of a text field, or -1 for "unlimited"
        function textFieldSize( $table, $field ) {
                $fieldInfoData = $this->fieldInfo( $table, $field);
-               if ( $fieldInfoData->type == 'varchar' ) {
+               if ( $fieldInfoData->type() == 'varchar' ) {
                        $size = $row->size - 4;
                } else {
                        $size = $row->size;
@@ -928,6 +928,7 @@ class DatabaseOracle extends DatabaseBase {
         *
         * @param $table Array
         * @param $field String
+        * @return ORAField
         */
        private function fieldInfoMulti( $table, $field ) {
                $field = strtoupper( $field );
@@ -975,6 +976,12 @@ class DatabaseOracle extends DatabaseBase {
                return $fieldInfoTemp;
        }
 
+       /**
+        * @throws DBUnexpectedError
+        * @param  $table
+        * @param  $field
+        * @return ORAField
+        */
        function fieldInfo( $table, $field ) {
                if ( is_array( $table ) ) {
                        throw new DBUnexpectedError( $this, 'DatabaseOracle::fieldInfo called with table array!' );