class Order extends AbstractEntity

Order

Methods

offsetExists($offset)

No description

offsetSet($offset, $value)

No description

offsetGet($offset)

No description

offsetUnset($offset)

No description

setPropertiesFromArray(array $arrProps, array $excludeAttribute = array(), ReflectionClass $parentClass = null)

引数の連想配列を元にプロパティを設定します.

array
toArray(array $excludeAttribute = array(), ReflectionClass $parentClass = null)

プロパティの値を連想配列で返します.

object
copyProperties(object $srcObject, array $excludeAttribute = array())

コピー元のオブジェクトのフィールド名を指定して、同名のフィールドに値をコピー

boolean
isMultiple()

isMultiple

boolean
isPriceChange()

isPriceChange

Shipping|null
findShipping(integer $shippingId)

対象となるお届け先情報を取得

integer
calculateTotalQuantity()

Calculate quantity of total.

integer
calculateSubTotal()

Calculate SubTotal.

integer
calculateTotalTax()

Calculate tax of total.

getProductTypes()

この注文の保持する商品種別を取得します.

string
getTotalPrice()

合計金額を計算

__construct(OrderStatus $orderStatus = null)

Constructor

integer
getId()

Get id

setPreOrderId(string $preOrderId)

Set preorderid

string
getPreOrderId()

Get preorderid

setMessage(string $message)

Set message

string
getMessage()

Get message

setName01(string $name01)

Set name01

string
getName01()

Get name01

setName02(string $name02)

Set name02

string
getName02()

Get name02

setKana01(string $kana01)

Set kana01

string
getKana01()

Get kana01

setKana02(string $kana02)

Set kana02

string
getKana02()

Get kana02

setCompanyName(string $companyName)

Set company_name

string
getCompanyName()

Get company_name

setEmail(string $email)

Set email

string
getEmail()

Get email

setTel01(string $tel01)

Set tel01

string
getTel01()

Get tel01

setTel02(string $tel02)

Set tel02

string
getTel02()

Get tel02

setTel03(string $tel03)

Set tel03

string
getTel03()

Get tel03

setFax01(string $fax01)

Set fax01

string
getFax01()

Get fax01

setFax02(string $fax02)

Set fax02

string
getFax02()

Get fax02

setFax03(string $fax03)

Set fax03

string
getFax03()

Get fax03

setZip01(string $zip01)

Set zip01

string
getZip01()

Get zip01

setZip02(string $zip02)

Set zip02

string
getZip02()

Get zip02

setZipcode(string $zipcode)

Set zipcode

string
getZipcode()

Get zipcode

setAddr01(string $addr01)

Set addr01

string
getAddr01()

Get addr01

setAddr02(string $addr02)

Set addr02

string
getAddr02()

Get addr02

setBirth(DateTime $birth)

Set birth

getBirth()

Get birth

setSubtotal(string $subtotal)

Set subtotal

string
getSubtotal()

Get subtotal

setDiscount(string $discount)

Set discount

string
getDiscount()

Get discount

setDeliveryFeeTotal(string $deliveryFeeTotal)

Set deliveryfeetotal

string
getDeliveryFeeTotal()

Get deliveryfeetotal

setCharge(string $charge)

Set charge

string
getCharge()

Get charge

setTax(string $tax)

Set tax

string
getTax()

Get tax

setTotal(string $total)

Set total

string
getTotal()

Get total

setPaymentTotal(string $paymentTotal)

Set payment_total

string
getPaymentTotal()

Get payment_total

setPaymentMethod(string $paymentMethod)

Set payment_method

string
getPaymentMethod()

Get payment_method

setNote(string $note)

Set note

string
getNote()

Get note

setCreateDate(DateTime $createDate)

Set create_date

getCreateDate()

Get create_date

setUpdateDate(DateTime $updateDate)

Set update_date

getUpdateDate()

Get update_date

setOrderDate(DateTime $orderDate)

Set order_date

getOrderDate()

Get order_date

setCommitDate(DateTime $commitDate)

Set commit_date

getCommitDate()

Get commit_date

setPaymentDate(DateTime $paymentDate)

Set payment_date

getPaymentDate()

Get payment_date

setDelFlg(integer $delFlg)

Set del_flg

integer
getDelFlg()

Get del_flg

addOrderDetail(OrderDetail $orderDetails)

Add OrderDetails

removeOrderDetail(OrderDetail $orderDetails)

Remove OrderDetails

Collection
getOrderDetails()

Get OrderDetails

addShipping(Shipping $shippings)

Add Shippings

removeShipping(Shipping $shippings)

