More return documentation
[lhc/web/wiklou.git] / includes / db / DatabaseOracle.php
index 855fc83..8a35ad5 100644 (file)
@@ -226,6 +226,7 @@ class DatabaseOracle extends DatabaseBase {
 
        /**
         * Usually aborts on failure
+        * @return DatabaseBase|null
         */
        function open( $server, $user, $password, $dbName ) {
                if ( !function_exists( 'oci_connect' ) ) {
@@ -285,6 +286,7 @@ class DatabaseOracle extends DatabaseBase {
        /**
         * Closes a database connection, if it is open
         * Returns success, true if already closed
+        * @return bool
         */
        function close() {
                $this->mOpened = false;
@@ -401,6 +403,7 @@ class DatabaseOracle extends DatabaseBase {
 
        /**
         * This must be called after nextSequenceVal
+        * @return null
         */
        function insertId() {
                return $this->mInsertId;
@@ -439,6 +442,7 @@ class DatabaseOracle extends DatabaseBase {
        /**
         * Returns information about an index
         * If errors are explicitly ignored, returns NULL on failure
+        * @return bool
         */
        function indexInfo( $table, $index, $fname = 'DatabaseOracle::indexExists' ) {
                return false;
@@ -679,6 +683,7 @@ class DatabaseOracle extends DatabaseBase {
        }
        /**
         * Return the next in a sequence, save the value for retrieval via insertId()
+        * @return null
         */
        function nextSequenceValue( $seqName ) {
                $res = $this->query( "SELECT $seqName.nextval FROM dual" );
@@ -689,6 +694,7 @@ class DatabaseOracle extends DatabaseBase {
 
        /**
         * Return sequence_name if table has a sequence
+        * @return bool
         */
        private function getSequenceData( $table ) {
                if ( $this->sequenceData == null ) {
@@ -836,6 +842,7 @@ class DatabaseOracle extends DatabaseBase {
 
        /**
         * Query whether a given index exists
+        * @return bool
         */
        function indexExists( $table, $index, $fname = 'DatabaseOracle::indexExists' ) {
                $table = $this->tableName( $table );
@@ -855,6 +862,7 @@ class DatabaseOracle extends DatabaseBase {
 
        /**
         * Query whether a given table exists (in the given schema, or the default mw one if not given)
+        * @return int
         */
        function tableExists( $table, $fname = __METHOD__ ) {
                $table = $this->tableName( $table );