Overview

Packages

  • akismet
  • None
  • PHP
  • Smarty
    • Cacher
    • Compiler
    • Config
    • Debug
    • plugins
    • PluginsBlock
    • PluginsFilter
    • PluginsFunction
    • PluginsInternal
    • PluginsModifier
    • PluginsModifierCompiler
    • PluginsShared
    • Security
    • Template
    • TemplateResources
  • Swift
    • ByteStream
    • CharacterStream
    • Encoder
    • Events
    • KeyCache
    • Mailer
    • Mime
    • Plugins
    • Signatures
    • Signed
    • Transport
  • wa-apps
    • blog
      • actions
        • backend
        • blog
        • comment
        • cron
        • design
        • frontend
        • page
        • plugin
        • post
      • api
        • v1
      • cli
      • layout
      • model
      • plugin
        • aksimet
        • category
        • emailsubscription
        • favorite
        • gravatar
        • import
        • markdown
        • myposts
        • tag
        • troll
      • settings
    • checklists
      • backend
      • json
    • contacts
      • backend
    • developer
    • dummy
    • guestbook
    • guestbook2
    • photos
      • album
      • api
        • v1
      • backend
      • design
      • dialog
      • frontend
      • page
      • photo
      • plugin
        • comment
        • imageeffects
        • import
        • publicgallery
        • watermark
      • search
      • settings
      • stack
      • tag
      • upload
    • site
      • backend
      • blocks
      • config
      • design
      • domains
      • files
      • frontend
      • helper
      • layout
      • pages
      • routing
      • setting
    • stickies
      • api
        • v1
      • sheet
      • stiky
  • wa-plugin
    • payment
    • shipping
    • sms
  • wa-plugins
    • shipping
      • usps
  • wa-system
    • API
    • Auth
      • Adapters
    • Autoload
    • Cache
      • Adapter
    • Captcha
    • Config
    • Contact
    • controller
    • currency
    • database
    • datetime
    • design
    • event
    • exception
    • files
    • image
    • layout
    • locale
    • log
    • mail
    • page
      • action
      • model
    • payment
    • plugin
    • request
    • response
    • routing
    • shipping
    • sms
    • storage
    • user
    • util
    • validator
    • view
    • webasyst
      • api
      • backend
      • cli
      • config
      • layout
      • login
      • model
      • password
      • payment
      • profile
      • settings
      • shipment
    • widget
    • workflow
  • waPlugins
    • Payment
  • webasyst
    • wa-system
      • helper

Classes

  • uspsLabelsExpressMailQuery
  • uspsLabelsInternationalShippingQuery
  • uspsLabelsQuery
  • uspsLabelsSignatureConfirmationQuery
  • uspsLabelsUspsTrackingQuery
  • uspsQuery
  • uspsRatingsQuery
  • uspsServices
  • uspsShipping
  • uspsTrackingQuery
  • Overview
  • Package
  • Class
  • Tree
  • Deprecated
  • Todo

Class uspsShipping

waSystemPlugin
Extended by waShipping
Extended by uspsShipping
Package: wa-plugins\shipping\usps
Located at wa-plugins/shipping/usps/lib/uspsShipping.class.php
Methods summary
protected
# initControls( )

Overrides

waSystemPlugin::initControls()
public string
# getSettingsHTML( array $params = array() )

Получение массива элементов настроек

Parameters

$params
array
[string]mixed $params

Returns

string

Overrides

waSystemPlugin::getSettingsHTML()
protected
# init( )

Overrides

waShipping::init()
protected array
# correctItems( )

Returns

array
public
# calculate( )

Calculate the shipping cost/costs

Calculate the shipping cost/costs

public string
# tracking( mixed $tracking_id = null )

Returns shipment current tracking info

Returns shipment current tracking info

Parameters

$tracking_id
mixed
$tracking_id

Returns

string
Tracking information (HTML)

Overrides

waShipping::tracking()
private
# executeQuery( mixed $name, mixed $params, mixed $catch = true )
private uspsQuery|string
# getQuery( string $name, array|boolean $params )

Parameters

$name
string
$name
$params
array|boolean
$params if array - create instance of query with params, if true return class name just

Returns

uspsQuery|string

Throws

waException

Internal

param bool $static
public
# getPluginPath( )
public array
# requestedAddressFields( )

Array of required address fields.

Array of required address fields.

Returns

array
В качестве ключа должно быть название поля [country|region|city|street|zip], в качестве значения массив с необязательными параметрами - required => bool переопределяет глобальную настройку - hidden => bool делает поле скрытым - value => string определяет значение поля - cost => bool требуется для расчета доставки

Overrides

waShipping::requestedAddressFields()
public array
# allowedAddress( )

List of allowed address paterns

Returns

array

Overrides

waShipping::allowedAddress()
public string
# allowedCurrency( )

Returns

string
ISO3 currency code or array of ISO3 codes
public string
# allowedWeightUnit( )

Returns

string
Weight units or array of weight units
protected
# getServiceCodeByOrder( waOrder $order )
public array[string]array
# getPrintForms( waOrder $order = null )

Parameters

$order
waOrder
$order

Returns

array[string]array
array[string]['name']string
название печатной формы
array[string]['description']string
описание печатной формы

Overrides

waShipping::getPrintForms()
public
# displayPrintForm( string $id, waOrder $order, array $params = array() )

Displays printable form content (HTML) by id

Parameters

$id
string
$id
$order
waOrder
$order
$params
array
$params

Overrides

waShipping::displayPrintForm()
Methods inherited from waShipping
addItem(), addItems(), customFields(), enumerate(), execCallback(), factory(), flush(), getAdapter(), getAddress(), getCountryISO2Code(), getItems(), getPackageProperty(), getRates(), getTotalPrice(), getTotalWeight(), info(), setAddress(), setItems(), settingCountryControl(), settingCountrySelect(), settingCurrencySelect(), settingRegionZoneControl()
Methods inherited from waSystemPlugin
__construct(), __get(), __isset(), _w(), getDescription(), getId(), getName(), getPath(), getProperties(), getSettings(), getType(), registerControl(), saveSettings(), setSettings()
Constants inherited from waShipping
PLUGIN_TYPE
Properties inherited from waShipping
$app_id
Properties inherited from waSystemPlugin
$id, $key, $path, $type
My fork of Webasyst Framework API documentation generated by ApiGen 2.8.0