for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Server module for HiPanel
*
* @link https://github.com/hiqdev/hipanel-module-server
* @package hipanel-module-server
* @license BSD-3-Clause
* @copyright Copyright (c) 2015-2019, HiQDev (http://hiqdev.com/)
*/
namespace hipanel\modules\server\models;
use hipanel\base\SearchModelTrait;
use Yii;
class SwitchGraphSearch extends SwitchGraph
{
use SearchModelTrait {
searchAttributes as private;
rules as private;
}
public function rules()
return [
[['id'], 'required'],
[['id', 'width'], 'integer'],
];
public function formName()
return '';
* {@inheritdoc}
public function searchAttributes()
'id',
'width',
public function attributeLabels()
'width' => Yii::t('hipanel:server:rrd', 'Width (px)'),