mirror of
https://github.com/janickiy/yii2-nomer
synced 2025-03-09 15:39:59 +00:00
add files to project
This commit is contained in:
commit
5cac498444
3729 changed files with 836998 additions and 0 deletions
59
models/Vk.php
Normal file
59
models/Vk.php
Normal file
|
@ -0,0 +1,59 @@
|
|||
<?php
|
||||
|
||||
namespace app\models;
|
||||
|
||||
use Yii;
|
||||
|
||||
/**
|
||||
* This is the model class for table "vk".
|
||||
*
|
||||
* @property integer $id
|
||||
* @property string $www
|
||||
* @property string $skype
|
||||
* @property string $instagram
|
||||
* @property string $twitter
|
||||
* @property string $facebook
|
||||
* @property string $phone1
|
||||
* @property string $phone2
|
||||
* @property string $phone3
|
||||
* @property string $phone4
|
||||
*/
|
||||
class Vk extends \yii\db\ActiveRecord
|
||||
{
|
||||
/**
|
||||
* @inheritdoc
|
||||
*/
|
||||
public static function tableName()
|
||||
{
|
||||
return 'vk';
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritdoc
|
||||
*/
|
||||
public function rules()
|
||||
{
|
||||
return [
|
||||
[['www', 'skype', 'instagram', 'twitter', 'facebook', 'phone1', 'phone2', 'phone3', 'phone4'], 'string', 'max' => 255],
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritdoc
|
||||
*/
|
||||
public function attributeLabels()
|
||||
{
|
||||
return [
|
||||
'id' => 'ID',
|
||||
'www' => 'Www',
|
||||
'skype' => 'Skype',
|
||||
'instagram' => 'Instagram',
|
||||
'twitter' => 'Twitter',
|
||||
'facebook' => 'Facebook',
|
||||
'phone1' => 'Phone1',
|
||||
'phone2' => 'Phone2',
|
||||
'phone3' => 'Phone3',
|
||||
'phone4' => 'Phone4',
|
||||
];
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue