Ignore:
Timestamp:
2013/02/18 19:09:54 (11 years ago)
Author:
shutta
Message:

#2043 (typo修正・ソース整形・ソースコメントの改善 for 2.12.4)
Zend Framework PHP 標準コーディング規約のコーディングスタイルへ準拠。
classおよびfunctionの開始波括弧「{」のスタイルを修正。

File:
1 edited

Legend:

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

    r22206 r22567  
    3333 
    3434 
    35 class SC_Api_Operation { 
     35class SC_Api_Operation  
     36{ 
    3637 
    3738    /** API_DEBUG_MODE */ 
     
    5859     * @return boolean ログイン情報が有効な場合 true 
    5960     */ 
    60     protected function checkMemberAccount($member_id, $member_password) { 
     61    protected function checkMemberAccount($member_id, $member_password) 
     62    { 
    6163        $objQuery =& SC_Query_Ex::getSingletonInstance(); 
    6264        //パスワード、saltの取得 
     
    8284     * @return boolean ログインに成功した場合 true; 失敗した場合 false 
    8385     */ 
    84     protected function checkCustomerAccount($login_email, $login_password) { 
     86    protected function checkCustomerAccount($login_email, $login_password) 
     87    { 
    8588        $objCustomer = new SC_Customer_Ex(); 
    8689        if ($objCustomer->getCustomerDataFromEmailPass($login_password, $login_email)) { 
     
    9699     * @return boolean チェックに成功した場合 true; 失敗した場合 false 
    97100     */ 
    98     protected function checkReferer() { 
     101    protected function checkReferer() 
     102    { 
    99103        $ret = false; 
    100104        if (!SC_Utils_Ex::isBlank($_SERVER['HTTP_REFERER'])) { 
     
    117121     * @return boolean 署名認証に成功した場合 true; 失敗した場合 false 
    118122     */ 
    119     protected function checkApiSignature($operation_name, $arrParam, $arrApiConfig) { 
     123    protected function checkApiSignature($operation_name, $arrParam, $arrApiConfig) 
     124    { 
    120125        if (SC_Utils_Ex::isBlank($arrParam['Signature'])) { 
    121126            return false; 
     
    171176     * @return boolean チェックに成功した場合 true; 失敗した場合 false 
    172177     */ 
    173     protected function checkIp($operation_name) { 
     178    protected function checkIp($operation_name) 
     179    { 
    174180        $ret = false; 
    175181        $allow_hosts = SC_Api_Utils_Ex::getOperationSubConfig($operation_name, 'allow_hosts'); 
     
    189195     * @return string 秘密鍵文字列 
    190196     */ 
    191     protected function getApiSecretKey($access_key) { 
     197    protected function getApiSecretKey($access_key) 
     198    { 
    192199        $objQuery =& SC_Query_Ex::getSingletonInstance(); 
    193200        $secret_key = $objQuery->get('api_secret_key', 'dtb_api_account', 'api_access_key = ? and enable = 1 and del_flg = 0', array($access_key)); 
     
    202209     * @return boolean 権限がある場合 true; 無い場合 false 
    203210     */ 
    204     protected function checkOperationAuth($operation_name, &$arrParam, &$arrApiConfig) { 
     211    protected function checkOperationAuth($operation_name, &$arrParam, &$arrApiConfig) 
     212    { 
    205213        if (SC_Utils_Ex::isBlank($operation_name)) { 
    206214            return false; 
     
    265273     * @return void 
    266274     */ 
    267     protected function setApiBaseParam(&$objFormParam) { 
     275    protected function setApiBaseParam(&$objFormParam) 
     276    { 
    268277        $objFormParam->addParam('Operation', 'Operation', STEXT_LEN, 'an', array('EXIST_CHECK', 'GRAPH_CHECK', 'MAX_LENGTH_CHECK')); 
    269278        $objFormParam->addParam('Service', 'Service', STEXT_LEN, 'an', array('EXIST_CHECK', 'GRAPH_CHECK', 'MAX_LENGTH_CHECK')); 
     
    279288     * @return array(string レスポンス名, array レスポンス配列) 
    280289     */ 
    281     public function doApiAction($arrPost) { 
     290    public function doApiAction($arrPost) 
     291    { 
    282292        // 実行時間計測用 
    283293        $start_time = microtime(true); 
     
    374384     * @return array エコー情報配列 (XML用の _attributes 指定入り) 
    375385     */ 
    376     protected function getOperationRequestEcho($arrParam, $start_time) { 
     386    protected function getOperationRequestEcho($arrParam, $start_time) 
     387    { 
    377388        $arrRet = array( 
    378389                'HTTPHeaders' => array('Header' => array('_attributes' => array('Name' => 'UserAgent', 
     
    389400 
    390401    // TODO: ここらへんは SC_Displayに持って行きたい所だが・・ 
    391     public function sendApiResponse($type, $response_outer_name, &$arrResponse) { 
     402    public function sendApiResponse($type, $response_outer_name, &$arrResponse) 
     403    { 
    392404        switch ($type) { 
    393405            case 'xml': 
Note: See TracChangeset for help on using the changeset viewer.