|
- <?php
-
-
-
- namespace backend\models;
-
- use yii\base\Model;
-
-
- class CreditForm extends Model
- {
- public $id_user ;
- public $id_user_action ;
- public $id_producer ;
- public $type ;
- public $amount ;
- public $mean_payment ;
- public $comment ;
- public $send_mail = 1;
- public $date_transaction;
-
-
-
- public function rules()
- {
- return [
- [['amount'], 'required'],
- [['id_user', 'id_user_action', 'id_producer'], 'integer'],
- [['date', 'send_mail', 'date_transaction'], 'safe'],
- [['amount'], 'double'],
- [['type', 'mean_payment'], 'string', 'max' => 255],
- [['comment'], 'string', 'max' => 2048],
- ];
- }
-
-
-
- public function attributeLabels()
- {
- return [
- 'id_user' => 'Utilisateur',
- 'id_user_action' => 'Utilisateur',
- 'date' => 'Date',
- 'amount' => 'Montant',
- 'type' => 'Type',
- 'id_producer' => 'Producteur',
- 'mean_payment' => 'Moyen de paiement',
- 'comment' => 'Commentaire',
- 'send_mail' => 'Prévenir l\'utilisateur',
- 'date_transaction' => 'Date de transaction'
- ];
- }
- }
|