<<

Bugzilla::WebService::Util

NAME

Bugzilla::WebService::Util - Utility functions used inside of the WebService code.

DESCRIPTION

This is somewhat like Bugzilla::Util, but these functions are only used internally in the WebService code.

SYNOPSIS

 filter({ include_fields => ['id', 'name'], 
          exclude_fields => ['name'] }, $hash);

METHODS

filter_fields

This helps implement the include_fields and exclude_fields arguments of WebService methods. Given a hash (the second argument to this subroutine), this will remove any keys that are not in include_fields and then remove any keys that are in exclude_fields.

<<