Ignore:
Timestamp:
2013/05/02 18:11:36 (11 years ago)
Author:
h_yoshimoto
Message:

#2236 2.12.3リリース以降の2.12-devへのコミット差し戻し

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_12-dev/data/class/api/SC_Api_Operation.php

    r22567 r22796  
    3333 
    3434 
    35 class SC_Api_Operation  
    36 { 
     35class SC_Api_Operation { 
    3736 
    3837    /** API_DEBUG_MODE */ 
     
    5958     * @return boolean ログイン情報が有効な場合 true 
    6059     */ 
    61     protected function checkMemberAccount($member_id, $member_password) 
    62     { 
     60    protected function checkMemberAccount($member_id, $member_password) { 
    6361        $objQuery =& SC_Query_Ex::getSingletonInstance(); 
    6462        //パスワード、saltの取得 
     
    8482     * @return boolean ログインに成功した場合 true; 失敗した場合 false 
    8583     */ 
    86     protected function checkCustomerAccount($login_email, $login_password) 
    87     { 
     84    protected function checkCustomerAccount($login_email, $login_password) { 
    8885        $objCustomer = new SC_Customer_Ex(); 
    8986        if ($objCustomer->getCustomerDataFromEmailPass($login_password, $login_email)) { 
     
    9996     * @return boolean チェックに成功した場合 true; 失敗した場合 false 
    10097     */ 
    101     protected function checkReferer() 
    102     { 
     98    protected function checkReferer() { 
    10399        $ret = false; 
    104100        if (!SC_Utils_Ex::isBlank($_SERVER['HTTP_REFERER'])) { 
     
    121117     * @return boolean 署名認証に成功した場合 true; 失敗した場合 false 
    122118     */ 
    123     protected function checkApiSignature($operation_name, $arrParam, $arrApiConfig) 
    124     { 
     119    protected function checkApiSignature($operation_name, $arrParam, $arrApiConfig) { 
    125120        if (SC_Utils_Ex::isBlank($arrParam['Signature'])) { 
    126121            return false; 
     
    176171     * @return boolean チェックに成功した場合 true; 失敗した場合 false 
    177172     */ 
    178     protected function checkIp($operation_name) 
    179     { 
     173    protected function checkIp($operation_name) { 
    180174        $ret = false; 
    181175        $allow_hosts = SC_Api_Utils_Ex::getOperationSubConfig($operation_name, 'allow_hosts'); 
     
    195189     * @return string 秘密鍵文字列 
    196190     */ 
    197     protected function getApiSecretKey($access_key) 
    198     { 
     191    protected function getApiSecretKey($access_key) { 
    199192        $objQuery =& SC_Query_Ex::getSingletonInstance(); 
    200193        $secret_key = $objQuery->get('api_secret_key', 'dtb_api_account', 'api_access_key = ? and enable = 1 and del_flg = 0', array($access_key)); 
     
    209202     * @return boolean 権限がある場合 true; 無い場合 false 
    210203     */ 
    211     protected function checkOperationAuth($operation_name, &$arrParam, &$arrApiConfig) 
    212     { 
     204    protected function checkOperationAuth($operation_name, &$arrParam, &$arrApiConfig) { 
    213205        if (SC_Utils_Ex::isBlank($operation_name)) { 
    214206            return false; 
     
    273265     * @return void 
    274266     */ 
    275     protected function setApiBaseParam(&$objFormParam) 
    276     { 
     267    protected function setApiBaseParam(&$objFormParam) { 
    277268        $objFormParam->addParam('Operation', 'Operation', STEXT_LEN, 'an', array('EXIST_CHECK', 'GRAPH_CHECK', 'MAX_LENGTH_CHECK')); 
    278269        $objFormParam->addParam('Service', 'Service', STEXT_LEN, 'an', array('EXIST_CHECK', 'GRAPH_CHECK', 'MAX_LENGTH_CHECK')); 
     
    288279     * @return array(string レスポンス名, array レスポンス配列) 
    289280     */ 
    290     public function doApiAction($arrPost) 
    291     { 
     281    public function doApiAction($arrPost) { 
    292282        // 実行時間計測用 
    293283        $start_time = microtime(true); 
     
    384374     * @return array エコー情報配列 (XML用の _attributes 指定入り) 
    385375     */ 
    386     protected function getOperationRequestEcho($arrParam, $start_time) 
    387     { 
     376    protected function getOperationRequestEcho($arrParam, $start_time) { 
    388377        $arrRet = array( 
    389378                'HTTPHeaders' => array('Header' => array('_attributes' => array('Name' => 'UserAgent', 
     
    400389 
    401390    // TODO: ここらへんは SC_Displayに持って行きたい所だが・・ 
    402     public function sendApiResponse($type, $response_outer_name, &$arrResponse) 
    403     { 
     391    public function sendApiResponse($type, $response_outer_name, &$arrResponse) { 
    404392        switch ($type) { 
    405393            case 'xml': 
Note: See TracChangeset for help on using the changeset viewer.