public function getQueryFields($usePrefix = false, $prefix = '')
    {
        $fields = $this->fields;

        if ($usePrefix) {
            $prefix = (empty($prefix) ? $this->getTable() : $prefix);
            $fields = array();
            foreach ($this->fields as $field) {
                $fields[] = $prefix . '.' . $field;
            }
        }

        return implode(', ', $fields);
    }
public function getQueryFields($usePrefix = false, $prefix = '')
    {
        $fields = $this->fields;

        if ($usePrefix) {
            $prefix = (empty($prefix) ? $this->getTable() : $prefix);
            $fields = array();
            foreach ($this->fields as $field) {
                $fields[] = $prefix . '.' . $field;
            }
        }

        return implode(', ', $fields);
    }
public function getQueryFields ( $ usePrefix = false , $ prefix = '' ) { $ fields = $ this -> fields ; if ( $ usePrefix ) { $ prefix = ( empty ( $ prefix ) ? $ this -> getTable ( ) : $ prefix ) ; $ fields = array ( ) ; foreach ( $ this -> fields as $ field ) { $ fields [ ] = $ prefix . '.' . $ field ; } } return implode ( ', ' , $ fields ) ; }
Get fields to select

@param  bool   $usePrefix
@param  string $prefix
@return string
Get fields to select