Skip to content
This repository has been archived by the owner on Mar 14, 2021. It is now read-only.

Added searchWithParameters function #39

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

briankirsten
Copy link

Added a function which will allow you to search with all parameters available in the ItemSearchRequest call (Artist, Author, Title).

Usage:
$requestArray = array();

$requestArray['Author'] = "Stephen King";
$requestArray['Title'] = "The Shining";

$ecsObj->searchWithParameters($requestArray);

Added function which allows you to search by all allowed parameters
offers in ItemSearchRequest (Artist, Author, Title, etc). Just pass in
a key/value array with the parameter type and the term you're searching
on.
@Exeu
Copy link
Owner

Exeu commented Sep 29, 2012

Thanks for your pull request.
But putting this in a new function i think it is the wrong way.

Could you integrate this feature in the current search method?
You can handle this by determining the type of the serach parameter.

If it is an array then do the new stuff else do the normal stuff.

Modified search function to accept array of patterns
@briankirsten
Copy link
Author

Removed the new function and modified the "search" function to accept an array of patterns.

@briankirsten
Copy link
Author

Integrated the feature with the current search method.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants