public function get_editable_fields(int $instanceid) : array {
        $handler = $this;
        return array_filter($this->get_fields(),
            function($field) use($handler, $instanceid) {
                return $handler->can_edit($field, $instanceid);
            }
        );
    }
public function get_editable_fields(int $instanceid) : array {
        $handler = $this;
        return array_filter($this->get_fields(),
            function($field) use($handler, $instanceid) {
                return $handler->can_edit($field, $instanceid);
            }
        );
    }
public function get_editable_fields ( int $ instanceid ) : array { $ handler = $ this ; return array_filter ( $ this -> get_fields ( ) , function ( $ field ) use ( $ handler , $ instanceid ) { return $ handler -> can_edit ( $ field , $ instanceid ) ; } ) ; }
Get editable fields

@param int $instanceid
@return field_controller[]
Get editable fields