add kulcsok, add tartós beszedés, add ticket type with intallments

This commit is contained in:
2016-01-20 14:48:34 +01:00
parent d1638a19de
commit d7cc84e78f
111 changed files with 4077 additions and 12 deletions

View File

@@ -0,0 +1,62 @@
<?php
namespace common\models;
use Yii;
use yii\helpers\ArrayHelper;
use yii\behaviors\TimestampBehavior;
/**
* This is the model class for table "card_key_assignment".
*
* @property integer $id_card
* @property integer $id_key
* @property integer $id_user
* @property string $created_at
* @property string $updated_at
*/
class CardKeyAssignment extends \yii\db\ActiveRecord
{
public function behaviors()
{
return ArrayHelper::merge( [
[
'class' => TimestampBehavior::className(),
'value' => function(){ return date('Y-m-d H:i:s' ); }
],
], parent::behaviors());
}
/**
* @inheritdoc
*/
public static function tableName()
{
return 'card_key_assignment';
}
/**
* @inheritdoc
*/
public function rules()
{
return [
[['id_card', 'id_key', 'id_user'], 'integer'],
];
}
/**
* @inheritdoc
*/
public function attributeLabels()
{
return [
'id_card' => Yii::t('common/image', 'Id Card'),
'id_key' => Yii::t('common/image', 'Id Key'),
'id_user' => Yii::t('common/image', 'Id User'),
'created_at' => Yii::t('common/image', 'Created At'),
'updated_at' => Yii::t('common/image', 'Updated At'),
];
}
}