Total Complexity | 3 |
Total Lines | 28 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | class Account extends \app\models\Account |
||
14 | { |
||
15 | const SCENARIO_UPDATE = 'update'; |
||
16 | |||
17 | public $s_categories; |
||
18 | |||
19 | public function scenarios() |
||
20 | { |
||
21 | $scenarios = parent::scenarios(); |
||
22 | $scenarios[self::SCENARIO_UPDATE] = [ |
||
23 | 'name', |
||
24 | 'is_valid', |
||
25 | ]; |
||
26 | |||
27 | return $scenarios; |
||
28 | } |
||
29 | |||
30 | public function attributeLabels() |
||
31 | { |
||
32 | return ArrayHelper::merge(parent::attributeLabels(), [ |
||
33 | 's_categories' => 'Categories', |
||
34 | 'is_valid' => 'Is Valid - an exclamation triangle in the list of accounts, is set automatically if the account is not reachable. Check this option if you are sure that this account is valid and want to try to refresh stats again.', |
||
35 | ]); |
||
36 | } |
||
37 | |||
38 | public function getAccountStats() |
||
41 | } |
||
42 | } |