Changeset 19675


Ignore:
Timestamp:
2010/11/18 20:37:07 (16 years ago)
Author:
nanasess
bzr:base-revision:
svn-v4:1e3b908f-19a9-db11-a64c-001125224ba8:branches/version-2_5-dev:19674
bzr:committer:
Kentaro Ohkouchi <[email protected]>
bzr:file-ids:

data/class/SC_CartSession.php 15078@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fdata%2Fclass%2FSC_CartSession.php
data/class/SC_Display.php 18986@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Fcamp%2Fcamp-2_5-E%2Fdata%2Fclass%2FSC_Display.php
data/class/SC_Query.php 15078@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fdata%2Fclass%2FSC_Query.php
data/class/SC_Response.php 18986@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Fcamp%2Fcamp-2_5-E%2Fdata%2Fclass%2FSC_Response.php
data/class/pages/products/LC_Page_Products_List.php 15154@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fdata%2Fclass%2Fpages%2Fproducts%2FLC_Page_Products_List.php
data/class/util/SC_Utils.php 15078@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fdata%2Fclass%2Futil%2FSC_Utils.php
data/module/MDB2/Driver/pgsql.php pgsql.php-20100706081907-4gdfmx4t4tyz1x8a-14
html/install/index.php 16809@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fhtml%2Finstall%2Findex.php
html/install/sql/create_table_mysql.sql 15078@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fhtml%2Finstall%2Fsql%2Fcreate_table_mysql.sql
patches/MDB2_Driver_pgsql.php.patch mdb2_driver_pgsql.ph-20101118112629-azips61wd3pc7ri9-1
bzr:mapping-version:
v4
bzr:repository-uuid:
1e3b908f-19a9-db11-a64c-001125224ba8
bzr:revision-id:
[email protected]
bzr:revno:
2405
bzr:revprop:branch-nick:
branches/version-2_5-dev
bzr:root:
branches/version-2_5-dev
bzr:timestamp:
2010-11-18 20:37:01.581000090 +0900
bzr:user-agent:
bzr2.2.1+bzr-svn1.0.4
svn:original-date:
2010-11-18T11:37:01.581000Z
Message:
  • PHP4対応(#854)
    • MDB2 の PostgreSQL 用ドライバを修正したため, パッチを添付
  • r19661 で発生した typo 修正
Location:
branches/version-2_5-dev
Files:
1 added
9 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_5-dev/data/class/SC_CartSession.php

    r19670 r19675  
    480480     * @return array カートの計算結果の配列 
    481481     */ 
    482     function calculate($productTypeId, &$objCustomer = null, $use_point = 0, 
     482    function calculate($productTypeId, &$objCustomer, $use_point = 0, 
    483483                       $deliv_pref = "", $payment_id = "", $charge = 0, $discount = 0) { 
    484484        $objDb = new SC_Helper_DB_Ex(); 
  • branches/version-2_5-dev/data/class/SC_Display.php

    r19670 r19675  
    4545    * @param $page LC_Page 
    4646    */ 
    47     function hoge(LC_Page $page, $is_admin = false){ 
     47    function hoge($page, $is_admin = false){ 
    4848        if(!$this->deviceSeted || !is_null($this->view)){ 
    4949            $device = ($is_admin) ? 8 : $this->detectDevice(); 
     
    6666    } 
    6767     
    68     function addHeader(String $name,String $value){ 
     68    function addHeader($name, $value){ 
    6969        $this->response->addHeader($name, $value); 
    7070    } 
     
    9393    } 
    9494     
    95     function setView(SC_View $view){ 
     95    function setView($view){ 
    9696         
    9797        $this->view = $view; 
  • branches/version-2_5-dev/data/class/SC_Query.php

    r19670 r19675  
    658658     */ 
    659659    function setVal($seq_name, $start) { 
    660         $this->conn->loadModule('Manager'); 
     660        $objManager =& $this->conn->loadModule('Manager'); 
    661661        // XXX エラーハンドリングを行う 
    662         $this->conn->dropSequence($seq_name); 
    663         return $this->conn->createSequence($seq_name, $start); 
     662        $objManager->dropSequence($seq_name); 
     663        return $objManager->createSequence($seq_name, $start); 
    664664    } 
    665665 
     
    696696     */ 
    697697    function listSequences() { 
    698         $this->conn->loadModule('Manager'); 
    699         return $this->conn->listSequences(); 
     698        $objManager =& $this->conn->loadModule('Manager'); 
     699        return $objManager->listSequences(); 
    700700    } 
    701701 
     
    706706     */ 
    707707    function listTables() { 
    708         $this->conn->loadModule('Manager'); 
    709         return $this->conn->listTables(); 
     708        $objManager =& $this->conn->loadModule('Manager'); 
     709        return $objManager->listTables(); 
    710710    } 
    711711 
     
    717717     */ 
    718718    function listTableFields($table) { 
    719         $this->conn->loadModule('Manager'); 
    720         return $this->conn->listTableFields($table); 
     719        $objManager =& $this->conn->loadModule('Manager'); 
     720        return $objManager->listTableFields($table); 
    721721    } 
    722722 
     
    728728     */ 
    729729    function listTableIndexes($table) { 
    730         $this->conn->loadModule('Manager'); 
    731         return $this->conn->listTableIndexes($table); 
     730        $objManager =& $this->conn->loadModule('Manager'); 
     731        return $objManager->listTableIndexes($table); 
    732732    } 
    733733     
     
    740740     */ 
    741741    function createIndex($table, $name, $definition) { 
    742         $this->conn->loadModule('Manager'); 
    743         return $this->conn->createIndex($table, $name, $definition); 
     742        $objManager =& $this->conn->loadModule('Manager'); 
     743        return $objManager->createIndex($table, $name, $definition); 
    744744    } 
    745745 
     
    751751     */ 
    752752    function dropIndex($table, $name) { 
    753         $this->conn->loadModule('Manager'); 
    754         return $this->conn->dropIndex($table, $name); 
     753        $objManager =& $this->conn->loadModule('Manager'); 
     754        return $objManager->dropIndex($table, $name); 
    755755    } 
    756756     
  • branches/version-2_5-dev/data/class/SC_Response.php

    r19670 r19675  
    8787 
    8888 
    89     function setContentType(String $contentType){ 
     89    function setContentType($contentType){ 
    9090        $this->header['Content-Type'] = $contentType; 
    9191    } 
    9292 
    93     function setResposeBody(String $body){ 
     93    function setResposeBody($body){ 
    9494        $this->body = $body; 
    9595    } 
    9696 
    97     /* function addDateHdeader(String $name, $date){ 
     97    /* function addDateHdeader($name, $date){ 
    9898     * 
    9999     * } 
    100100     */ 
    101101 
    102     function addHeader(String $name, $value){ 
     102    function addHeader($name, $value){ 
    103103        $this->header[$name] = $value; 
    104104    } 
    105105 
    106     function containsHeader(String $name){ 
     106    function containsHeader($name){ 
    107107        return isset($this->header[$name]); 
    108108    } 
    109109 
    110     function sendError( $errorcode){ 
     110    function sendError($errorcode){ 
    111111        header('HTTP/1.1 '.$errorcode.' '.$this->statusTexts[$errorcode]); 
    112112    } 
    113113 
    114     function sendRedirect(String $location){ 
     114    function sendRedirect($location){ 
    115115        if (preg_match("/(" . preg_quote(SITE_URL, '/') 
    116116                          . "|" . preg_quote(SSL_URL, '/') . ")/", $location)) { 
     
    133133    } 
    134134 
    135     function reload(Array $queryString = array(), $removeQueryString = false) { 
     135    function reload($queryString = array(), $removeQueryString = false) { 
    136136        // 現在の URL を取得 
    137137        $netURL = new Net_URL($_SERVER['REQUEST_URI']); 
     
    152152    } 
    153153 
    154     function setHeader(Array $headers){ 
     154    function setHeader($headers){ 
    155155        $this->header = $headers; 
    156156    } 
    157157 
    158     function setStatus( $sc = 202){ 
     158    function setStatus($sc = 202){ 
    159159        $this->statuscode = $sc; 
    160160    } 
  • branches/version-2_5-dev/data/class/pages/products/LC_Page_Products_List.php

    r19670 r19675  
    439439        } 
    440440        // 取得範囲の指定(開始行番号、行数のセット) 
    441         $objQuery->setLimitOffset($this->disp_number, $startno) 
    442                  ->setWhere($where); 
     441        $objQuery->setLimitOffset($this->disp_number, $startno); 
     442        $objQuery->setWhere($where); 
    443443 
    444444         // 表示すべきIDとそのIDの並び順を一気に取得 
  • branches/version-2_5-dev/data/class/util/SC_Utils.php

    r19670 r19675  
    22472247     */ 
    22482248    function sfPutPluginsXml($pluginsXml) { 
    2249         if (!($pluginsXml instanceof SimpleXMLElement)) SC_Utils_Ex::sfDispException(); 
     2249        if (version_compare(PHP_VERSION, '5.0.0', '>')) { 
     2250           return; 
     2251        } 
    22502252 
    22512253        $xml = $pluginsXml->asXML(); 
     
    22542256        $return = file_put_contents(PLUGIN_PATH . 'plugins.xml', $pluginsXml->asXML()); 
    22552257        if ($return === false) SC_Utils_Ex::sfDispException(); 
    2256  
    22572258        return $return; 
    22582259    } 
  • branches/version-2_5-dev/data/module/MDB2/Driver/pgsql.php

    r18754 r19675  
    930930                        $pgtypes[] = $this->datatype->mapPrepareDatatype($types[$parameter]); 
    931931                    } else { 
    932                         $pgtypes[] = 'text'; 
     932                        if (version_compare(PHP_VERSION, '5.0.0', '>')) { 
     933                            $pgtypes[] = 'text'; 
     934                        } 
    933935                    } 
    934936                } 
  • branches/version-2_5-dev/html/install/index.php

    r19670 r19675  
    798798    $options['debug'] = PEAR_DB_DEBUG; 
    799799    $objDB = MDB2::connect($dsn, $options); 
    800     $objDB->loadModule('Manager'); 
     800    $objManager =& $objDB->loadModule('Manager'); 
    801801 
    802802    // 接続エラー 
    803803    if (!PEAR::isError($objDB)) { 
    804804 
    805         $exists = $objDB->listSequences(); 
     805        $exists = $objManager->listSequences(); 
    806806        foreach ($arrSequences as $seq) { 
    807807            $seq_name = $seq[0] . "_" . $seq[1]; 
    808808            if (in_array($seq_name, $exists)) { 
    809                 $result = $objDB->dropSequence($seq_name); 
     809                $result = $objManager->dropSequence($seq_name); 
    810810                if (PEAR::isError($result)) { 
    811811                    $arrErr['all'] = ">> " . $result->message . "<br />"; 
     
    836836    $options['debug'] = PEAR_DB_DEBUG; 
    837837    $objDB = MDB2::connect($dsn, $options); 
    838     $objDB->loadModule('Manager'); 
     838    $objManager =& $objDB->loadModule('Manager'); 
    839839 
    840840    // 接続エラー 
    841841    if (!PEAR::isError($objDB)) { 
    842842 
    843         $exists = $objDB->listSequences(); 
     843        $exists = $objManager->listSequences(); 
    844844        foreach ($arrSequences as $seq) { 
    845845            $res = $objDB->query("SELECT max(" . $seq[1] . ") FROM ". $seq[0]); 
     
    852852 
    853853            $seq_name = $seq[0] . "_" . $seq[1]; 
    854             $result = $objDB->createSequence($seq_name, $max + 1); 
     854            $result = $objManager->createSequence($seq_name, $max + 1); 
    855855            if (PEAR::isError($result)) { 
    856856                $arrErr['all'] = ">> " . $result->message . "<br />"; 
  • branches/version-2_5-dev/html/install/sql/create_table_mysql.sql

    r19671 r19675  
    12521252CREATE TABLE dtb_plugin ( 
    12531253  plugin_id INT NOT NULL, 
    1254   plugin_name VARCHAR(255) NOT NULL DEFAULT "", 
     1254  plugin_name VARCHAR(255) NOT NULL DEFAULT '', 
    12551255  enable INT NOT NULL DEFAULT 0, 
    12561256  del_flg INT NOT NULL DEFAULT 0, 
    1257   class_name VARCHAR(255) NOT NULL DEFAULT NULL, 
     1257  class_name VARCHAR(255) NOT NULL DEFAULT '', 
    12581258  create_date DATETIME NOT NULL, 
    12591259  update_date DATETIME NOT NULL, 
Note: See TracChangeset for help on using the changeset viewer.