/** * Build widget. * * @throws SystemException 'ERR_BAD_DATA' */ public function buildWidget() { if (!isset($_POST['xml'])) { throw new SystemException('ERR_BAD_DATA'); } $xml = $_POST['xml']; $xml = simplexml_load_string($xml); unset($_SERVER['HTTP_X_REQUEST']); $this->request->shiftPath(1); $this->tmpComponent = ComponentManager::createBlockFromDescription($xml); $this->tmpComponent->run(); }