SilverCommerce\Postage\Model\PostageType
Postage Types are a base class for creating differnt types of postage.
Custom postage types need to provide their own implementation of `getPossiblePostage`.
This is the method that will be called when trying to determine a list of
possible postage options for the current order.
Synopsis
class PostageType
extends DataObject
{
- // members
- private static string $table_name = 'PostageType';
- private static array $db = ;
- private static array $has_one = ;
- private static array $many_many = ;
- private static array $casting = ;
- private static array $summary_fields = ;
- private static array $field_labels = ;
- // methods
- public void getTitle()
- public string getShortClassName()
- public SSList getPossiblePostage()
- public void requireDefaultRecords()
Hierarchy
Extends
- SilverStripe\ORM\DataObject
Members
private
- $casting
- $db
- $field_labels
- $has_one
- $many_many
- $summary_fields
- $table_name
Methods
public
- getPossiblePostage() — Return a list of possible postage options that can be rendered into the postage form.
- getShortClassName() — Get an unqualified verson of this object's classname
- getTitle()
- requireDefaultRecords() — {@inheritdoc}