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\grid;
use hiqdev\higrid\representations\RepresentationCollection;
use Yii;
class HubRepresentations extends RepresentationCollection
{
protected function fillRepresentations()
$this->representations = array_filter([
'common' => [
'label' => Yii::t('hipanel', 'common'),
'columns' => [
'checkbox',
'actions',
'switch',
'inn',
'model',
'type',
'ip',
'mac',
'order_no',
],
'sale' => [
'label' => Yii::t('hipanel:server:hub', 'sale'),
'buyer',
'tariff',
]);
}