- Timestamp:
- 2013/02/18 19:09:54 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_12-dev/data/class/api/SC_Api_Utils.php
r22206 r22567 33 33 define('API_CLASS_REALDIR', CLASS_REALDIR . 'api/operations/'); 34 34 35 class SC_Api_Utils { 35 class SC_Api_Utils 36 { 36 37 37 38 /** API XML Namspase Header */ … … 53 54 * @return string 秘密鍵文字列 54 55 */ 55 public function getOperationSubConfig($operation_name, $key_name = '', $arrApiConfig = '') { 56 public function getOperationSubConfig($operation_name, $key_name = '', $arrApiConfig = '') 57 { 56 58 if (SC_Utils_Ex::isBlank($arrApiConfig)) { 57 59 $arrApiConfig = SC_Api_Utils_Ex::getAuthConfig($operation_name); … … 79 81 * @return array 設定配列 80 82 */ 81 public function getApiConfig($operation_name) { 83 public function getApiConfig($operation_name) 84 { 82 85 // 設定優先度 DB > plugin default > base 83 86 $objQuery =& SC_Query_Ex::getSingletonInstance(); … … 112 115 @ @rturn void 113 116 */ 114 public function printApiLog($msg, $start_time = '' , $operation_name = '') { 117 public function printApiLog($msg, $start_time = '' , $operation_name = '') 118 { 115 119 if (!SC_Utils_Ex::isBlank($operation_name)) { 116 120 $msg = 'API_' . $operation_name . ':' . $msg; … … 129 133 * @return object APIオペレーションクラスオブジェクト 130 134 */ 131 public function loadApiOperation($operation_name, $arrParam = array()) { 135 public function loadApiOperation($operation_name, $arrParam = array()) 136 { 132 137 // API_UPLOADのほうが優先 133 138 // API_UPLOAD > API_CLASS_EX > API_CLASS … … 155 160 * @return array $arrFiles 156 161 */ 157 public function getApiDirFiles() { 162 public function getApiDirFiles() 163 { 158 164 $arrFiles = array(); 159 165 // Core API ディレクトリ … … 183 189 } 184 190 185 public function sendResponseJson($response_outer_name, &$arrResponse) { 191 public function sendResponseJson($response_outer_name, &$arrResponse) 192 { 186 193 header('Content-Type: application/json; charset=UTF-8'); 187 194 $arrResponse['response_name'] = $response_outer_name; … … 189 196 } 190 197 191 public function sendResponsePhp($response_outer_name, &$arrResponse) { 198 public function sendResponsePhp($response_outer_name, &$arrResponse) 199 { 192 200 header('Content-Type: application/php; charset=UTF-8'); 193 201 $arrResponse['response_name'] = $response_outer_name; … … 195 203 } 196 204 197 public function sendResponseXml($response_outer_name, &$arrResponse) { 205 public function sendResponseXml($response_outer_name, &$arrResponse) 206 { 198 207 require_once 'XML/Serializer.php'; 199 208
Note: See TracChangeset
for help on using the changeset viewer.
