当前位置: 首页>>代码示例>>PHP>>正文


PHP FrameResponseObject类代码示例

本文整理汇总了PHP中FrameResponseObject的典型用法代码示例。如果您正苦于以下问题:PHP FrameResponseObject类的具体用法?PHP FrameResponseObject怎么用?PHP FrameResponseObject使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了FrameResponseObject类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: frameResponse

 public function frameResponse(\FrameResponseObject $frameResponseObject)
 {
     $portfolios = \PortfolioModel::getMyPortfolios();
     $listViewer = new \Widgets\ListViewer();
     if (isset($this->portfolioId)) {
         $portfolioObject = new \PortfolioModel(\steam_factory::get_object($GLOBALS["STEAM"]->get_id(), $this->portfolioId));
     }
     if (isset($this->artefactId)) {
         $artefactObject = new \ArtefactModel(\steam_factory::get_object($GLOBALS["STEAM"]->get_id(), $this->artefactId));
     }
     $steamUser = $GLOBALS["STEAM"]->get_current_steam_user();
     //		/** check the rights of the log-in user */
     //		$threadObject_allowed_read = $threadObject->check_access_read($steamUser);
     //		$threadObject_write = $threadObject->check_access_write($steamUser);
     //		$threadObject_annotate = $threadObject->check_access_annotate($steamUser);
     $listViewer->setHeadlineProvider(new HeadlineProviderDebug());
     $listViewer->setContentProvider(new ContentProviderDebug());
     if (isset($portfolioObject)) {
         $listViewer->setContent($artefacts);
     } else {
         $listViewer->setContent($portfolios);
     }
     $frameResponseObject->addWidget($listViewer);
     return $frameResponseObject;
 }
开发者ID:rolwi,项目名称:koala,代码行数:25,代码来源:Portfoliosdebug.class.php

示例2: frameResponse

 public function frameResponse(\FrameResponseObject $frameResponseObject)
 {
     $html = "";
     if (isset($this->params[0]) && $this->params[0] != "") {
         $extension = \ExtensionMaster::getInstance()->getExtensionById($this->params[0]);
         $html = $extension->getInfoHtml();
     } else {
         $content = \Admin::getInstance()->loadTemplate("ExtensionIndex.template.html");
         $extensions = \ExtensionMaster::getInstance()->getAllExtensions();
         foreach ($extensions as $extension) {
             $content->setCurrentBlock("BLOCK_EXTERNSION");
             $content->setVariable("EXTERNSION_ID", $extension->getId());
             $content->setVariable("EXTERNSION_NAME", $extension->getName());
             $content->setVariable("EXTERNSION_ICON", "");
             $content->setVariable("EXTERNSION_VERSION", $extension->getVersion());
             $content->parse("BLOCK_EXTERNSION");
         }
         $html = $content->get();
     }
     $rawHtml = new \Widgets\RawHtml();
     $rawHtml->setHtml($html);
     $frameResponseObject->setTitle("Extension Information");
     $frameResponseObject->addWidget($rawHtml);
     return $frameResponseObject;
 }
开发者ID:rolwi,项目名称:koala,代码行数:25,代码来源:Index.class.php

示例3: frameResponse

    public function frameResponse(\FrameResponseObject $frameResponseObject)
    {
        if (!$this->portfolioId) {
            print "no object id given!";
            exit;
        }
        $portfolio = \PortfolioModel::getById($this->portfolioId);
        $loader = new \Widgets\Loader();
        $loader->setWrapperId("artefactsWrapper");
        $loader->setMessage("loading artefacts ...");
        $loader->setCommand("loadArtefacts");
        $loader->setParams(array($this->portfolioId));
        $loader->setElementId("artefactsWrapper");
        $loader->setType("updater");
        $html .= <<<END
<script type="text/javascript">
\$(':checkbox').change(function() {
   sendRequest("UpdateSelectedArtefacts", {"artefactId": "{$this->artefactId}", "portfolio": "{$this->portfolioId}", "checked": \$(this).prop("checked")}, "", "data");
});
</script>
END;
        $rawHtml = new \Widgets\RawHtml();
        $rawHtml->setHtml($html);
        $frameResponseObject->addWidget($rawHtml);
        $frameResponseObject->addWidget($loader);
        return $frameResponseObject;
    }
开发者ID:rolwi,项目名称:koala,代码行数:27,代码来源:AddArtefact.class.php

