irm-1.6-b3/MDB/mysql.php
/**
     * simple subselect emulation for Mysql
     *
     * @access public
     *
     * @param string $query the SQL query for the subselect that may only
     *                      return a column
     * @param string $quote determines if the data needs to be quoted before
     *                      being returned
     *
     * @return string the query
     */
simple subselect emulation for Mysql
@access public

@param string $query the SQL query for the subselect that may only
return a column
@param string $quote determines if the data needs to be quoted before
being returned

@return string the query
simple subselect emulation for Mysql @access public @param string $query the SQL query for the subselect that may only return a column @param string $quote determines if the data needs to be quoted before being returned @return string the query
function subSelect($query, $quote = FALSE)
    {
        if($this->supported['SubSelects'] == 1) {
            return($query);
        }
        $col = $this->queryCol($query);
        if (MDB::isError($col)) {
            return($col);
        }
        if(!is_array($col) || count($col) == 0) {
            return 'NULL';
        }
        if($quote) {
            for($i = 0, $j = count($col); $i < $j; ++$i) {
                $col[$i] = $this->getTextValue($col[$i]);
            }
        }
        return(implode(', ', $col));
    }
function subSelect ( $ query , $ quote = FALSE ) { if ( $ this -> supported [ 'SubSelects' ] == 1 ) { return ( $ query ) ; } $ col = $ this -> queryCol ( $ query ) ; if ( MDB :: isError ( $ col ) ) { return ( $ col ) ; } if ( ! is_array ( $ col ) || count ( $ col ) == 0 ) { return 'NULL' ; } if ( $ quote ) { for ( $ i = 0 , $ j = count ( $ col ) ; $ i < $ j ; ++ $ i ) { $ col [ $ i ] = $ this -> getTextValue ( $ col [ $ i ] ) ; } } return ( implode ( ', ' , $ col ) ) ; }
simple subselect emulation for Mysql
 @access public
simple subselect emulation for Mysql @access public