protected function convertOptionsList($statement, $aliasColumn, $valueColumn, &$count = null)
    {
        $arrReturn = array();
        while ($values = $statement->fetch(\PDO::FETCH_OBJ)) {
            if (is_array($count)) {
                /** @noinspection PhpUndefinedFieldInspection */
                $count[$values->$aliasColumn] = $values->mm_count;
            }

            $arrReturn[$values->$aliasColumn] = $values->$valueColumn;
        }

        return $arrReturn;
    }
protected function convertOptionsList($statement, $aliasColumn, $valueColumn, &$count = null)
    {
        $arrReturn = array();
        while ($values = $statement->fetch(\PDO::FETCH_OBJ)) {
            if (is_array($count)) {
                /** @noinspection PhpUndefinedFieldInspection */
                $count[$values->$aliasColumn] = $values->mm_count;
            }

            $arrReturn[$values->$aliasColumn] = $values->$valueColumn;
        }

        return $arrReturn;
    }
protected function convertOptionsList ( $ statement , $ aliasColumn , $ valueColumn , & $ count = null ) { $ arrReturn = array ( ) ; while ( $ values = $ statement -> fetch ( \ PDO :: FETCH_OBJ ) ) { if ( is_array ( $ count ) ) { /** @noinspection PhpUndefinedFieldInspection */ $ count [ $ values -> $ aliasColumn ] = $ values -> mm_count ; } $ arrReturn [ $ values -> $ aliasColumn ] = $ values -> $ valueColumn ; } return $ arrReturn ; }
Convert the database result into a proper result array.

@param Statement $statement   The database result statement.

@param string    $aliasColumn The name of the alias column to be used.

@param string    $valueColumn The name of the value column.

@param array     $count       The optional count array.

@return array
Convert the database result into a proper result array .