add property and property definition
This commit is contained in:
41
backend/models/SettingsSearch.php
Normal file
41
backend/models/SettingsSearch.php
Normal file
@@ -0,0 +1,41 @@
|
||||
<?php
|
||||
|
||||
namespace backend\models;
|
||||
|
||||
use common\models\Property;
|
||||
use Yii;
|
||||
use yii\base\Model;
|
||||
use yii\data\ActiveDataProvider;
|
||||
use common\models\PropertyDefinition;
|
||||
|
||||
/**
|
||||
* PropertyDefinitionSearch represents the model behind the search form about `common\models\PropertyDefinition`.
|
||||
*/
|
||||
class SettingsSearch extends Model
|
||||
{
|
||||
/**
|
||||
* @inheritdoc
|
||||
*/
|
||||
public function rules()
|
||||
{
|
||||
return [
|
||||
// [['id'], 'integer'],
|
||||
// [['name', 'label', 'type', 'config', 'created_at', 'updated_at'], 'safe'],
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Creates data provider instance with search query applied
|
||||
*
|
||||
*
|
||||
* @return ActiveDataProvider
|
||||
*/
|
||||
public function search()
|
||||
{
|
||||
|
||||
|
||||
|
||||
return $dataProvider;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user