protected function prepareDbColumns($sPrefix = '', $aCols = [])
    {
        //  Clean up
        $aCols = array_unique($aCols);
        $aCols = array_filter($aCols);

        //  Prefix all the values, if needed
        if ($sPrefix) {
            foreach ($aCols as $key => &$value) {
                $value = $sPrefix . '.' . $value;
            }
        }

        return $aCols;
    }
protected function prepareDbColumns($sPrefix = '', $aCols = [])
    {
        //  Clean up
        $aCols = array_unique($aCols);
        $aCols = array_filter($aCols);

        //  Prefix all the values, if needed
        if ($sPrefix) {
            foreach ($aCols as $key => &$value) {
                $value = $sPrefix . '.' . $value;
            }
        }

        return $aCols;
    }
protected function prepareDbColumns ( $ sPrefix = '' , $ aCols = [ ] ) { //  Clean up $ aCols = array_unique ( $ aCols ) ; $ aCols = array_filter ( $ aCols ) ; //  Prefix all the values, if needed if ( $ sPrefix ) { foreach ( $ aCols as $ key => & $ value ) { $ value = $ sPrefix . '.' . $ value ; } } return $ aCols ; }
Filter out duplicates and prefix column names if necessary

@param string $sPrefix
@param array  $aCols

@return array
Filter out duplicates and prefix column names if necessary