Changeset 19675
- Timestamp:
- 2010/11/18 20:37:07 (16 years ago)
- 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
- Location:
- branches/version-2_5-dev
- Files:
-
- 1 added
- 9 edited
-
data/class/SC_CartSession.php (modified) (1 diff)
-
data/class/SC_Display.php (modified) (3 diffs)
-
data/class/SC_Query.php (modified) (7 diffs)
-
data/class/SC_Response.php (modified) (3 diffs)
-
data/class/pages/products/LC_Page_Products_List.php (modified) (1 diff)
-
data/class/util/SC_Utils.php (modified) (2 diffs)
-
data/module/MDB2/Driver/pgsql.php (modified) (1 diff)
-
html/install/index.php (modified) (3 diffs)
-
html/install/sql/create_table_mysql.sql (modified) (1 diff)
-
patches/MDB2_Driver_pgsql.php.patch (added)
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_5-dev/data/class/SC_CartSession.php
r19670 r19675 480 480 * @return array カートの計算結果の配列 481 481 */ 482 function calculate($productTypeId, &$objCustomer = null, $use_point = 0,482 function calculate($productTypeId, &$objCustomer, $use_point = 0, 483 483 $deliv_pref = "", $payment_id = "", $charge = 0, $discount = 0) { 484 484 $objDb = new SC_Helper_DB_Ex(); -
branches/version-2_5-dev/data/class/SC_Display.php
r19670 r19675 45 45 * @param $page LC_Page 46 46 */ 47 function hoge( LC_Page$page, $is_admin = false){47 function hoge($page, $is_admin = false){ 48 48 if(!$this->deviceSeted || !is_null($this->view)){ 49 49 $device = ($is_admin) ? 8 : $this->detectDevice(); … … 66 66 } 67 67 68 function addHeader( String $name,String$value){68 function addHeader($name, $value){ 69 69 $this->response->addHeader($name, $value); 70 70 } … … 93 93 } 94 94 95 function setView( SC_View$view){95 function setView($view){ 96 96 97 97 $this->view = $view; -
branches/version-2_5-dev/data/class/SC_Query.php
r19670 r19675 658 658 */ 659 659 function setVal($seq_name, $start) { 660 $ this->conn->loadModule('Manager');660 $objManager =& $this->conn->loadModule('Manager'); 661 661 // 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); 664 664 } 665 665 … … 696 696 */ 697 697 function listSequences() { 698 $ this->conn->loadModule('Manager');699 return $ this->conn->listSequences();698 $objManager =& $this->conn->loadModule('Manager'); 699 return $objManager->listSequences(); 700 700 } 701 701 … … 706 706 */ 707 707 function listTables() { 708 $ this->conn->loadModule('Manager');709 return $ this->conn->listTables();708 $objManager =& $this->conn->loadModule('Manager'); 709 return $objManager->listTables(); 710 710 } 711 711 … … 717 717 */ 718 718 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); 721 721 } 722 722 … … 728 728 */ 729 729 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); 732 732 } 733 733 … … 740 740 */ 741 741 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); 744 744 } 745 745 … … 751 751 */ 752 752 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); 755 755 } 756 756 -
branches/version-2_5-dev/data/class/SC_Response.php
r19670 r19675 87 87 88 88 89 function setContentType( String$contentType){89 function setContentType($contentType){ 90 90 $this->header['Content-Type'] = $contentType; 91 91 } 92 92 93 function setResposeBody( String$body){93 function setResposeBody($body){ 94 94 $this->body = $body; 95 95 } 96 96 97 /* function addDateHdeader( String$name, $date){97 /* function addDateHdeader($name, $date){ 98 98 * 99 99 * } 100 100 */ 101 101 102 function addHeader( String$name, $value){102 function addHeader($name, $value){ 103 103 $this->header[$name] = $value; 104 104 } 105 105 106 function containsHeader( String$name){106 function containsHeader($name){ 107 107 return isset($this->header[$name]); 108 108 } 109 109 110 function sendError( $errorcode){110 function sendError($errorcode){ 111 111 header('HTTP/1.1 '.$errorcode.' '.$this->statusTexts[$errorcode]); 112 112 } 113 113 114 function sendRedirect( String$location){114 function sendRedirect($location){ 115 115 if (preg_match("/(" . preg_quote(SITE_URL, '/') 116 116 . "|" . preg_quote(SSL_URL, '/') . ")/", $location)) { … … 133 133 } 134 134 135 function reload( Array$queryString = array(), $removeQueryString = false) {135 function reload($queryString = array(), $removeQueryString = false) { 136 136 // 現在の URL を取得 137 137 $netURL = new Net_URL($_SERVER['REQUEST_URI']); … … 152 152 } 153 153 154 function setHeader( Array$headers){154 function setHeader($headers){ 155 155 $this->header = $headers; 156 156 } 157 157 158 function setStatus( $sc = 202){158 function setStatus($sc = 202){ 159 159 $this->statuscode = $sc; 160 160 } -
branches/version-2_5-dev/data/class/pages/products/LC_Page_Products_List.php
r19670 r19675 439 439 } 440 440 // 取得範囲の指定(開始行番号、行数のセット) 441 $objQuery->setLimitOffset($this->disp_number, $startno) 442 ->setWhere($where);441 $objQuery->setLimitOffset($this->disp_number, $startno); 442 $objQuery->setWhere($where); 443 443 444 444 // 表示すべきIDとそのIDの並び順を一気に取得 -
branches/version-2_5-dev/data/class/util/SC_Utils.php
r19670 r19675 2247 2247 */ 2248 2248 function sfPutPluginsXml($pluginsXml) { 2249 if (!($pluginsXml instanceof SimpleXMLElement)) SC_Utils_Ex::sfDispException(); 2249 if (version_compare(PHP_VERSION, '5.0.0', '>')) { 2250 return; 2251 } 2250 2252 2251 2253 $xml = $pluginsXml->asXML(); … … 2254 2256 $return = file_put_contents(PLUGIN_PATH . 'plugins.xml', $pluginsXml->asXML()); 2255 2257 if ($return === false) SC_Utils_Ex::sfDispException(); 2256 2257 2258 return $return; 2258 2259 } -
branches/version-2_5-dev/data/module/MDB2/Driver/pgsql.php
r18754 r19675 930 930 $pgtypes[] = $this->datatype->mapPrepareDatatype($types[$parameter]); 931 931 } else { 932 $pgtypes[] = 'text'; 932 if (version_compare(PHP_VERSION, '5.0.0', '>')) { 933 $pgtypes[] = 'text'; 934 } 933 935 } 934 936 } -
branches/version-2_5-dev/html/install/index.php
r19670 r19675 798 798 $options['debug'] = PEAR_DB_DEBUG; 799 799 $objDB = MDB2::connect($dsn, $options); 800 $obj DB->loadModule('Manager');800 $objManager =& $objDB->loadModule('Manager'); 801 801 802 802 // 接続エラー 803 803 if (!PEAR::isError($objDB)) { 804 804 805 $exists = $obj DB->listSequences();805 $exists = $objManager->listSequences(); 806 806 foreach ($arrSequences as $seq) { 807 807 $seq_name = $seq[0] . "_" . $seq[1]; 808 808 if (in_array($seq_name, $exists)) { 809 $result = $obj DB->dropSequence($seq_name);809 $result = $objManager->dropSequence($seq_name); 810 810 if (PEAR::isError($result)) { 811 811 $arrErr['all'] = ">> " . $result->message . "<br />"; … … 836 836 $options['debug'] = PEAR_DB_DEBUG; 837 837 $objDB = MDB2::connect($dsn, $options); 838 $obj DB->loadModule('Manager');838 $objManager =& $objDB->loadModule('Manager'); 839 839 840 840 // 接続エラー 841 841 if (!PEAR::isError($objDB)) { 842 842 843 $exists = $obj DB->listSequences();843 $exists = $objManager->listSequences(); 844 844 foreach ($arrSequences as $seq) { 845 845 $res = $objDB->query("SELECT max(" . $seq[1] . ") FROM ". $seq[0]); … … 852 852 853 853 $seq_name = $seq[0] . "_" . $seq[1]; 854 $result = $obj DB->createSequence($seq_name, $max + 1);854 $result = $objManager->createSequence($seq_name, $max + 1); 855 855 if (PEAR::isError($result)) { 856 856 $arrErr['all'] = ">> " . $result->message . "<br />"; -
branches/version-2_5-dev/html/install/sql/create_table_mysql.sql
r19671 r19675 1252 1252 CREATE TABLE dtb_plugin ( 1253 1253 plugin_id INT NOT NULL, 1254 plugin_name VARCHAR(255) NOT NULL DEFAULT "",1254 plugin_name VARCHAR(255) NOT NULL DEFAULT '', 1255 1255 enable INT NOT NULL DEFAULT 0, 1256 1256 del_flg INT NOT NULL DEFAULT 0, 1257 class_name VARCHAR(255) NOT NULL DEFAULT NULL,1257 class_name VARCHAR(255) NOT NULL DEFAULT '', 1258 1258 create_date DATETIME NOT NULL, 1259 1259 update_date DATETIME NOT NULL,
Note: See TracChangeset
for help on using the changeset viewer.
