Changeset 20406


Ignore:
Timestamp:
2011/02/25 13:54:25 (11 years ago)
Author:
nanasess
bzr:base-revision:
svn-v4:1e3b908f-19a9-db11-a64c-001125224ba8:branches/version-2_5-dev:20405
bzr:committer:
Kentaro Ohkouchi <ohkouchi@loop-az.jp>
bzr:file-ids:

test/createEcCubeData-v25.php 19693@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Fversion-2_5-dev%2Ftest%2FcreateEcCubeData-v25.php
bzr:mapping-version:
v4
bzr:merge:

ohkouchi@loop-az.jp-20110225045038-shb49ue0v8b7u94v
bzr:repository-uuid:
1e3b908f-19a9-db11-a64c-001125224ba8
bzr:revision-id:
ohkouchi@loop-az.jp-20110225045412-xwo0plzt8hddpkk3
bzr:revno:
3134
bzr:revprop:branch-nick:
branches/version-2_5-dev
bzr:root:
branches/version-2_5-dev
bzr:text-revisions:

test/createEcCubeData-v25.php ohkouchi@loop-az.jp-20110225045038-shb49ue0v8b7u94v
bzr:timestamp:
2011-02-25 13:54:12.000000000 +0900
bzr:user-agent:
bzr2.2.1+bzr-svn1.0.4
svn:original-date:
2011-02-25T04:54:12.000000Z
Message:

商品データ生成スクリプトの修正

  • 規格1, 2 を正しく出力するよう修正
  • 商品種別ID, ポイント付与率を追加
  • 出力バッファをすべてクリアするよう修正
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_5-dev/test/createEcCubeData-v25.php

    r20116 r20406  
    5454// {{{ Logic 
    5555set_time_limit(0); 
    56 ob_end_flush(); 
     56while (@ob_end_flush()); 
    5757 
    5858$objData = new CreateEcCubeData(); 
     
    210210        // 規格2 
    211211        for ($i = 0; $i < CLASSCATEGORY2_VOLUME; $i++) { 
    212             $this->createClassCategory($this->arrSize[$i], 
     212            $this->createClassCategory($this->arrColor[$i], 
    213213                                       $this->arrclass_id[1], "color"); 
    214214        } 
     
    261261            print("*"); 
    262262        } 
     263        print("\n"); 
    263264    } 
    264265 
     
    338339 
    339340        $sqlval['product_id'] = $product_id; 
     341        $sqlval['product_type_id'] = 1; 
    340342        $sqlval['stock_unlimited'] = 1; 
    341343        $sqlval['price01'] = 1000; 
    342344        $sqlval['price02'] = 2000; 
     345        $sqlval['point_rate'] = 10; 
    343346        $sqlval['creator_id'] = 2; 
    344347        $sqlval['create_date'] = "now()"; 
     
    348351        $count = 0; 
    349352        foreach ($this->arrClassCategory_id1 as $classCategory_id1) { 
    350             $c1['classcategory_id'] = $classCategory_id1; 
    351             $c1['class_combination_id'] = $this->objQuery->nextVal('dtb_class_combination_class_combination_id'); 
    352             $c1['level'] = 1; 
    353             $this->objQuery->insert("dtb_class_combination", $c1); 
    354  
    355353            foreach ($this->arrClassCategory_id2 as $classCategory_id2) { 
     354                $c1['classcategory_id'] = $classCategory_id1; 
     355                $c1['class_combination_id'] = $this->objQuery->nextVal('dtb_class_combination_class_combination_id'); 
     356                $c1['level'] = 1; 
     357                $this->objQuery->insert("dtb_class_combination", $c1); 
     358 
    356359                $c2['classcategory_id'] = $classCategory_id2; 
    357360                $c2['class_combination_id'] = $this->objQuery->nextVal('dtb_class_combination_class_combination_id'); 
Note: See TracChangeset for help on using the changeset viewer.