opensrs\OMA\SearchWorkgroups::validate PHP Method

validate() public static method

Valdation rule here
public static validate ( $data )
    public static function validate($data)
    {
        if (empty($data['criteria']['domain'])) {
            throw new Exception('oSRS Error - Domain required');
        } else {
            return true;
        }
    }
SearchWorkgroups