Remove Shippings

Collection
getShippings()

Get Shippings

addMailHistory(MailHistory $mailHistories)

Add MailHistories

removeMailHistory(MailHistory $mailHistories)

Remove MailHistories

Collection
getMailHistories()

Get MailHistories

setCustomer(Customer $customer = null)

Set Customer

getCustomer()

Get Customer

setCountry(Country $country = null)

Set Country

getCountry()

Get Country

setPref(Pref $pref = null)

Set Pref

getPref()

Get Pref

setSex(Sex $sex = null)

Set Sex

Sex
getSex()

Get Sex

setJob(Job $job = null)

Set Job

Job
getJob()

Get Job

setPayment(Payment $payment = null)

Set Payment

getPayment()

Get Payment

setDeviceType(DeviceType $deviceType = null)

Set DeviceType

getDeviceType()

Get DeviceType

setCustomerOrderStatus(CustomerOrderStatus $customerOrderStatus = null)

Set CustomerOrderStatus

getCustomerOrderStatus()

Get CustomerOrderStatus

setOrderStatus(OrderStatus $orderStatus = null)

Set OrderStatus

getOrderStatus()

Get OrderStatus

setOrderStatusColor(OrderStatusColor $orderStatusColor = null)

Set OrderStatusColor

getOrderStatusColor()

Get OrderStatusColor

Details

in AbstractEntity at line 32
offsetExists($offset)

Parameters

$offset

in AbstractEntity at line 39
offsetSet($offset, $value)

Parameters

$offset
$value

in AbstractEntity at line 43
offsetGet($offset)

Parameters

$offset

in AbstractEntity at line 54
offsetUnset($offset)

Parameters

$offset

in AbstractEntity at line 66
setPropertiesFromArray(array $arrProps, array $excludeAttribute = array(), ReflectionClass $parentClass = null)

引数の連想配列を元にプロパティを設定します.

DBから取り出した連想配列を, プロパティへ設定する際に使用します.

Parameters

array $arrProps
array $excludeAttribute
ReflectionClass $parentClass

in AbstractEntity at line 99
array toArray(array $excludeAttribute = array(), ReflectionClass $parentClass = null)

プロパティの値を連想配列で返します.

DBを更新する場合などで, 連想配列の値を取得したい場合に使用します.

Parameters

array $excludeAttribute
ReflectionClass $parentClass

Return Value

array 連想配列のプロパティの値

in AbstractEntity at line 139
object copyProperties(object $srcObject, array $excludeAttribute = array())

コピー元のオブジェクトのフィールド名を指定して、同名のフィールドに値をコピー

Parameters

object $srcObject コピー元のオブジェクト
array $excludeAttribute 除外したいフィールド名の配列

Return Value

object

at line 40
boolean isMultiple()

isMultiple

Return Value

boolean

at line 50
boolean isPriceChange()

isPriceChange

Return Value

boolean

at line 67
Shipping|null findShipping(integer $shippingId)

対象となるお届け先情報を取得

Parameters

integer $shippingId

Return Value

Shipping|null

at line 83
integer calculateTotalQuantity()

Calculate quantity of total.

Return Value

integer

at line 98
integer calculateSubTotal()

Calculate SubTotal.

Return Value

integer

at line 113
integer calculateTotalTax()

Calculate tax of total.

Return Value

integer

at line 128
ProductType[] getProductTypes()

この注文の保持する商品種別を取得します.

Return Value

ProductType[] 一意な商品種別の配列

at line 146
string getTotalPrice()

合計金額を計算

Return Value

string

at line 401
__construct(OrderStatus $orderStatus = null)

Constructor

Parameters

OrderStatus $orderStatus

at line 423
integer getId()

Get id

Return Value

integer

at line 434
Order setPreOrderId(string $preOrderId)

Set preorderid

Parameters

string $preOrderId

Return Value

Order

at line 446
string getPreOrderId()

Get preorderid

Return Value

string

at line 457
Order setMessage(string $message)

Set message

Parameters

string $message

Return Value

Order

at line 469
string getMessage()

Get message

Return Value

string

at line 480
Order setName01(string $name01)

Set name01

Parameters

string $name01

Return Value

Order

at line 492
string getName01()

Get name01

Return Value

string

at line 503
Order setName02(string $name02)

Set name02

Parameters

string $name02

Return Value

Order

at line 515
string getName02()

Get name02

Return Value

string

at line 526
Order setKana01(string $kana01)

Set kana01

Parameters

string $kana01

Return Value

Order

at line 538
string getKana01()

Get kana01

Return Value

string

