Subversion Repositories php-qbpwcf

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
14 liveuser 1
<?php
2
 
3
#指派命明空間為qbpwcf
4
namespace qbpwcf;
5
 
6
#匯入外部套件
7
include("../allInOne.php");
8
 
9
/*
10
 
11
#提示要測試的函數
12
echo "<hr>text::htmlComment - testCase 1<p>";
13
 
14
#函式說明:
15
#顯示html的註解.
16
#回傳的結果:
17
#$result["status"],執行是否成功,"true"代表執行成功,"false"代表執行失敗.
18
#$result["error"],錯誤訊息陣列.
19
#$result["output"],我們所要的內容.
20
#必填的參數:
21
#$conf["contentArray"],陣列型態,代表每一行的註解內容.
22
$conf["contentArray"]=array("這是html裡面的註解","請大家多加利用!");
23
#可省略的參數:
24
#無.
25
#備註:
26
#\r與\n代表換行.
27
#參考資料來源:
28
#w3c HTML <!--...--> Tag,http://www.w3schools.com/tags/tag_comment.asp.
29
var_dump(text::htmlComment($conf));
30
unset($conf);
31
 
32
*/
33
 
34
/*
35
 
36
#提示要測試的函數
37
echo "<hr>text::oneLine - testCase 1<p>";
38
 
39
#函式說明:
40
#顯示一行文字
41
#回傳的結果:
42
#$result["status"],執行是否正常,"true"為正常,"false"為不正常.
43
#$result["error"],錯誤訊息陣列.
44
#$result["function"],當前執行的函數名稱.
45
#$result["content"],語法.
46
#必填的參數:
47
#$conf["string"],字串
48
$conf["string"]="Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World";
49
#可省略的參數:
50
#$conf["br"],字串,"true"代表最後要換行
51
#$conf["br"]="true";
52
#$conf["p"],字串,"true"代表最後要空一行
53
#$conf["p"]="true";
54
#$conf["class"],字串,要使用的css樣式名稱,預設為"__defaultTextStyle"
55
#$conf["class"]="";
56
var_dump(text::oneLine($conf));
57
unset($conf);
58
 
59
*/
60
 
61
/*
62
 
63
#提示要測試的函數
64
echo "<hr>text::multiLine - testCase 1<p>";
65
 
66
#函式說明:
67
#顯示多行文字.
68
#回傳的結果:
69
#$result["status"],執行是否正常,"true"為正常,"false"為不正常.
70
#$result["error"],錯誤訊息陣列.
71
#$result["function"],當前執行的函數名稱.
72
#$result["content"],語法.
73
#必填的參數:
74
#$conf["string"],字串
75
$conf["string"]="Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World";
76
#可省略的參數:
77
#$conf["class"],字串,要使用的css樣式名稱,預設為"__defaultTextStyle"
78
#$conf["class"]="";
79
var_dump(text::multiLine($conf));
80
unset($conf);
81
 
82
*/
83
 
84
/*
85
 
86
#提示要測試的函數
87
echo "<hr>text::multiLine - testCase 1<p>";
88
 
89
#函式說明:
90
#顯示多行文字.
91
#回傳的結果:
92
#$result["status"],執行是否正常,"true"為正常,"false"為不正常.
93
#$result["error"],錯誤訊息陣列.
94
#$result["function"],當前執行的函數名稱.
95
#$result["content"],語法.
96
#必填的參數:
97
#$conf["string"],字串
98
$conf["string"]="Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World";
99
#可省略的參數:
100
#$conf["class"],字串,要使用的css樣式名稱,預設為"__defaultTextStyle"
101
#$conf["class"]="";
102
var_dump(text::multiLine($conf));
103
unset($conf);
104
 
105
*/
106
 
107
/*
108
 
109
#提示要測試的函數
110
echo "<hr>text::vecho - testCase 1<p>";
111
 
112
#宣告變數
113
$var="Hello World!";
114
 
115
#函式說明:
116
#echo函式的加強版,變數存在才會印出來.
117
#回傳內容:
118
#無.
119
#必填參數:
120
#$conf["var"],變數位址.
121
$conf["var"]=&$var;
122
text::vecho($conf);
123
unset($conf);
124
 
125
*/
126
 
127
/*
128
 
129
#提示要測試的函數
130
echo "<hr>text::vecho - testCase 2<p>";
131
 
132
#宣告變數
133
#$var2="Hello World!";
134
 
135
#函式說明:
136
#echo函式的加強版,變數存在才會印出來.
137
#回傳內容:
138
#無.
139
#必填參數:
140
#$conf["var"],變數位址.
141
$conf["var"]=&$var2;
142
text::vecho($conf);
143
unset($conf);
144
 
145
*/
146
 
147
?>