示例4: frameResponse

 public function frameResponse(\FrameResponseObject $frameResponseObject)
 {
     $currentUser = $GLOBALS["STEAM"]->get_current_steam_user();
     if (isset($this->id)) {
         $object = \steam_factory::get_object($GLOBALS["STEAM"]->get_id(), $this->id);
         if ($object instanceof \steam_exit) {
             $object = $object->get_exit();
             $this->id = $object->get_id();
         }
     } else {
         $object = $currentUser->get_trashbin();
         $this->id = $object->get_id();
     }
     if ($object && $object instanceof \steam_container) {
         $objects = $object->get_inventory();
     } else {
         $objects = array();
     }
     $this->getExtension()->addJS();
     $this->getExtension()->addCSS();
     $title = "Papierkorb";
     $actionBar = new \Widgets\ActionBar();
     $actionBar->setActions(array(array("name" => "Papierkorb leeren", "ajax" => array("onclick" => array("command" => "EmptyTrashbin", "params" => array("fromNameSpace" => "Trashbin"), "requestType" => "popup", "namespace" => "explorer")))));
     $loader = new \Widgets\Loader();
     $loader->setWrapperId("trashbinWrapper");
     $loader->setMessage("Lade Daten ...");
     $loader->setCommand("loadContent");
     $loader->setParams(array("id" => $this->id));
     $loader->setElementId("trashbinWrapper");
     $loader->setType("updater");
     $frameResponseObject->setTitle($title);
     $frameResponseObject->addWidget($actionBar);
     $frameResponseObject->addWidget($loader);
     return $frameResponseObject;
 }
开发者ID:rolwi,项目名称:koala,代码行数:35,代码来源:Index.class.php

示例5: frameResponse

 public function frameResponse(\FrameResponseObject $frameResponseObject)
 {
     $tpl = new \Worksheet\Template($this->id);
     $worksheet = new \Worksheet\Worksheet($this->id);
     $worksheet->validateRole("edit");
     $worksheet->validateStatus(2);
     $tplBlocks = array();
     /* get all blocks for this worksheet */
     $blocks = $worksheet->getBlocks();
     foreach ($blocks as $block) {
         $tplBlocks[] = array("id" => $block->getId(), "name" => $block->getName(), "content" => $block->getCorrectHtml(), "type" => $block->getType(), "order" => $block->getOrder());
     }
     if (count($blocks) == 0) {
         $tplBlocks = false;
     }
     $tpl->assign("blocks", $tplBlocks);
     $tpl->display("Correct.template.html");
     $sourceWorksheet = new \Worksheet\Worksheet($this->source);
     /* action bar */
     $actionBar = new \Widgets\ActionBar();
     $actionBar->setActions(array(array("name" => "Arbeitsblatt zurückgeben", "link" => "javascript: worksheet_finish('" . $this->source . "')"), array("name" => "Speichern", "link" => "javascript: worksheet_save()")));
     $frameResponseObject->addWidget($actionBar);
     /* template output */
     $tpl->parse($frameResponseObject);
     /* action bar */
     $actionBar = new \Widgets\ActionBar();
     $actionBar->setActions(array(array("name" => "Arbeitsblatt zurückgeben", "link" => "javascript: worksheet_finish('" . $this->source . "')"), array("name" => "Speichern", "link" => "javascript: worksheet_save()")));
     $frameResponseObject->addWidget($actionBar);
     /* page title */
     $frameResponseObject->setTitle($worksheet->getName());
     $frameResponseObject->setHeadline(array(array("name" => $sourceWorksheet->getName(), "link" => PATH_URL . "worksheet/View/" . $this->source), array("name" => "Arbeitsblätter korrigieren", "link" => PATH_URL . "worksheet/CopyList/" . $this->source), array("name" => $worksheet->getName())));
     return $frameResponseObject;
 }
开发者ID:rolwi,项目名称:koala,代码行数:33,代码来源:Correct.class.php

