Protect controller again

This commit is contained in:
Sam Georges 2014-05-18 15:53:47 +10:00
parent 786a833237
commit f7373da55e
1 changed files with 9 additions and 1 deletions

View File

@ -28,7 +28,7 @@ abstract class WidgetBase
/**
* @var Backend\Classes\Controller Backend controller object.
*/
public $controller;
protected $controller;
/**
* @var string A unique alias to identify this widget.
@ -179,6 +179,14 @@ abstract class WidgetBase
return $result;
}
/**
* Returns the controller using this widget.
*/
public function getController()
{
return $this->controller;
}
//
// Session management
//