2 namespace Civi\Setup\UI\Event
;
4 use Symfony\Component\EventDispatcher\Event
;
6 class BaseUIEvent
extends Event
{
9 * @var \Civi\Setup\UI\SetupController
25 * RunControllerEvent constructor.
27 * @param \Civi\Setup\UI\SetupController $ctrl
31 public function __construct($ctrl, $method, $fields) {
33 $this->method
= $method;
34 $this->fields
= $fields;
38 * @return \Civi\Setup\UI\SetupController
40 public function getCtrl() {
47 public function getMethod() {
54 public function getFields() {
55 return $this->fields
[\Civi\Setup\UI\SetupController
::PREFIX
];
58 public function getField($name, $default = NULL) {
59 if (isset($this->fields
[\Civi\Setup\UI\SetupController
::PREFIX
][$name])) {
60 return $this->fields
[\Civi\Setup\UI\SetupController
::PREFIX
][$name];
66 * @return \Civi\Setup\Model
68 public function getModel() {
69 return $this->ctrl
->getSetup()->getModel();