public/phpmyadmin/test/classes/RelationCleanupDbiMock.php
/**
     * returns array of rows with associative keys from $result
     *
     * @param object $result result set identifier
     *
     * @return array
     */
returns array of rows with associative keys from $result
@param object $result result set identifier

@return array
returns array of rows with associative keys from $result @param object $result result set identifier @return array
public function fetchAssoc($result)
    {
        $assocResult = array();
        if ($this->assocIndex < $this->totalNum) {
            $assocResult['db_name'] = "db_name" . $this->assocIndex;
            $assocResult['comment'] = "comment" . $this->assocIndex;
            $this->assocIndex++;
            return $assocResult;
        }
        $this->assocIndex = 0;
        return false;
    }
public function fetchAssoc ( $ result ) { $ assocResult = array ( ) ; if ( $ this -> assocIndex < $ this -> totalNum ) { $ assocResult [ 'db_name' ] = " db_name " . $ this -> assocIndex ; $ assocResult [ 'comment' ] = " comment " . $ this -> assocIndex ; $ this -> assocIndex ++ ; return $ assocResult ; } $ this -> assocIndex = 0 ; return false ; }
returns array of rows with associative keys from $result
 @param object $result result set identifier
returns array of rows with associative keys from $result @param object $result result set identifier