Yii2 Bootstrap 3
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

60 lines
822 B

12 years ago
<?php
/**
* @link http://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license http://www.yiiframework.com/license/
*/
namespace yii\debug;
use Yii;
12 years ago
use yii\base\Component;
/**
* @author Qiang Xue <qiang.xue@gmail.com>
* @since 2.0
*/
class Panel extends Component
{
public $id;
public $tag;
12 years ago
/**
* @var Module
*/
public $module;
12 years ago
public $data;
public function getName()
{
return '';
}
public function getSummary()
{
return '';
}
public function getDetail()
{
return '';
}
public function save()
{
return null;
}
public function load($data)
{
$this->data = $data;
}
public function getUrl()
{
return Yii::$app->getUrlManager()->createUrl($this->module->id . '/default/view', array(
'panel' => $this->id,
'tag' => $this->tag,
));
}
12 years ago
}