示例6: frameResponse

 public function frameResponse(\FrameResponseObject $frameResponseObject)
 {
     $activities = \CompetenceRaster::getActivityFields();
     $jobs = \CompetenceRaster::getJobs();
     $facets = \CompetenceRaster::getFacets();
     $listViewer = new \Widgets\ListViewer();
     \CompetenceRaster::initReadCompetences();
     $steamUser = $GLOBALS["STEAM"]->get_current_steam_user();
     //print("<pre>".print_r($activities,true)."</pre>");
     //print("<pre>".print_r(\CompetenceRaster::$competences,true)."</pre>");
     $html_text = "";
     $html_text .= "<h2>Bereiche</h2><br>";
     foreach ($activities as $activity) {
         $html_text .= $activity->name . ":<br>" . $activity->description . "<br><br>";
     }
     $html_text .= "<h2>Jobs</h2><br>";
     foreach ($jobs as $activity) {
         $html_text .= $activity->name . ":<br>" . $activity->description . "<br><br>";
     }
     $html_text .= "<h2>Aspekte</h2><br>";
     foreach ($facets as $activity) {
         $html_text .= $activity->name . ":<br>" . $activity->description . "<br><br>";
     }
     $html_text .= "<h2>Kompetenzen</h2><br>";
     foreach (\CompetenceRaster::getCompetences() as $activity) {
         //foreach (\CompetenceRaster::$competences as $activity){
         $html_text .= "Name: " . $activity->name . "<br>ID: " . $activity->job . "<br>facet: " . $activity->facet . "<br>activity: " . $activity->activity . "<br>index: " . $activity->index . "<br>" . "Beschreibung: " . $activity->description . "<br><br>";
     }
     $rawHtml = new \Widgets\RawHtml();
     $rawHtml->setHtml($html_text);
     $frameResponseObject->addWidget($rawHtml);
     return $frameResponseObject;
 }
开发者ID:rolwi,项目名称:koala,代码行数:33,代码来源:DebugCompetenceRaster.class.php

示例7: frameResponse

 public function frameResponse(\FrameResponseObject $frameResponseObject)
 {
     $jsWrapper = new \Widgets\JSWrapper();
     $jsWrapper->setJs('self.location.href="' . PATH_URL . "favorite/index/" . '"');
     $frameResponseObject->addWidget($jsWrapper);
     return $frameResponseObject;
 }
开发者ID:rolwi,项目名称:koala,代码行数:7,代码来源:Delete.class.php

示例8: frameResponse

 public function frameResponse(\FrameResponseObject $frameResponseObject)
 {
     $tpl = new \Worksheet\Template($this->id);
     $worksheet = new \Worksheet\Worksheet($this->id);
     $worksheet->validateRole("build");
     $tplBlocks = array();
     /* get all blocks for this worksheet */
     $blocks = $worksheet->getBlocks();
     foreach ($blocks as $block) {
         $tplBlocks[] = array("id" => $block->getId(), "name" => $block->getName(), "content" => $block->getBuildViewHtml(), "type" => $block->getType(), "order" => $block->getOrder());
     }
     if (count($blocks) == 0) {
         $tplBlocks = false;
     }
     $tpl->assign("blocks", $tplBlocks);
     $tpl->display("Build.template.html");
     /* action bar */
     $actionBar = new \Widgets\ActionBar();
     $actionBar->setActions(array(array("name" => "Eine Aufgabe hinzufügen", "link" => PATH_URL . "worksheet/AddBlock/" . $this->id), array("name" => "Arbeitsblatt veröffentlichen", "link" => PATH_URL . "worksheet/Deploy/" . $this->id)));
     $frameResponseObject->addWidget($actionBar);
     /* template output */
     $tpl->parse($frameResponseObject);
     /* page title */
     $frameResponseObject->setTitle($worksheet->getName());
     $frameResponseObject->setHeadline(array(array("name" => $worksheet->getName(), "link" => PATH_URL . "worksheet/Build/" . $this->id)));
     return $frameResponseObject;
 }
开发者ID:rolwi,项目名称:koala,代码行数:27,代码来源:Build.class.php

