src/forms/DomainTariffForm.php 1 location
|
@@ 29-37 (lines=9) @@
|
| 26 |
|
*/ |
| 27 |
|
protected $zones; |
| 28 |
|
|
| 29 |
|
public function load($data, $formName = null) |
| 30 |
|
{ |
| 31 |
|
$this->setAttributes($data[$this->formName()]); |
| 32 |
|
$this->setResources($data[(new DomainResource())->formName()]); |
| 33 |
|
|
| 34 |
|
$this->initTariff(); |
| 35 |
|
|
| 36 |
|
return true; |
| 37 |
|
} |
| 38 |
|
|
| 39 |
|
/** |
| 40 |
|
* @return DomainService[] |
src/forms/CertificateTariffForm.php 1 location
|
@@ 32-40 (lines=9) @@
|
| 29 |
|
parent::__construct($config); |
| 30 |
|
} |
| 31 |
|
|
| 32 |
|
public function load($data, $formName = null) |
| 33 |
|
{ |
| 34 |
|
$this->setAttributes($data[$this->formName()]); |
| 35 |
|
$this->setResources($data[(new CertificateResource())->formName()]); |
| 36 |
|
|
| 37 |
|
$this->initTariff(); |
| 38 |
|
|
| 39 |
|
return true; |
| 40 |
|
} |
| 41 |
|
|
| 42 |
|
/** |
| 43 |
|
* @return array |