|
- <?php
-
-
-
- namespace backend\models;
-
- use common\helpers\GlobalParam;
- use domain\Communication\Email\EmailGenerator;
- use domain\Distribution\Distribution\DistributionModule;
- use Yii;
- use yii\base\Model;
-
-
- class MailForm extends Model
- {
- public $id_distribution ;
- public $subject;
- public $message;
- public $integrate_product_list;
-
-
-
- public function rules()
- {
- return [
- [['subject', 'message'], 'required', 'message' => 'Champs obligatoire'],
- [['integrate_product_list'], 'boolean'],
- [['id_distribution'],'integer']
- ];
- }
-
-
-
- public function attributeLabels()
- {
- return [
- 'subject' => 'Sujet',
- 'message' => 'Message',
- 'id_distribution' => 'Distribution',
- 'integrate_product_list' => 'Intégrer la liste des produits au message'
- ];
- }
- }
|