Merge "Added ORMIterator interface which can be used for type hinting (in particular...
authorAaron Schulz <aschulz@wikimedia.org>
Fri, 15 Jun 2012 19:09:51 +0000 (19:09 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Fri, 15 Jun 2012 19:09:51 +0000 (19:09 +0000)
1  2 
includes/AutoLoader.php
includes/db/IORMTable.php

diff --combined includes/AutoLoader.php
@@@ -470,6 -470,7 +470,7 @@@ $wgAutoloadLocalClasses = array
        'MySQLMasterPos' => 'includes/db/DatabaseMysql.php',
        'ORAField' => 'includes/db/DatabaseOracle.php',
        'ORAResult' => 'includes/db/DatabaseOracle.php',
+       'ORMIterator' => 'includes/db/ORMIterator',
        'ORMResult' => 'includes/db/ORMResult.php',
        'ORMRow' => 'includes/db/ORMRow.php',
        'ORMTable' => 'includes/db/ORMTable.php',
        'AnsiTermColorer'  => 'maintenance/term/MWTerm.php',
        'DummyTermColorer' => 'maintenance/term/MWTerm.php',
  
 +      # mw-config
 +      'InstallerOverrides' => 'mw-config/overrides.php',
 +
        # tests
        'DbTestPreviewer' => 'tests/testHelpers.inc',
        'DbTestRecorder' => 'tests/testHelpers.inc',
@@@ -62,9 -62,6 +62,9 @@@ interface IORMTable 
         * * array
         * * blob
         *
 +       * TODO: get rid of the id field. Every row instance needs to have
 +       * one so this is just causing hassle at various locations by requiring an extra check for field name.
 +       *
         * @since 1.20
         *
         * @return array
         * @return ORMResult
         */
        public function select( $fields = null, array $conditions = array(),
-                                                       array $options = array(), $functionName  = null );
+                                                       array $options = array(), $functionName = null );
  
        /**
         * Selects the the specified fields of the records matching the provided
         * @return array of self
         */
        public function selectObjects( $fields = null, array $conditions = array(),
-                                                                  array $options = array(), $functionName  = null );
+                                                                  array $options = array(), $functionName = null );
  
        /**
         * Do the actual select.
         * @return ResultWrapper
         */
        public function rawSelect( $fields = null, array $conditions = array(),
-                                                          array $options = array(), $functionName  = null );
+                                                          array $options = array(), $functionName = null );
  
        /**
         * Selects the the specified fields of the records matching the provided
         * @return array of array
         */
        public function selectFields( $fields = null, array $conditions = array(),
-                                                                 array $options = array(), $collapse = true, $functionName  = null );
+                                                                 array $options = array(), $collapse = true, $functionName = null );
  
        /**
         * Selects the the specified fields of the first matching record.
         */
        public function canHaveField( $name );
  
--}
++}