Panel.php 822 Bytes
Newer Older
Qiang Xue committed
1 2 3 4 5 6 7 8 9
<?php
/**
 * @link http://www.yiiframework.com/
 * @copyright Copyright (c) 2008 Yii Software LLC
 * @license http://www.yiiframework.com/license/
 */

namespace yii\debug;

Qiang Xue committed
10
use Yii;
Qiang Xue committed
11 12 13 14 15 16 17 18
use yii\base\Component;

/**
 * @author Qiang Xue <qiang.xue@gmail.com>
 * @since 2.0
 */
class Panel extends Component
{
Qiang Xue committed
19 20
	public $id;
	public $tag;
Qiang Xue committed
21 22 23 24
	/**
	 * @var Module
	 */
	public $module;
Qiang Xue committed
25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
	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;
	}
Qiang Xue committed
51 52 53 54 55 56 57 58

	public function getUrl()
	{
		return Yii::$app->getUrlManager()->createUrl($this->module->id . '/default/view', array(
			'panel' => $this->id,
			'tag' => $this->tag,
		));
	}
Qiang Xue committed
59
}