42 lines
755 B
PHP
42 lines
755 B
PHP
<?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;
|
|
}
|
|
}
|