BlueForm.php 741 Bytes
Newer Older
Marcello Pivanti's avatar
Marcello Pivanti committed
1
<?php
Aster's avatar
Aster committed
2

Marcello Pivanti's avatar
Marcello Pivanti committed
3
4
5
6
7
8
9
10
namespace app\models;

use yii\base\Model;
use yii\helpers\Html;

/**
 * ContactForm is the model behind the contact form.
 */
Aster's avatar
Aster committed
11
class BlueForm extends Model implements \elitedivision\amos\wizflow\WizflowModelInterface
Marcello Pivanti's avatar
Marcello Pivanti committed
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{
    public $blueStuff;
    public $status;

    /**
     * @return array the validation rules.
     */
    public function rules()
    {
        return [
            [['blueStuff'], 'required'],
        ];
    }

    public function summary()
    {
        return 'blue like : ' . Html::encode($this->blueStuff);
    }

    /**
     * @return array customized attribute labels
     */
    public function attributeLabels()
    {
        return [
            'greenStuff' => 'name somthing blue',
        ];
    }
}