當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。