Subversion Repositories qbpwcf-lib(archive)

Rev

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

Rev 674 Rev 678
Line 1697... Line 1697...
1697
		#可省略參數:
1697
		#可省略參數:
1698
		#$conf["overWriteWith"],字串陣列,要置換成什麼樣的內容,每個元素代表一行內容.
1698
		#$conf["overWriteWith"],字串陣列,要置換成什麼樣的內容,每個元素代表一行內容.
1699
		#$conf["overWriteWith"]=array();
1699
		#$conf["overWriteWith"]=array();
1700
		#$conf["replaceWith"],字串陣列,要將什麼內容置換成什麼內容.
1700
		#$conf["replaceWith"],字串陣列,要將什麼內容置換成什麼內容.
1701
		$conf["replaceWith"]=array(array($serviceStartKeyWord,$serviceStartNewContent),array($serviceRestartKeyWord,$serviceRestartNewContent));
1701
		$conf["replaceWith"]=array(array($serviceStartKeyWord,$serviceStartNewContent),array($serviceRestartKeyWord,$serviceRestartNewContent));
-
 
1702
		#$conf["replaceLike"],字串,預設為"false",代表要完全符合關鍵字才能進行整行替換;反之為"true".
-
 
1703
		$conf["replaceLike"]="true";
1702
		#$conf["addToTailWhenNoMatch"],字串,預設為"false"不做事;若為"true",則代表若使用 "replaceWith" 參數但沒有符合條件的內容出現,則新增到檔案的尾端.
1704
		#$conf["addToTailWhenNoMatch"],字串,預設為"false"不做事;若為"true",則代表若使用 "replaceWith" 參數但沒有符合條件的內容出現,則新增到檔案的尾端.
1703
		#$conf["addToTailWhenNoMatch"]="false";
1705
		#$conf["addToTailWhenNoMatch"]="false";
1704
		#$conf["addToTailBeforeThat"],字串,當 "replaceWith" 參數有使用,且 "addToTailWhenNoMatch" 為 "true" 時,若有使用該參數,則會從尾端尋找符合條件的行內容,然後將 沒有符合 "replaceWith" 條件的內容新增在此之前.
1706
		#$conf["addToTailBeforeThat"],字串,當 "replaceWith" 參數有使用,且 "addToTailWhenNoMatch" 為 "true" 時,若有使用該參數,則會從尾端尋找符合條件的行內容,然後將 沒有符合 "replaceWith" 條件的內容新增在此之前.
1705
		#$conf["addToTailBeforeThat"]="?\>";
1707
		#$conf["addToTailBeforeThat"]="?\>";
1706
		#參考資料:
1708
		#參考資料: