| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- <?php
- namespace common\models;
- /**
- * This is the model class for table "xhDistrict".
- *
- * @property integer $id
- * @property integer $parentId
- * @property string $districtId
- * @property string $shortName
- * @property string $fullName
- * @property string $locationLat
- * @property string $locationLng
- */
- class xhDistrict extends xhBaseModel
- {
- /**
- * @inheritdoc
- */
- public static function tableName()
- {
- return 'xhDistrict';
- }
- /**
- * @inheritdoc
- */
- public function rules()
- {
- return [
- [['parentId'], 'integer'],
- [['districtId', 'shortName', 'locationLat', 'locationLng'], 'string', 'max' => 20],
- [['fullName'], 'string', 'max' => 50],
- ];
- }
- /**
- * @inheritdoc
- */
- public function attributeLabels()
- {
- return [
- 'id' => 'ID',
- 'parentId' => 'Parent ID',
- 'districtId' => 'District ID',
- 'shortName' => 'Short Name',
- 'fullName' => 'Full Name',
- 'locationLat' => 'Location Lat',
- 'locationLng' => 'Location Lng',
- ];
- }
- }
|