1 | <?php |
||
23 | class DynamicModel extends \yii\base\DynamicModel |
||
24 | { |
||
25 | /** |
||
26 | * @var array An array with key value pairing where key is the attribute and value the label. |
||
27 | * @since 1.0.15 |
||
28 | */ |
||
29 | public $attributeHints = []; |
||
30 | |||
31 | /** |
||
32 | * @var array Assignable attributes by array where key is the label key value the label for the key. |
||
33 | */ |
||
34 | public $attributeLabels = []; |
||
35 | |||
36 | /** |
||
37 | * {@inheritDoc} |
||
38 | */ |
||
39 | public function attributeLabels() |
||
40 | { |
||
41 | $labels = []; |
||
42 | foreach ($this->attributeLabels as $key => $value) { |
||
43 | $labels[$key] = Yii::t('app', $value); |
||
44 | } |
||
45 | |||
46 | return $labels; |
||
47 | } |
||
48 | |||
49 | /** |
||
50 | * {@inheritDoc} |
||
51 | */ |
||
52 | public function attributeHints() |
||
61 | } |
||
62 |