Browse Source

Héritage de ActiveRecordCommon pour les modèles utilisant les fonctions de recherche searchAll, searchOne etc.

dev
Guillaume Bourgeois 6 years ago
parent
commit
fe5172acd5
11 changed files with 22 additions and 11 deletions
  1. +2
    -1
      common/models/CreditHistory.php
  2. +2
    -1
      common/models/Development.php
  3. +2
    -1
      common/models/DevelopmentPriority.php
  4. +2
    -1
      common/models/Distribution.php
  5. +2
    -1
      common/models/Invoice.php
  6. +2
    -1
      common/models/PointSaleDistribution.php
  7. +2
    -1
      common/models/Producer.php
  8. +3
    -2
      common/models/ProductDistribution.php
  9. +1
    -0
      common/models/Subscription.php
  10. +2
    -1
      common/models/UserPointSale.php
  11. +2
    -1
      common/models/UserProducer.php

+ 2
- 1
common/models/CreditHistory.php View File

namespace common\models; namespace common\models;


use Yii; use Yii;
use common\components\ActiveRecordCommon ;
use yii\db\ActiveRecord; use yii\db\ActiveRecord;
use common\models\User; use common\models\User;
use common\models\Order; use common\models\Order;
* @property integer $id_producer * @property integer $id_producer
* @property string $mean_payement * @property string $mean_payement
*/ */
class CreditHistory extends ActiveRecord
class CreditHistory extends ActiveRecordCommon
{ {


const TYPE_INITIAL_CREDIT = 'initial-credit'; const TYPE_INITIAL_CREDIT = 'initial-credit';

+ 2
- 1
common/models/Development.php View File

namespace common\models; namespace common\models;


use Yii; use Yii;
use common\components\ActiveRecordCommon ;
use common\models\DeveloppementPriorite; use common\models\DeveloppementPriorite;


/** /**
* @property string $status * @property string $status
* @property double $time_estimate * @property double $time_estimate
*/ */
class Development extends \yii\db\ActiveRecord
class Development extends ActiveRecordCommon
{ {
const STATUS_OPEN = 'open'; const STATUS_OPEN = 'open';
const STATUS_CLOSED = 'closed'; const STATUS_CLOSED = 'closed';

+ 2
- 1
common/models/DevelopmentPriority.php View File

namespace common\models; namespace common\models;


use Yii; use Yii;
use common\components\ActiveRecordCommon ;
use common\models\Producer; use common\models\Producer;


/** /**
* @property integer $id_user * @property integer $id_user
* @property integer $id_development * @property integer $id_development
*/ */
class DevelopmentPriority extends \yii\db\ActiveRecord
class DevelopmentPriority extends ActiveRecordCommon
{ {


const PRIORITY_HIGH = 'high'; const PRIORITY_HIGH = 'high';

+ 2
- 1
common/models/Distribution.php View File

namespace common\models; namespace common\models;


use Yii; use Yii;
use common\components\ActiveRecordCommon ;
use common\models\Order; use common\models\Order;
use common\models\Distribution; use common\models\Distribution;


* @property string $date * @property string $date
* @property integer $actif * @property integer $actif
*/ */
class Distribution extends \yii\db\ActiveRecord
class Distribution extends ActiveRecordCommon
{ {
/** /**
* @inheritdoc * @inheritdoc

+ 2
- 1
common/models/Invoice.php View File

namespace common\models; namespace common\models;


use Yii; use Yii;
use common\components\ActiveRecordCommon ;


/** /**
* This is the model class for table "facture". * This is the model class for table "facture".
* @property string $date_payment * @property string $date_payment
* @property string $mean_payment * @property string $mean_payment
*/ */
class Invoice extends \yii\db\ActiveRecord
class Invoice extends ActiveRecordCommon
{ {


/** /**

+ 2
- 1
common/models/PointSaleDistribution.php View File

namespace common\models; namespace common\models;


use Yii; use Yii;
use common\components\ActiveRecordCommon ;
use common\models\PointVente; use common\models\PointVente;
use common\models\Production; use common\models\Production;


* @property integer $id_point_vente * @property integer $id_point_vente
* @property integer $livraison * @property integer $livraison
*/ */
class PointSaleDistribution extends \yii\db\ActiveRecord
class PointSaleDistribution extends ActiveRecordCommon
{ {


var $points_sale_distribution; var $points_sale_distribution;

+ 2
- 1
common/models/Producer.php View File

namespace common\models; namespace common\models;


use Yii; use Yii;
use common\components\ActiveRecordCommon ;
use common\helpers\Departments; use common\helpers\Departments;
use yii\helpers\Html; use yii\helpers\Html;


* @property string $postcode * @property string $postcode
* @property string $city * @property string $city
*/ */
class Producer extends \yii\db\ActiveRecord
class Producer extends ActiveRecordCommon
{ {
/** /**
* @inheritdoc * @inheritdoc

+ 3
- 2
common/models/ProductDistribution.php View File



namespace common\models; namespace common\models;


use Yii ;
use yii\base\Object; use yii\base\Object;
use Yii;
use common\components\ActiveRecordCommon ;


/** /**
* This is the model class for table "production_produit". * This is the model class for table "production_produit".
* @property integer $id_product * @property integer $id_product
* @property integer $actif * @property integer $actif
*/ */
class ProductDistribution extends \yii\db\ActiveRecord
class ProductDistribution extends ActiveRecordCommon
{ {


/** /**

+ 1
- 0
common/models/Subscription.php View File

namespace common\models; namespace common\models;


use Yii; use Yii;
use common\components\ActiveRecordCommon ;
use common\models\Producer; use common\models\Producer;
use common\models\PointSale; use common\models\PointSale;
use common\models\PointSaleUser; use common\models\PointSaleUser;

+ 2
- 1
common/models/UserPointSale.php View File

namespace common\models; namespace common\models;


use Yii; use Yii;
use common\components\ActiveRecordCommon ;


/** /**
* This is the model class for table "point_vente_user". * This is the model class for table "point_vente_user".
* @property integer $id_point_vente * @property integer $id_point_vente
* @property integer $id_user * @property integer $id_user
*/ */
class UserPointSale extends \yii\db\ActiveRecord
class UserPointSale extends ActiveRecordCommon
{ {


/** /**

+ 2
- 1
common/models/UserProducer.php View File

namespace common\models; namespace common\models;


use Yii; use Yii;
use common\components\ActiveRecordCommon ;


/** /**
* This is the model class for table "user_etablissement". * This is the model class for table "user_etablissement".
* @property boolean $actif * @property boolean $actif
* @property boolean $favoris * @property boolean $favoris
*/ */
class UserProducer extends \yii\db\ActiveRecord
class UserProducer extends ActiveRecordCommon
{ {


/** /**

Loading…
Cancel
Save