protected function getUserColumns($sPrefix = '', $aCols = [])
    {
        if ($this->aUserColumns === null) {

            $oDb                = Factory::service('Database');
            $aResult            = $oDb->query('DESCRIBE `' . $this->table . '`')->result();
            $this->aUserColumns = [];

            foreach ($aResult as $oResult) {
                $this->aUserColumns[] = $oResult->Field;
            }
        }

        $aCols = array_merge($aCols, $this->aUserColumns);

        return $this->prepareDbColumns($sPrefix, $aCols);
    }
protected function getUserColumns($sPrefix = '', $aCols = [])
    {
        if ($this->aUserColumns === null) {

            $oDb                = Factory::service('Database');
            $aResult            = $oDb->query('DESCRIBE `' . $this->table . '`')->result();
            $this->aUserColumns = [];

            foreach ($aResult as $oResult) {
                $this->aUserColumns[] = $oResult->Field;
            }
        }

        $aCols = array_merge($aCols, $this->aUserColumns);

        return $this->prepareDbColumns($sPrefix, $aCols);
    }
protected function getUserColumns ( $ sPrefix = '' , $ aCols = [ ] ) { if ( $ this -> aUserColumns === null ) { $ oDb = Factory :: service ( 'Database' ) ; $ aResult = $ oDb -> query ( 'DESCRIBE `' . $ this -> table . '`' ) -> result ( ) ; $ this -> aUserColumns = [ ] ; foreach ( $ aResult as $ oResult ) { $ this -> aUserColumns [ ] = $ oResult -> Field ; } } $ aCols = array_merge ( $ aCols , $ this -> aUserColumns ) ; return $ this -> prepareDbColumns ( $ sPrefix , $ aCols ) ; }
Defines the list of columns in the `user` table

@param string $sPrefix The prefix to add to the columns
@param array  $aCols   Any additional columns to add

@return array
Defines the list of columns in the user table