[xoops-cvslog 3721] CVS update: xoops2jp/html/modules/base/actions

Back to archive index

Minahito minah****@users*****
2006年 7月 27日 (木) 18:31:36 JST


Index: xoops2jp/html/modules/base/actions/SearchResultsAction.class.php
diff -u xoops2jp/html/modules/base/actions/SearchResultsAction.class.php:1.1.2.4 xoops2jp/html/modules/base/actions/SearchResultsAction.class.php:1.1.2.5
--- xoops2jp/html/modules/base/actions/SearchResultsAction.class.php:1.1.2.4	Thu Jul 20 17:19:34 2006
+++ xoops2jp/html/modules/base/actions/SearchResultsAction.class.php	Thu Jul 27 18:31:36 2006
@@ -4,6 +4,8 @@
 
 require_once XOOPS_MODULE_PATH . "/base/forms/SearchResultsForm.class.php";
 
+define('LEGACY_SEARCH_DEFAULT_OFFSET', 20);
+
 class Legacy_SearchResultsAction extends Legacy_Action
 {
 	var $mActionForm = null;
@@ -53,16 +55,15 @@
 		// TODO ErrorHandling
 		//
 		$root =& $controller->mRoot;
-		$service =& $root->mServiceManager->searchXCubeService("LegacySearch");
-		if ($service) {
-			$client =& new XCube_ServiceClient($service);
+		$service =& $root->mServiceManager->getService("LegacySearch");
+		if (is_object($service)) {
+			$client =& $root->mServiceManager->createClient($service);
 
-			$parameters = array();
-			$parameters['current_uid'] = is_object($xoopsUser) ? $xoopsUser->get('uid') : 0;
+			$params['current_uid'] = is_object($xoopsUser) ? $xoopsUser->get('uid') : 0;
 			
-			$this->mActionForm->update($parameters);
+			$this->mActionForm->update($params);
 			
-			$this->mSearchResults = $client->call("getItems", $parameters);
+			$this->mSearchResults = $client->call('GetItems', $params['uid'], $params['current_uid'], $params['queries'], $params['andor'], $params['max_hit'], $params['offset'], $params['mids']);
 		}
 		else {
 			return LEGACY_FRAME_VIEW_ERROR;


xoops-cvslog メーリングリストの案内
Back to archive index