public function fetchFields($type = null, $location = null)
    {
        return FieldManager::fetch(null, $this->get('id'), 'ASC', 'sortorder', $type, $location);
    }
public function fetchFields($type = null, $location = null)
    {
        return FieldManager::fetch(null, $this->get('id'), 'ASC', 'sortorder', $type, $location);
    }
public function fetchFields ( $ type = null , $ location = null ) { return FieldManager :: fetch ( null , $ this -> get ( 'id' ) , 'ASC' , 'sortorder' , $ type , $ location ) ; }
Returns an array of all the fields in this section optionally filtered by
the field type or it's location within the section.

@param string $type
The field type (it's handle as returned by `$field->handle()`)
@param string $location
The location of the fields in the entry creator, whether they are
'main' or 'sidebar'
@throws Exception
@return array
Returns an array of all the fields in this section optionally filtered by the field type or it s location within the section .