|
- <?php
-
-
-
- namespace common\models;
-
- use common\components\ActiveRecordCommon;
-
-
- class ProducerPriceRange extends ActiveRecordCommon
- {
-
-
- public static function tableName()
- {
- return 'producer_price_range';
- }
-
-
-
- public function rules()
- {
- return [
- [['range_begin', 'range_end', 'price'], 'double'],
- ];
- }
-
-
-
- public function attributeLabels()
- {
- return [
- 'id' => 'ID',
- 'range_begin' => 'Début',
- 'range_end' => 'Fin',
- 'price' => 'Tarif (HT)',
- ];
- }
-
-
-
- public static function defaultOptionsSearch()
- {
- return [
- 'with' => [],
- 'join_with' => [],
- 'orderby' => '',
- 'attribute_id_producer' => ''
- ];
- }
- }
|