Webylon 3.1 API Docs
  • Package
  • Class
  • Tree
  • Deprecated
  • Download
Version: current
  • 3.2
  • 3.1

Packages

  • auth
  • Booking
  • cart
    • shipping
    • steppedcheckout
  • Catalog
  • cms
    • assets
    • batchaction
    • batchactions
    • bulkloading
    • comments
    • content
    • core
    • export
    • newsletter
    • publishers
    • reports
    • security
    • tasks
  • Dashboard
  • DataObjectManager
  • event
  • faq
  • forms
    • actions
    • core
    • fields-basic
    • fields-dataless
    • fields-datetime
    • fields-files
    • fields-formatted
    • fields-formattedinput
    • fields-relational
    • fields-structural
    • transformations
    • validators
  • googlesitemaps
  • guestbook
  • installer
  • newsletter
  • None
  • photo
    • gallery
  • PHP
  • polls
  • recaptcha
  • sapphire
    • api
    • bulkloading
    • control
    • core
    • cron
    • dev
    • email
    • fields-formattedinput
    • filesystem
    • formatters
    • forms
    • i18n
    • integration
    • misc
    • model
    • parsers
    • search
    • security
    • tasks
    • testing
    • tools
    • validation
    • view
    • widgets
  • seo
    • open
      • graph
  • sfDateTimePlugin
  • spamprotection
  • stealth
    • captha
  • subsites
  • userform
    • pagetypes
  • userforms
  • webylon
  • widgets

Classes

  • AddressBookProfilePageExtension
  • ContactFormAddressExtension
  • CostTableShippingMethod
  • FixedShippingMethod
  • ProductShippingDecorator
  • RegionRestriction
  • RestrictionRegionCountryDropdownField
  • ShippingMemberDecorator
  • ShippingMethod
  • ShippingMethodAdmin
  • ShippingOrderDecorator
  • ShippingSiteConfig
  • TableShippingMethod
  • WeightTableShippingMethod

Class ShippingOrderDecorator

Декоратор заказа для оформления доставки

Extension
Extended by DataObjectDecorator
Extended by ShippingOrderDecorator
Package: cart\shipping
Author: menedem
Located at cart_shipping/code/ShippingOrderDecorator.php

Methods summary

public array
# extraStatics( )

Define extra database fields

Define extra database fields

Return a map where the keys are db, has_one, etc, and the values are additional fields/relations to be defined.

Returns

array
Returns a map where the keys are db, has_one, etc, and the values are additional fields/relations to be defined.

Overrides

DataObjectDecorator::extraStatics
public
# updateCMSFields( FieldSet & $fields )

This function is used to provide modifications to the form in the CMS by the decorator. By default, no changes are made. DataObject->getCMSFields().

This function is used to provide modifications to the form in the CMS by the decorator. By default, no changes are made. DataObject->getCMSFields().

Please consider using updateFormFields() to globally add formfields to the record. The method ShippingOrderDecorator::updateCMSFields() should just be used to add or modify tabs, or fields which are specific to the CMS-context.

Caution: Use FieldSet->addFieldToTab() to add fields.

Parameters

$fields
FieldSet $fields FieldSet with a contained TabSet

Overrides

DataObjectDecorator::updateCMSFields
public ShippingPackage
# createShippingPackage( )

???

???

Returns

ShippingPackage
ShippingPackage
public Address|null
# getShippingAddress( )

???

???

Returns

Address|null
Address|null
public DataObjectSet
# getShippingEstimates( )

???

???

Returns

DataObjectSet
DataObjectSet
public float
# Sum( string $field )

Пробегается по всем позициям заказа и суммирует по ним указанное поле

Пробегается по всем позициям заказа и суммирует по ним указанное поле

Parameters

$field
string $field - имя поля для суммирования

Returns

float
- сумма значений поля $field с учетом кол-ва позиций в заказе
public
# updateGrandTotal( mixed & $grandTotal )
public
# onBeforeWrite( )

Overrides

DataObjectDecorator::onBeforeWrite

Methods inherited from DataObjectDecorator

augmentDatabase(), augmentSQL(), augmentWrite(), can(), canCreate(), canDelete(), canEdit(), flushCache(), load_extra_statics(), onAfterDelete(), onAfterWrite(), onBeforeDelete(), populateDefaults(), requireDefaultRecords(), updateCMSActions(), updateFieldLabels(), updateFrontEndFields(), updateSummaryFields()

Methods inherited from Extension

__construct(), clearOwner(), getOwner(), get_classname_without_arguments(), setOwner()

Magic methods summary

Properties summary

protected boolean $cachedEstimates
#

Properties inherited from DataObjectDecorator

$decoratable_statics

Properties inherited from Extension

$allowed_actions, $class, $owner, $ownerBaseClass

[Raise a SilverStripe Framework issue/bug](https://github.com/silverstripe/silverstripe-framework/issues/new)
- [Raise a SilverStripe CMS issue/bug](https://github.com/silverstripe/silverstripe-cms/issues/new)
- Please use the Silverstripe Forums to ask development related questions. -
Webylon 3.1 API Docs API documentation generated by ApiGen 2.8.0