%PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
| Server IP : 14.207.165.8 / Your IP : 216.73.216.26 Web Server : Apache/2.4.18 (Ubuntu) System : Linux 246 4.4.0-210-generic #242-Ubuntu SMP Fri Apr 16 09:57:56 UTC 2021 x86_64 User : root ( 0) PHP Version : 7.0.33-0ubuntu0.16.04.16 Disable Function : exec,passthru,shell_exec,system,proc_open,popen,pcntl_exec MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/html/eoffice/frontend/modules/qrdata/models/ |
Upload File : |
<?php
namespace frontend\modules\qrdata\models;
use Yii;
/**
* This is the model class for table "qr_data".
*
* @property int $id
* @property string $title
* @property string $filename
* @property string $comment
* @property int $user_id
* @property string $created_at
* @property string $updated_at
*/
class QrData extends \yii\db\ActiveRecord
{
/**
* @inheritdoc
*/
public static function tableName()
{
return 'qr_data';
}
/**
* @inheritdoc
*/
public function rules()
{
return [
[['title', 'filename', 'comment', 'user_id', 'created_at', 'updated_at'], 'required'],
[['comment', 'link', 'type'], 'string'],
[['user_id'], 'integer'],
[['created_at', 'updated_at'], 'safe'],
[['title', 'filename', 'qrcode'], 'string', 'max' => 255],
];
}
/**
* @inheritdoc
*/
public function attributeLabels()
{
return [
'id' => 'ID',
'title' => 'Title',
'filename' => 'Filename',
'qrcode' => 'QRCODE',
'link' => 'URL',
'type' => 'ชนิด QR CODE',
'comment' => 'Comment',
'user_id' => 'User ID',
'created_at' => 'Created At',
'updated_at' => 'Updated At',
];
}
}