Ignore:
Timestamp:
2012/04/06 17:25:14 (12 years ago)
Author:
AMUAMU
Message:

#1604 (外部連携用APIの実装) 基本機構実装、Amazon API相当の機能の実装(商品一覧系)

Location:
branches/version-2_12-dev
Files:
46 added
4 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_12-dev/data/class/util/SC_Utils.php

    r21704 r21713  
    20772077        return implode($separator, array_fill(0, $multiplier, $input)); 
    20782078    } 
     2079 
     2080    /** 
     2081     * RFC3986に準拠したURIエンコード 
     2082     * MEMO: PHP5.3.0未満では、~のエンコードをしてしまうための処理 
     2083     * 
     2084     * @param string $str 文字列 
     2085     * @return string RFC3986エンコード文字列 
     2086     */ 
     2087    function encodeRFC3986($str) { 
     2088        return str_replace('%7E', '~', rawurlencode($str)); 
     2089    } 
     2090 
     2091 
    20792092} 
  • branches/version-2_12-dev/html/install/sql/create_table_mysql.sql

    r21702 r21713  
    11521152); 
    11531153 
     1154CREATE TABLE dtb_api_config ( 
     1155    api_config_id int NOT NULL, 
     1156    operation_name text NOT NULL, 
     1157    operation_description text, 
     1158    auth_types text NOT NULL, 
     1159    enable smallint NOT NULL DEFAULT 0, 
     1160    is_log smallint NOT NULL DEFAULT 0, 
     1161    sub_data text, 
     1162    del_flg smallint NOT NULL DEFAULT 0, 
     1163    create_date timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, 
     1164    update_date timestamp NOT NULL, 
     1165    PRIMARY KEY (api_config_id) 
     1166); 
     1167 
     1168CREATE TABLE dtb_api_account ( 
     1169    api_account_id int NOT NULL, 
     1170    api_access_key text NOT NULL, 
     1171    api_secret_key text NOT NULL, 
     1172    enable smallint NOT NULL DEFAULT 0, 
     1173    del_flg smallint NOT NULL DEFAULT 0, 
     1174    create_date timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, 
     1175    update_date timestamp NOT NULL, 
     1176    PRIMARY KEY (api_account_id) 
     1177); 
     1178 
    11541179 
    11551180CREATE INDEX dtb_customer_mobile_phone_id_key ON dtb_customer (mobile_phone_id(255)); 
  • branches/version-2_12-dev/html/install/sql/create_table_pgsql.sql

    r21701 r21713  
    11521152); 
    11531153 
     1154CREATE TABLE dtb_api_config ( 
     1155    api_config_id int NOT NULL, 
     1156    operation_name text NOT NULL, 
     1157    operation_description text, 
     1158    auth_types text NOT NULL, 
     1159    enable smallint NOT NULL DEFAULT 0, 
     1160    is_log smallint NOT NULL DEFAULT 0, 
     1161    sub_data text, 
     1162    del_flg smallint NOT NULL DEFAULT 0, 
     1163    create_date timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, 
     1164    update_date timestamp NOT NULL, 
     1165    PRIMARY KEY (api_config_id) 
     1166); 
     1167 
     1168CREATE TABLE dtb_api_account ( 
     1169    api_account_id int NOT NULL, 
     1170    api_access_key text NOT NULL, 
     1171    api_secret_key text NOT NULL, 
     1172    enable smallint NOT NULL DEFAULT 0, 
     1173    del_flg smallint NOT NULL DEFAULT 0, 
     1174    create_date timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, 
     1175    update_date timestamp NOT NULL, 
     1176    PRIMARY KEY (api_account_id) 
     1177); 
     1178 
    11541179 
    11551180CREATE INDEX dtb_customer_mobile_phone_id_key ON dtb_customer (mobile_phone_id); 
  • branches/version-2_12-dev/html/install/sql/drop_table.sql

    r21701 r21713  
    9393DROP TABLE mtb_auth_excludes; 
    9494DROP TABLE dtb_plugin_hookpoint; 
     95DROP TABLE dtb_api_config; 
     96DROP TABLE dtb_api_account; 
Note: See TracChangeset for help on using the changeset viewer.