Subversion Repositories php-qbpwcf

Rev

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

Rev 3 Rev 226
Line 1... Line 1...
1
<?php
1
<?php
2
 
2
 
3
/*
3
/*
4
 
4
 
5
	QBPWCF, Quick Build PHP website Component base on Fedora Linux.
5
	QBPWCF, Quick Build PHP website Component base on Fedora Linux.
6
    Copyright (C) 2015~2025 Min-Jhin,Chen
6
    Copyright (C) 2014~2025 MIN ZHI, CHEN
7
 
7
 
8
    This file is part of QBPWCF.
8
    This file is part of QBPWCF.
9
 
9
 
10
    QBPWCF is free software: you can redistribute it and/or modify
10
    QBPWCF is free software: you can redistribute it and/or modify
11
    it under the terms of the GNU General Public License as published by
11
    it under the terms of the GNU General Public License as published by
Line 44... Line 44...
44
	#$arguments,陣列,為呼叫方法時所用的參數.
44
	#$arguments,陣列,為呼叫方法時所用的參數.
45
	#參考資料:
45
	#參考資料:
46
	#__call=>http://php.net/manual/en/language.oop5.overloading.php#object.callstatic
46
	#__call=>http://php.net/manual/en/language.oop5.overloading.php#object.callstatic
47
	*/
47
	*/
48
	public function __call($method,$arguments){
48
	public function __call($method,$arguments){
49
		
49
 
50
		#取得當前執行的函式
50
		#取得當前執行的函式
51
		$result["function"]=__FUNCTION__;
51
		$result["function"]=__FUNCTION__;
52
		
52
 
53
		#設置執行不正常
53
		#設置執行不正常
54
		$result["status"]="false";
54
		$result["status"]="false";
55
		
55
 
56
		#設置執行錯誤
56
		#設置執行錯誤
57
		$result["error"][]=__NAMESPACE__ ."/".$method."() 不存在!";
57
		$result["error"][]=__NAMESPACE__ ."/".$method."() 不存在!";
58
		
58
 
59
		#設置所丟入的參數
59
		#設置所丟入的參數
60
		$result["error"][]=$arguments;
60
		$result["error"][]=$arguments;
61
		
61
 
62
		#回傳結果
62
		#回傳結果
63
		return $result;
63
		return $result;
64
		
64
 
65
		}#function __call end
65
		}#function __call end
66
		
66
 
67
	/*
67
	/*
68
	#函式說明:
68
	#函式說明:
69
	#當前類別被呼叫的靜態方法不存在時,將會執行該函數,回報該方法不存在.
69
	#當前類別被呼叫的靜態方法不存在時,將會執行該函數,回報該方法不存在.
70
	#回傳結果:
70
	#回傳結果:
71
	#$result["status"],執行是否正常,"true"代表正常,"false"代表不正常.
71
	#$result["status"],執行是否正常,"true"代表正常,"false"代表不正常.
Line 76... Line 76...
76
	#$arguments,陣列,為呼叫方法時所用的參數.
76
	#$arguments,陣列,為呼叫方法時所用的參數.
77
	#參考資料:
77
	#參考資料:
78
	#__call=>http://php.net/manual/en/language.oop5.overloading.php#object.callstatic
78
	#__call=>http://php.net/manual/en/language.oop5.overloading.php#object.callstatic
79
	*/
79
	*/
80
	public static function __callStatic($method,$arguments){
80
	public static function __callStatic($method,$arguments){
81
		
81
 
82
		#取得當前執行的函式
82
		#取得當前執行的函式
83
		$result["function"]=__FUNCTION__;
83
		$result["function"]=__FUNCTION__;
84
		
84
 
85
		#設置執行不正常
85
		#設置執行不正常
86
		$result["status"]="false";
86
		$result["status"]="false";
87
		
87
 
88
		#設置執行錯誤
88
		#設置執行錯誤
89
		$result["error"][]="欲呼叫的". __NAMESPACE__ ."/".$method."() 不存在!";
89
		$result["error"][]="欲呼叫的". __NAMESPACE__ ."/".$method."() 不存在!";
90
		
90
 
91
		#設置所丟入的參數
91
		#設置所丟入的參數
92
		$result["error"][]=$arguments;
92
		$result["error"][]=$arguments;
93
		
93
 
94
		#回傳結果
94
		#回傳結果
95
		return $result;
95
		return $result;
96
		
96
 
97
		}#function __callStatic end
97
		}#function __callStatic end
98
 
98
 
99
	/*
99
	/*
100
	#函式說明:
100
	#函式說明:
101
	#匯入 webRTC 的 javaScript 涵式庫.
101
	#匯入 webRTC 的 javaScript 涵式庫.