public function ItemSearch($keywords, $searchIndex = NULL, $sortBy = NULL, $condition = 'New') {
		$params = array(
			'Operation' => 'ItemSearch',
			'ResponseGroup' => 'ItemAttributes,Offers,Images',
			'Keywords' => $keywords,
			'Condition' => $condition,
			'SearchIndex' => empty($searchIndex) ? 'All' : $searchIndex,
			'Sort' => $sortBy && ($searchIndex != 'All') ? $sortBy : NULL
		);

		return $this->MakeAndParseRequest($params);
	}
public function ItemSearch($keywords, $searchIndex = NULL, $sortBy = NULL, $condition = 'New') {
		$params = array(
			'Operation' => 'ItemSearch',
			'ResponseGroup' => 'ItemAttributes,Offers,Images',
			'Keywords' => $keywords,
			'Condition' => $condition,
			'SearchIndex' => empty($searchIndex) ? 'All' : $searchIndex,
			'Sort' => $sortBy && ($searchIndex != 'All') ? $sortBy : NULL
		);

		return $this->MakeAndParseRequest($params);
	}
public function ItemSearch ( $ keywords , $ searchIndex = NULL , $ sortBy = NULL , $ condition = 'New' ) { $ params = array ( 'Operation' => 'ItemSearch' , 'ResponseGroup' => 'ItemAttributes,Offers,Images' , 'Keywords' => $ keywords , 'Condition' => $ condition , 'SearchIndex' => empty ( $ searchIndex ) ? 'All' : $ searchIndex , 'Sort' => $ sortBy && ( $ searchIndex != 'All' ) ? $ sortBy : NULL ) ; return $ this -> MakeAndParseRequest ( $ params ) ; }
Search for items

@param	keywords			Keywords which we're requesting
@param	searchIndex			Name of search index (category) requested. NULL if searching all.
@param	sortBy				Category to sort by, only used if searchIndex is not 'All'
@param	condition			Condition of item. Valid conditions : Used, Collectible, Refurbished, All

@return	mixed				SimpleXML object, array of data or false if failure.
Search for items