Browse Source

Refactoring/traduction modèle PointVenteUser > PointSaleUser

refactoring
Guillaume Bourgeois 6 years ago
parent
commit
f8e30bbce7
1 changed files with 20 additions and 6 deletions
  1. +20
    -6
      common/models/PointSaleUser.php

+ 20
- 6
common/models/PointSaleUser.php View File

public function rules() public function rules()
{ {
return [ return [
[['id_point_vente', 'id_user'], 'required'],
[['id_point_vente', 'id_user'], 'integer'],
[['commentaire'], 'string'],
[['id_point_sale', 'id_user'], 'required'],
[['id_point_sale', 'id_user'], 'integer'],
[['comment'], 'string'],
]; ];
} }


public function attributeLabels() public function attributeLabels()
{ {
return [ return [
'id_point_vente' => 'Id Point Vente',
'id_user' => 'Id User',
'commentaire' => 'Commentaire'
'id_point_sale' => 'Point de vente',
'id_user' => 'Utilisateur',
'comment' => 'Commentaire'
]; ];
} }
/**
* Retourne les options de base nécessaires à la fonction de recherche.
*
* @return array
*/
public static function defaultOptionsSearch() {
return [
'with' => [],
'join_with' => [],
'orderby' => '',
'attribute_id_producer' => ''
] ;
}


} }

Loading…
Cancel
Save