Will get the output of the current controller to display it later on.
430056
private function prepareDisplay()
    {

        \OWeb\manage\Events::getInstance()->sendEvent('PrepareContent_Start@OWeb\manage\Template');

        //We save the content so that if there is an error we don't show half displayed codes
        ob_start();
        try {
            \OWeb\manage\Controller::getInstance()->display();
        } catch (\Exception $e) {
            \OWeb\manage\Events::getInstance()->sendEvent('PrepareContent_Fail@OWeb\manage\Template');
            ob_end_clean();
            ob_start();
            $ctr = \OWeb\manage\Controller::getInstance()->loadException($e);
            $ctr->addParams("exception", $e);
            \OWeb\manage\Controller::getInstance()->display();
        }

        \OWeb\manage\Events::getInstance()->sendEvent('PrepareContent_Succ@OWeb\manage\Template');

        $this->content = ob_get_contents();

        \OWeb\manage\Events::getInstance()->sendEvent('PrepareContent_End@OWeb\manage\Template');

        ob_end_clean();

        //$this->content_heads = \OWeb\manage\Headers::getInstance()->toString();
       // \OWeb\manage\Headers::getInstance()->reset();
    }
635457
function () {
    this.controller = controllerUtils.findMatchingControllerWebXR(
      this.system.controllers,
      this.data.hand
    );
    // Legacy handle to the controller for old components.
    this.el.components['tracked-controls'].controller = this.controller;

    if (this.data.autoHide) { this.el.object3D.visible = !!this.controller; }
  }
525265
def desc(self):
        """"""
        doc = inspect.getdoc(self.controller_class)
        if not doc: doc = ''
        return doc
25810
public function display()
    {
        $this->output = '';
        $output = $this->load($this->_layout);
        $this->output = $this->output.$output;

        return $this->output;
    }
958717
public function display() {
        global $OUTPUT, $PAGE;
        // Finalize the form definition if not yet done.
        if (!$this->_definition_finalized) {
            $this->_definition_finalized = true;
            $this->definition_after_data();
        }

        $mform = $this->_form;

        // Add "This form has required fields" text in the bottom of the form.
        if (($mform->_required || $this->hasrequired) &&
               ($this->mode == self::MODE_COMPLETE || $this->mode == self::MODE_PRINT || $this->mode == self::MODE_VIEW_TEMPLATE)) {
            $element = $mform->addElement('static', 'requiredfields', '',
                    get_string('somefieldsrequired', 'form',
                            $OUTPUT->pix_icon('req', get_string('requiredelement', 'form'))));
            $element->setAttributes($element->getAttributes() + ['class' => 'requirednote']);
        }

        // Reset _required array so the default red * are not displayed.
        $mform->_required = array();

        // Move buttons to the end of the form.
        if ($this->mode == self::MODE_COMPLETE) {
            $mform->addElement('hidden', '__dummyelement');
            $buttons = $mform->removeElement('buttonar', false);
            $mform->insertElementBefore($buttons, '__dummyelement');
            $mform->removeElement('__dummyelement');
        }

        $this->_form->display();

        if ($this->mode == self::MODE_EDIT) {
            $PAGE->requires->js_call_amd('mod_feedback/edit', 'setup');
        }
    }
616998
def _get_current_output(self):
        
        output = []
        for item in self.items:
            out = self.py3.get_output(item)
            if out and "separator" not in out[-1]:
                out[-1]["separator"] = True
            output += out
        return output
945478
def complete(self, msg):
        """"""
        if _debug: IOCB._debug("complete(%d) %r", self.ioID, msg)

        if self.ioController:
            # pass to controller
            self.ioController.complete_io(self, msg)
        else:
            # just fill in the data
            self.ioState = COMPLETED
            self.ioResponse = msg
            self.trigger()
561771
def status
      output = run("info")
      result = output.scan(/^state:\s+([\w]+)|pid:\s+(-?[\d]+)$/).flatten

      LXC::Status.new(result.first, result.last)
    end