at line 549
Order setKana02(string $kana02)

Set kana02

Parameters

string $kana02

Return Value

Order

at line 561
string getKana02()

Get kana02

Return Value

string

at line 572
Order setCompanyName(string $companyName)

Set company_name

Parameters

string $companyName

Return Value

Order

at line 584
string getCompanyName()

Get company_name

Return Value

string

at line 595
Order setEmail(string $email)

Set email

Parameters

string $email

Return Value

Order

at line 607
string getEmail()

Get email

Return Value

string

at line 618
Order setTel01(string $tel01)

Set tel01

Parameters

string $tel01

Return Value

Order

at line 630
string getTel01()

Get tel01

Return Value

string

at line 641
Order setTel02(string $tel02)

Set tel02

Parameters

string $tel02

Return Value

Order

at line 653
string getTel02()

Get tel02

Return Value

string

at line 664
Order setTel03(string $tel03)

Set tel03

Parameters

string $tel03

Return Value

Order

at line 676
string getTel03()

Get tel03

Return Value

string

at line 687
Order setFax01(string $fax01)

Set fax01

Parameters

string $fax01

Return Value

Order

at line 699
string getFax01()

Get fax01

Return Value

string

at line 710
Order setFax02(string $fax02)

Set fax02

Parameters

string $fax02

Return Value

Order

at line 722
string getFax02()

Get fax02

Return Value

string

at line 733
Order setFax03(string $fax03)

Set fax03

Parameters

string $fax03

Return Value

Order

at line 745
string getFax03()

Get fax03

Return Value

string

at line 756
Order setZip01(string $zip01)

Set zip01

Parameters

string $zip01

Return Value

Order

at line 768
string getZip01()

Get zip01

Return Value

string

at line 779
Order setZip02(string $zip02)

Set zip02

Parameters

string $zip02

Return Value

Order

at line 791
string getZip02()

Get zip02

Return Value

string

at line 802
Order setZipcode(string $zipcode)

Set zipcode

Parameters

string $zipcode

Return Value

Order

at line 814
string getZipcode()

Get zipcode

Return Value

string

at line 825
Order setAddr01(string $addr01)

Set addr01

Parameters

string $addr01

Return Value

Order

at line 837
string getAddr01()

Get addr01

Return Value

string

at line 848
Order setAddr02(string $addr02)

Set addr02

Parameters

string $addr02

Return Value

Order

at line 860
string getAddr02()

Get addr02

Return Value

string

at line 871
Order setBirth(DateTime $birth)

Set birth

Parameters

DateTime $birth

Return Value

Order

at line 883
DateTime getBirth()

Get birth

Return Value

DateTime

at line 894
Order setSubtotal(string $subtotal)

Set subtotal

Parameters

string $subtotal

Return Value

Order

at line 906
string getSubtotal()

Get subtotal

Return Value

string

at line 917
Order setDiscount(string $discount)

Set discount

Parameters

string $discount

Return Value

Order

at line 929
string getDiscount()

Get discount

Return Value

string

at line 940
Order setDeliveryFeeTotal(string $deliveryFeeTotal)

Set deliveryfeetotal

Parameters

string $deliveryFeeTotal

Return Value

Order

at line 952
string getDeliveryFeeTotal()

Get deliveryfeetotal

Return Value

string

at line 963
Order setCharge(string $charge)

Set charge

Parameters

string $charge

Return Value

Order

at line 975
string getCharge()

Get charge

Return Value

string

at line 986
Order setTax(string $tax)

Set tax

Parameters

string $tax

Return Value

Order

at line 998
string getTax()

Get tax

Return Value

string

at line 1009
Order setTotal(string $total)

Set total

Parameters

string $total

Return Value

Order

at line 1021
string getTotal()

Get total

Return Value

string

at line 1032
Order setPaymentTotal(string $paymentTotal)

Set payment_total

Parameters

string $paymentTotal

Return Value

Order

at line 1044
string getPaymentTotal()

Get payment_total

Return Value

string

at line 1055
Order setPaymentMethod(string $paymentMethod)

Set payment_method

Parameters

string $paymentMethod

Return Value

Order

at line 1067
string getPaymentMethod()

Get payment_method

Return Value

string

at line 1078
Order setNote(string $note)

Set note

Parameters

string $note

Return Value

Order

at line 1090
string getNote()

Get note

Return Value

string

at line 1101
Order setCreateDate(DateTime $createDate)

Set create_date

Parameters

DateTime $createDate

Return Value

Order

at line 1113
DateTime getCreateDate()

Get create_date

Return Value

DateTime