示例9: frameResponse

 public function frameResponse(\FrameResponseObject $frameResponseObject)
 {
     $tpl = new \Worksheet\Template($this->id);
     $worksheet = new \Worksheet\Worksheet($this->id);
     $worksheet->validateRole("view");
     $tplBlocks = array();
     /* get all blocks for this worksheet */
     $blocks = $worksheet->getBlocks();
     foreach ($blocks as $block) {
         $tplBlocks[] = array("id" => $block->getId(), "name" => $block->getName(), "content" => $block->getViewHtml(), "type" => $block->getType(), "order" => $block->getOrder());
     }
     if (count($blocks) == 0) {
         $tplBlocks = false;
     }
     $tpl->assign("blocks", $tplBlocks);
     $tpl->display("View.template.html");
     /* action bar */
     $actionBar = new \Widgets\ActionBar();
     $actionBar->setActions(array(array("name" => "Arbeitsblätter korrigieren", "link" => PATH_URL . "worksheet/CopyList/" . $this->id), array("name" => "Arbeitsblatt ausfüllen", "link" => PATH_URL . "worksheet/StartEdit/" . $this->id)));
     $frameResponseObject->addWidget($actionBar);
     /* template output */
     $tpl->parse($frameResponseObject);
     /* page title */
     $frameResponseObject->setTitle($worksheet->getName());
     $frameResponseObject->setHeadline(array(array("name" => $worksheet->getName(), "link" => PATH_URL . "worksheet/View/" . $this->id)));
     return $frameResponseObject;
 }
开发者ID:rolwi,项目名称:koala,代码行数:27,代码来源:View.class.php

示例10: frameResponse

 public function frameResponse(\FrameResponseObject $frameResponseObject)
 {
     $rawWidget = $this->displayWorkplans();
     $frameResponseObject->setTitle("Projektplanverwaltung");
     $frameResponseObject->setHeadline("Projektplanverwaltung");
     $frameResponseObject->addWidget($rawWidget);
     return $frameResponseObject;
 }
开发者ID:rolwi,项目名称:koala,代码行数:8,代码来源:Index.class.php

示例11: frameResponse

 public function frameResponse(\FrameResponseObject $frameResponseObject)
 {
     $rawHtml = new \Widgets\RawHtml();
     $rawHtml->setHtml("<center>Noch nicht fertig.</center>");
     $frameResponseObject->setTitle("Impressum");
     $frameResponseObject->addWidget($rawHtml);
     return $frameResponseObject;
 }
开发者ID:rolwi,项目名称:koala,代码行数:8,代码来源:Index.class.php

示例12: frameResponse

 public function frameResponse(\FrameResponseObject $frameResponseObject)
 {
     $portfolios = \PortfolioModel::getMyPortfolios();
     $listViewer = new \Widgets\ListViewer();
     $listViewer->setHeadlineProvider(new HeadlineProviderMyPortfolios());
     $listViewer->setContentProvider(new ContentProviderMyPortfolios());
     $listViewer->setContent($portfolios);
     $frameResponseObject->addWidget($listViewer);
     return $frameResponseObject;
 }
开发者ID:rolwi,项目名称:koala,代码行数:10,代码来源:MyPortfolios.class.php

示例13: frameResponse

    public function frameResponse(\FrameResponseObject $frameResponseObject)
    {
        $filePersistence = PATH_URL . "debug/filePersistence/";
        $rawHtml = new \Widgets\RawHtml();
        $rawHtml->setHtml(<<<END
<h1>Platform Tests</h1>
<a href="{$filePersistence}">Testing File-Persistence.</a>
END
);
        $frameResponseObject->addWidget($rawHtml);
        return $frameResponseObject;
    }
开发者ID:rolwi,项目名称:koala,代码行数:12,代码来源:Index.class.php

示例14: getHtmlForFullScreen

 public function getHtmlForFullScreen(\FrameResponseObject $frameResponseObject)
 {
     $objectId = $this->id;
     $content = '<img src=' . PATH_URL . 'download/image/' . $objectId . '/946/710"
       border="0"
       title="Vollbild"
      >';
     $widget = new \Widgets\RawHtml();
     $widget->setHtml($content);
     $frameResponseObject->addWidget($widget);
     return $frameResponseObject;
 }
开发者ID:rolwi,项目名称:koala,代码行数:12,代码来源:Fullscreen.class.php

示例15: frameResponse

 public function frameResponse(\FrameResponseObject $frameResponseObject)
 {
     if (!\PortfolioExtensionModel::init()) {
         $html .= "Portfolio Räume bereits initialisiert<br>";
     } else {
         $html .= "E-Portfolio erfolgreich initialisiert";
     }
     $rawHtml = new \Widgets\RawHtml();
     $rawHtml->setHtml($html);
     $frameResponseObject->addWidget($rawHtml);
     return $frameResponseObject;
 }
开发者ID:rolwi,项目名称:koala,代码行数:12,代码来源:Init.class.php


注:本文中的FrameResponseObject类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。