source/Core/Model/BaseModel.php
public function getSelectFields($forceCoreTableUsage = null)
    {
        $selectFields = [];

        $viewName = $this->getViewName($forceCoreTableUsage);

        foreach ($this->_aFieldNames as $key => $field) {
            if ($viewName) {
                $selectFields[] = "`$viewName`.`$key`";
            } else {
                $selectFields[] = ".`$key`";
            }
        }

        return implode(', ', $selectFields);
    }
public function getSelectFields($forceCoreTableUsage = null)
    {
        $selectFields = [];

        $viewName = $this->getViewName($forceCoreTableUsage);

        foreach ($this->_aFieldNames as $key => $field) {
            if ($viewName) {
                $selectFields[] = "`$viewName`.`$key`";
            } else {
                $selectFields[] = ".`$key`";
            }
        }

        return implode(', ', $selectFields);
    }
public function getSelectFields ( $ forceCoreTableUsage = null ) { $ selectFields = [ ] ; $ viewName = $ this -> getViewName ( $ forceCoreTableUsage ) ; foreach ( $ this -> _aFieldNames as $ key => $ field ) { if ( $ viewName ) { $ selectFields [ ] = "`$viewName`.`$key`" ; } else { $ selectFields [ ] = ".`$key`" ; } } return implode ( ', ' , $ selectFields ) ; }
Function builds the field list used in select.

@param bool $forceCoreTableUsage (optional) use core views

@return string
Function builds the field list used in select .