at line 1124
Order setUpdateDate(DateTime $updateDate)

Set update_date

Parameters

DateTime $updateDate

Return Value

Order

at line 1136
DateTime getUpdateDate()

Get update_date

Return Value

DateTime

at line 1147
Order setOrderDate(DateTime $orderDate)

Set order_date

Parameters

DateTime $orderDate

Return Value

Order

at line 1159
DateTime getOrderDate()

Get order_date

Return Value

DateTime

at line 1170
Order setCommitDate(DateTime $commitDate)

Set commit_date

Parameters

DateTime $commitDate

Return Value

Order

at line 1182
DateTime getCommitDate()

Get commit_date

Return Value

DateTime

at line 1193
Order setPaymentDate(DateTime $paymentDate)

Set payment_date

Parameters

DateTime $paymentDate

Return Value

Order

at line 1205
DateTime getPaymentDate()

Get payment_date

Return Value

DateTime

at line 1216
Order setDelFlg(integer $delFlg)

Set del_flg

Parameters

integer $delFlg

Return Value

Order

at line 1228
integer getDelFlg()

Get del_flg

Return Value

integer

at line 1239
Order addOrderDetail(OrderDetail $orderDetails)

Add OrderDetails

Parameters

OrderDetail $orderDetails

Return Value

Order

at line 1251
removeOrderDetail(OrderDetail $orderDetails)

Remove OrderDetails

Parameters

OrderDetail $orderDetails

at line 1261
Collection getOrderDetails()

Get OrderDetails

Return Value

Collection

at line 1272
Order addShipping(Shipping $shippings)

Add Shippings

Parameters

Shipping $shippings

Return Value

Order

at line 1284
removeShipping(Shipping $shippings)

Remove Shippings

Parameters

Shipping $shippings

at line 1294
Collection getShippings()

Get Shippings

Return Value

Collection

at line 1305
Order addMailHistory(MailHistory $mailHistories)

Add MailHistories

Parameters

MailHistory $mailHistories

Return Value

Order

at line 1317
removeMailHistory(MailHistory $mailHistories)

Remove MailHistories

Parameters

MailHistory $mailHistories

at line 1327
Collection getMailHistories()

Get MailHistories

Return Value

Collection

at line 1338
Order setCustomer(Customer $customer = null)

Set Customer

Parameters

Customer $customer

Return Value

Order

at line 1350
Customer getCustomer()

Get Customer

Return Value

Customer

at line 1364
Order setCountry(Country $country = null)

Set Country

Parameters

Country $country

Return Value

Order

at line 1376
Country getCountry()

Get Country

Return Value

Country

at line 1387
Order setPref(Pref $pref = null)

Set Pref

Parameters

Pref $pref

Return Value

Order

at line 1399
Pref getPref()

Get Pref

Return Value

Pref

at line 1410
Order setSex(Sex $sex = null)

Set Sex

Parameters

Sex $sex

Return Value

Order

at line 1422
Sex getSex()

Get Sex

Return Value

Sex

at line 1433
Order setJob(Job $job = null)

Set Job

Parameters

Job $job

Return Value

Order

at line 1445
Job getJob()

Get Job

Return Value

Job

at line 1456
Order setPayment(Payment $payment = null)

Set Payment

Parameters

Payment $payment

Return Value

Order

at line 1468
Payment getPayment()

Get Payment

Return Value

Payment

at line 1482
Order setDeviceType(DeviceType $deviceType = null)

Set DeviceType

Parameters

DeviceType $deviceType

Return Value

Order

at line 1494
DeviceType getDeviceType()

Get DeviceType

Return Value

DeviceType

at line 1505
Order setCustomerOrderStatus(CustomerOrderStatus $customerOrderStatus = null)

Set CustomerOrderStatus

Parameters

CustomerOrderStatus $customerOrderStatus

Return Value

Order

at line 1517
CustomerOrderStatus getCustomerOrderStatus()

Get CustomerOrderStatus

Return Value

CustomerOrderStatus

at line 1528
Order setOrderStatus(OrderStatus $orderStatus = null)

Set OrderStatus

Parameters

OrderStatus $orderStatus

Return Value

Order

at line 1540
OrderStatus getOrderStatus()

Get OrderStatus

Return Value

OrderStatus

at line 1551
Order setOrderStatusColor(OrderStatusColor $orderStatusColor = null)

Set OrderStatusColor

Parameters

OrderStatusColor $orderStatusColor

Return Value

Order

at line 1563
OrderStatusColor getOrderStatusColor()

Get OrderStatusColor

Return Value

OrderStatusColor