Преглед изворни кода

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

dev
Guillaume Bourgeois пре 6 година
родитељ
комит
fe5172acd5
11 измењених фајлова са 22 додато и 11 уклоњено
  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 Прегледај датотеку

@@ -39,6 +39,7 @@ termes.
namespace common\models;

use Yii;
use common\components\ActiveRecordCommon ;
use yii\db\ActiveRecord;
use common\models\User;
use common\models\Order;
@@ -56,7 +57,7 @@ use yii\helpers\Html;
* @property integer $id_producer
* @property string $mean_payement
*/
class CreditHistory extends ActiveRecord
class CreditHistory extends ActiveRecordCommon
{

const TYPE_INITIAL_CREDIT = 'initial-credit';

+ 2
- 1
common/models/Development.php Прегледај датотеку

@@ -39,6 +39,7 @@ termes.
namespace common\models;

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

/**
@@ -52,7 +53,7 @@ use common\models\DeveloppementPriorite;
* @property string $status
* @property double $time_estimate
*/
class Development extends \yii\db\ActiveRecord
class Development extends ActiveRecordCommon
{
const STATUS_OPEN = 'open';
const STATUS_CLOSED = 'closed';

+ 2
- 1
common/models/DevelopmentPriority.php Прегледај датотеку

@@ -39,6 +39,7 @@ termes.
namespace common\models;

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

/**
@@ -47,7 +48,7 @@ use common\models\Producer;
* @property integer $id_user
* @property integer $id_development
*/
class DevelopmentPriority extends \yii\db\ActiveRecord
class DevelopmentPriority extends ActiveRecordCommon
{

const PRIORITY_HIGH = 'high';

+ 2
- 1
common/models/Distribution.php Прегледај датотеку

@@ -39,6 +39,7 @@ termes.
namespace common\models;

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

@@ -49,7 +50,7 @@ use common\models\Distribution;
* @property string $date
* @property integer $actif
*/
class Distribution extends \yii\db\ActiveRecord
class Distribution extends ActiveRecordCommon
{
/**
* @inheritdoc

+ 2
- 1
common/models/Invoice.php Прегледај датотеку

@@ -39,6 +39,7 @@ termes.
namespace common\models;

use Yii;
use common\components\ActiveRecordCommon ;

/**
* This is the model class for table "facture".
@@ -54,7 +55,7 @@ use Yii;
* @property string $date_payment
* @property string $mean_payment
*/
class Invoice extends \yii\db\ActiveRecord
class Invoice extends ActiveRecordCommon
{

/**

+ 2
- 1
common/models/PointSaleDistribution.php Прегледај датотеку

@@ -39,6 +39,7 @@ termes.
namespace common\models;

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

@@ -49,7 +50,7 @@ use common\models\Production;
* @property integer $id_point_vente
* @property integer $livraison
*/
class PointSaleDistribution extends \yii\db\ActiveRecord
class PointSaleDistribution extends ActiveRecordCommon
{

var $points_sale_distribution;

+ 2
- 1
common/models/Producer.php Прегледај датотеку

@@ -39,6 +39,7 @@ termes.
namespace common\models;

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

@@ -54,7 +55,7 @@ use yii\helpers\Html;
* @property string $postcode
* @property string $city
*/
class Producer extends \yii\db\ActiveRecord
class Producer extends ActiveRecordCommon
{
/**
* @inheritdoc

+ 3
- 2
common/models/ProductDistribution.php Прегледај датотеку

@@ -38,8 +38,9 @@ termes.

namespace common\models;

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

/**
* This is the model class for table "production_produit".
@@ -49,7 +50,7 @@ use Yii;
* @property integer $id_product
* @property integer $actif
*/
class ProductDistribution extends \yii\db\ActiveRecord
class ProductDistribution extends ActiveRecordCommon
{

/**

+ 1
- 0
common/models/Subscription.php Прегледај датотеку

@@ -39,6 +39,7 @@ termes.
namespace common\models;

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

+ 2
- 1
common/models/UserPointSale.php Прегледај датотеку

@@ -39,6 +39,7 @@ termes.
namespace common\models;

use Yii;
use common\components\ActiveRecordCommon ;

/**
* This is the model class for table "point_vente_user".
@@ -46,7 +47,7 @@ use Yii;
* @property integer $id_point_vente
* @property integer $id_user
*/
class UserPointSale extends \yii\db\ActiveRecord
class UserPointSale extends ActiveRecordCommon
{

/**

+ 2
- 1
common/models/UserProducer.php Прегледај датотеку

@@ -39,6 +39,7 @@ termes.
namespace common\models;

use Yii;
use common\components\ActiveRecordCommon ;

/**
* This is the model class for table "user_etablissement".
@@ -48,7 +49,7 @@ use Yii;
* @property boolean $actif
* @property boolean $favoris
*/
class UserProducer extends \yii\db\ActiveRecord
class UserProducer extends ActiveRecordCommon
{

/**

Loading…
Откажи
Сачувај