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