work on inventory

This commit is contained in:
2016-03-07 20:54:32 +01:00
parent 603508eb70
commit 1d3c476476
24 changed files with 1357 additions and 0 deletions

View File

@@ -0,0 +1,60 @@
<?php
namespace common\models;
use Yii;
use common\components\UserAwareBehavior;
use yii\helpers\ArrayHelper;
/**
* This is the model class for table "inventory".
*
* @property integer $id_inventory
* @property integer $id_user
* @property string $created_at
* @property string $updated_at
*/
class Inventory extends \common\models\BaseFitnessActiveRecord
{
/**
* @inheritdoc
*/
public static function tableName()
{
return 'inventory';
}
/**
* @inheritdoc
*/
public function rules()
{
return [
];
}
/**
* @inheritdoc
*/
public function attributeLabels()
{
return [
'id_inventory' => Yii::t('common/inventory', 'Leltár azonosító'),
'id_user' => Yii::t('common/inventory', 'Felhasználó'),
'created_at' => Yii::t('common/inventory', 'Létrehozás'),
'updated_at' => Yii::t('common/inventory', 'Módosítás'),
];
}
/**
* @inheritdoc
*/
public function behaviors()
{
return ArrayHelper::merge( [
[
'class' => UserAwareBehavior::className(),
]
], parent::behaviors());
}
}