| @@ 7-23 (lines=17) @@ | ||
| 4 | ||
| 5 | use Yii; |
|
| 6 | ||
| 7 | class BackupResourceDecorator extends AbstractServerResourceDecorator |
|
| 8 | { |
|
| 9 | public function displayTitle() |
|
| 10 | { |
|
| 11 | return Yii::t('hipanel/server/order', 'Backup usage'); |
|
| 12 | } |
|
| 13 | ||
| 14 | public function displayUnit() |
|
| 15 | { |
|
| 16 | return Yii::t('hipanel', 'GB'); |
|
| 17 | } |
|
| 18 | ||
| 19 | public function displayValue() |
|
| 20 | { |
|
| 21 | return Yii::t('yii', '{nFormatted} GB', ['nFormatted' => $this->getPrepaidQuantity()]); |
|
| 22 | } |
|
| 23 | } |
|
| 24 | ||
| @@ 7-23 (lines=17) @@ | ||
| 4 | ||
| 5 | use Yii; |
|
| 6 | ||
| 7 | class TrafficResourceDecorator extends AbstractServerResourceDecorator |
|
| 8 | { |
|
| 9 | public function displayTitle() |
|
| 10 | { |
|
| 11 | return Yii::t('hipanel/server/order', 'Traffic'); |
|
| 12 | } |
|
| 13 | ||
| 14 | public function displayValue() |
|
| 15 | { |
|
| 16 | return Yii::t('yii', '{nFormatted} GB', ['nFormatted' => $this->getPrepaidQuantity()]); |
|
| 17 | } |
|
| 18 | ||
| 19 | public function displayUnit() |
|
| 20 | { |
|
| 21 | return Yii::t('hipanel', 'GB'); |
|
| 22 | } |
|
| 23 | } |
|
| 24 | ||