Méthode |
Description |
|
afterDelete ( ) |
|
|
afterFind ( ) |
|
|
afterSave ( ) |
|
|
applyCoupons ( array $coupons ) : boolean |
|
|
attributeLabels ( ) : array |
|
|
beforeSave ( ) : boolean |
|
|
beforeValidate ( ) : boolean |
|
|
behaviors ( ) : array |
|
|
checkManager ( IWebUser $user ) : boolean |
|
|
findByNumber ( $number ) : static |
|
|
findByUrl ( $url ) : static |
|
|
getAddress ( ) : string |
|
|
getCouponDiscount ( array $coupons ) : float |
Получает скидку для переданных купонов |
|
getCoupons ( ) : mixed |
|
|
getCouponsCodes ( ) : array |
|
|
getDeliveryCost ( ) : integer | mixed |
|
|
getDeliveryPrice ( ) : float |
|
|
getPaidStatus ( ) : string |
|
|
getPaidStatusList ( ) : array |
|
|
getProducts ( ) : CActiveDataProvider |
|
|
getProductsCost ( ) : float | integer |
|
|
getStatusTitle ( ) : string |
|
|
getTotalPrice ( ) : float |
|
|
getTotalPriceWithDelivery ( ) : float |
|
|
getValidCoupons ( $codes ) : Coupon[] |
Фильтрует переданные коды купонов и возвращает объекты купонов |
|
hasCoupons ( ) : boolean |
|
|
isCouponsAvailable ( ) : boolean |
|
|
isPaid ( ) : boolean |
|
|
isPaymentMethodSelected ( ) : mixed |
|
|
isStatusChanged ( ) : boolean |
|
|
model ( null | string $className = __CLASS__ ) |
|
|
pay ( Payment $payment, integer $paid = self::PAID_STATUS_PAID ) : boolean |
|
|
relations ( ) : array |
|
|
rules ( ) : array |
|
|
scopes ( ) : array |
|
|
search ( ) : CActiveDataProvider |
|
|
searchCoupons ( ) : CActiveDataProvider |
|
|
setProducts ( $orderProducts ) |
Формат массива:
array(
'45' => array( //реальный id или сгенерированный новый, у новых внутри массива нет id
'id' => '10', //если нет id, то новый
'variant_ids' => array('10', '20, '30'), // массив с id вариантов
'quantity' = > '5',
'price' => '1000',
'product_id' => '123',
)
)
|
|
store ( array $attributes, array $products, integer $client = null, integer $status = OrderStatus::STATUS_NEW ) : boolean |
|
|
tableName ( ) : string |
|
|