TaxModifier::TableTitle PHP Method

TableTitle() public method

public TableTitle ( )
    public function TableTitle()
    {
        $title = parent::TableTitle();
        if ($this->Rate) {
            $title .= ' ' . _t('TaxModifier.AtRate', '@ {Rate}%', '', array('Rate' => number_format($this->Rate * 100, 1)));
        }
        return $title;
    }

Usage Example

コード例 #1
0
 public function TableTitle()
 {
     $country = $this->Country ? " for " . $this->Country . " " : "";
     return parent::TableTitle() . $country . ($this->Type == "Chargable" ? '' : _t("GlobalTaxModifier.Included", ' (included in the above price)'));
 }
TaxModifier