public function ctor() { Runtime::loadModule('admin'); ControllerTray::instance()->renderLayout = false; $this->_xdo = ControllerXDO::unpack('project'); $this->_xdo->unserialize(); if (Backend::ExistsUnSessioned('explorer.' . $this->_xdo->project->name)) { $this->_backend = Backend::LoadUnSessioned('explorer.' . $this->_xdo->project->name); } else { $this->_backend = Structs\Admin\Project::create($this->_xdo->project->name); /*Create From reflection*/ } if (isset($this->_xdo->controllerName)) { $this->_controllerName = $this->_xdo->controllerName; } }
public function methodLink($methodName) { $backend = null; if (Backend::ExistsUnSessioned('explorer.' . $this->xdo->project->name)) { $explorer = Backend::LoadUnSessioned('explorer.' . $this->xdo->project->name); } else { $explorer = Structs\Admin\Project::create($this->xdo->project->name); /*Create From reflection*/ } $this->data->controllerName = $this->xdo->controllerName; $controller = $explorer->controllerByName($this->xdo->controllerName); $this->data->controller = $controller; ControllerTray::instance()->renderLayout = false; $method = $controller->methodByName($methodName); $this->data->method = $method; $this->data->methodName = $methodName; $this->data->arguments = $method->arguments(); //Backend::saveUnSessioned('explorer.'.$this->xdo->project->name, $explorer); }