1232774
def get_controller(self):
        
        command = ovs_vsctl.VSCtlCommand('get-controller', [self.br_name])
        self.run_command([command])
        result = command.result
        return result[0] if len(result) == 1 else result
1289611
public function display()
    {
        if (OutputInterface::VERBOSITY_QUIET === $this->output->getVerbosity()) {
            return;
        }

        if (null === $this->format) {
            $this->setRealFormat($this->internalFormat ?: $this->determineBestFormat());
        }

        $this->overwrite($this->buildLine());
    }
1021206
public function render() {
        global $controller;        
        
        if(!$this->ctrl) throw new \Exception('Controller not initialised');
        
		$controller = $this->ctrl;
        $this->ctrl->pageHeader();
        
        echo $this->renderContent();
    }
924303
public function display()
    {
        if ($this->controller != null) {
            try {
                $this->controller->display();
            } catch (\Exception $ex) {
                throw new \OWeb\manage\exceptions\Controller("The Controller couldn't be shown due to Errors", 0, $ex);
            }
        } else {
            throw new \OWeb\manage\exceptions\Controller("A Controller wasn't loaded to be shown");
        }
    }
302616
public function preview($controller, $config = array(), &$models = array(), $max = 0)
    {
        $this->result = array();
        $this->current = 0;
        $buffer = '';
        $count = 0;
        $this->init($config);
        if ($header = $this->getNext()) {
            $this->current++;
            $buffer .= "<table class='table table-bordered' border='1'>";
            while ($next = $this->getNext()) {
                if (implode('', $next) != '') {
                    $model = $this->build($header, $next);

                    if ($model && $model->valid()) {
                        if ($count == 0) {
                            $buffer .= '<tr>';
                            foreach ($model->getFields() as $item) {
                                $buffer .= "<th>$item</th>";
                            }
                            $buffer .= '<th>Actualizar</th>';
                            $buffer .= '</tr>';
                        }

                        $models[] = $model;
                        $this->result[$this->current] = $model;
                        $buffer .= '<tr>';
                        foreach ($model->getFields() as $item) {
                            $buffer .= "<td>{$model->getFieldValue($item)}</td>";
                        }
                        $buffer .= '<td>' . ($model->exists() ? 'Si' : 'No') . '</td>';
                        $buffer .= '</tr>';
                        $count++;
                    }
                }
                if ($max && $count >= $max) {
                    break;
                }
                $this->current++;
            }
            $buffer .= '</table>';
            $controller->addMessage('Total Items: ' . $count, 'info');
            return $buffer;
        }
        Log::d('Headers: ' . print_r($header, true));
        $controller->addMessage('Error reading headers!', 'danger');
        return false;
    }
927349
def controller(self):
        """"""
        if hasattr(self, 'controllers'):
            if len(self.controllers) > 1:
                # in the future, we should support more controllers
                raise TypeError("Only one controller per account.")
            return self.controllers[0]
        raise AttributeError("There is no controller assigned.")
284740
def show_view(self):
        
        self.current.output['login_process'] = True
        if self.current.is_auth:
            self._do_upgrade()
        else:
            self.current.output['forms'] = LoginForm(current=self.current).serialize()
605029
def display(self) -> typing.Union[None, report.Report]:
        """"""
        return (
            self._project.current_step.report
            if self._project and self._project.current_step else
            None
        )
1088486
private function generateController()
    {
        // Generate Controller class
        $controllerInstance = Controller::instance($this->columns, $this->viewType, $this);

        $controllerTemplateDir =
            dirname(dirname(__FILE__)).DS.'src'.DS.'Apps'.DS.'Controllers'.DS;

        $controllerInstance->setControllerTemplatePath($controllerTemplateDir);
        $controllerInstance->setApplicationDirectory($this->applicationDir);

        $controllerInstance->setControllerName($this->controller);
        $controllerInstance->setModelName($this->model);
        $controllerInstance->updateTemplate();
        $controllerInstance->generateControllerTemplate();

        $controllerInstance->generate();

        $this->info("Controller $this->controller Generated Successfully!");
    }