public function virtuals($attribute = null)
    {
        $fields = [];
        foreach ($this->_columns as $name => $field) {
            if (empty($field['virtual'])) {
                continue;
            }
            $fields[] = $name;
        }
        return $fields;
    }
public function virtuals($attribute = null)
    {
        $fields = [];
        foreach ($this->_columns as $name => $field) {
            if (empty($field['virtual'])) {
                continue;
            }
            $fields[] = $name;
        }
        return $fields;
    }
public function virtuals ( $ attribute = null ) { $ fields = [ ] ; foreach ( $ this -> _columns as $ name => $ field ) { if ( empty ( $ field [ 'virtual' ] ) ) { continue ; } $ fields [ ] = $ name ; } return $ fields ; }
Gets all virtual fields.

@return array
Gets all virtual fields .