Subversion Repositories php-qbpwcf

Rev

Rev 165 | Rev 172 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 165 Rev 166
Line 2018... Line 2018...
2018
				}#if end
2018
				}#if end
2019
 
2019
 
2020
			#回傳結果
2020
			#回傳結果
2021
			return $result;
2021
			return $result;
2022
			
2022
			
2023
			}#if end		
2023
			}#if end
2024
			
2024
			
2025
		#取得參數
2025
		#取得參數
2026
		$result["argu"]=$conf;	
2026
		$result["argu"]=$conf;	
2027
				
2027
				
2028
		#檢查參數
2028
		#檢查參數
Line 2086... Line 2086...
2086
			
2086
			
2087
		#初始化變數,避免找不到	
2087
		#初始化變數,避免找不到	
2088
		$result["foundedFalseKey"]=array();	
2088
		$result["foundedFalseKey"]=array();	
2089
		$result["foundedTrueKey"]=array();
2089
		$result["foundedTrueKey"]=array();
2090
		$result["foundedKeyWords"]=array();
2090
		$result["foundedKeyWords"]=array();
-
 
2091
		$result["foundedTrueKeyWords"]=array();
2091
		$result["keyWordsIncludeStr"]=array();	
2092
		$result["keyWordsIncludeStr"]=array();	
2092
				
2093
				
2093
		#$conf["stringArray"] 陣列有幾個元素,就執行幾次。
2094
		#$conf["stringArray"] 陣列有幾個元素,就執行幾次。
2094
		foreach($conf["stringArray"] as $key=>$value){
2095
		foreach($conf["stringArray"] as $key=>$value){
2095
			
2096
			
Line 2134... Line 2135...
2134
			if($searchResult["founded"]==="true"){
2135
			if($searchResult["founded"]==="true"){
2135
				
2136
				
2136
				#取得該元素
2137
				#取得該元素
2137
				$result["foundedTrueKey"][$key]=$value;
2138
				$result["foundedTrueKey"][$key]=$value;
2138
				
2139
				
-
 
2140
				#儲存該元素存在的關鍵字
-
 
2141
				$result["foundedTrueKeyWords"][$key]=$searchResult["foundedKeyWords"];
-
 
2142
				
2139
				#合併找到的關鍵字
2143
				#合併找到的關鍵字
2140
				#函式說明:
2144
				#函式說明:
2141
				#將多個一維陣列串聯起來,key從0開始排序.
2145
				#將多個一維陣列串聯起來,key從0開始排序.
2142
				#回傳的結果:
2146
				#回傳的結果:
2143
				#$result["status"],"true"表執行正常,"false"代表執行不正常.
2147
				#$result["status"],"true"表執行正常,"false"代表執行不正常.
Line 2156... Line 2160...
2156
				#無.
2160
				#無.
2157
				$mergeArray=arrays::mergeArray($conf["arrays::mergeArray"]);
2161
				$mergeArray=arrays::mergeArray($conf["arrays::mergeArray"]);
2158
				unset($conf["arrays::mergeArray"]);
2162
				unset($conf["arrays::mergeArray"]);
2159
 
2163
 
2160
				#如果失敗
2164
				#如果失敗
2161
				if($mergeArray["status"]=="false"){
2165
				if($mergeArray["status"]==="false"){
2162
					
2166
					
2163
					#設置執行不正常
2167
					#設置執行不正常
2164
					$result["status"]="false";
2168
					$result["status"]="false";
2165
				
2169
				
2166
					#程式停止執行
2170
					#程式停止執行