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


PHP Step::addPanel方法代码示例

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


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

示例1: loadEntities


//.........这里部分代码省略.........
                                 if ($field->PostNote) {
                                     $noteObj = new FieldNote($this);
                                     $noteObj->setText((string) $field->PostNote);
                                     $fieldObj->setPostNote($noteObj);
                                 }
                                 $fieldsetObj->addField($fieldObj);
                             }
                         }
                         $panelObj->addFieldSet($fieldsetObj);
                     } elseif ($block->getName() == "BlockInfo") {
                         $blockinfo = $block;
                         $blockinfoObj = new BlockInfo($panelObj, (int) $blockinfo['id']);
                         $blockinfoObj->setName((string) $blockinfo['name']);
                         $blockinfoObj->setLabel((string) $blockinfo['label']);
                         foreach ($blockinfo->Chapter as $chapter) {
                             $chapterObj = new Chapter($blockinfoObj, (int) $chapter['id']);
                             $chapterObj->setName((string) $chapter['name']);
                             $chapterObj->setLabel((string) $chapter['label']);
                             $chapterObj->setIcon((string) $chapter['icon']);
                             $chapterObj->setCollapsible((string) $chapter['collapsible'] == '1');
                             foreach ($chapter->Section as $section) {
                                 $sectionObj = new Section($chapterObj, (int) $section['id']);
                                 $sectionObj->setName((string) $section['name']);
                                 $sectionObj->setLabel((string) $section['label']);
                                 $sectionObj->setContent((string) $section->Content);
                                 $sectionObj->setAnnotations((string) $section->Annotations);
                                 $chapterObj->addSection($sectionObj);
                             }
                             $blockinfoObj->addChapter($chapterObj);
                         }
                         $panelObj->addFieldSet($blockinfoObj);
                     }
                 }
                 $stepObj->addPanel($panelObj);
             }
             foreach ($step->ActionList as $actionList) {
                 foreach ($actionList as $action) {
                     $actionObj = new Action($stepObj, (string) $action['name'], (string) $action['label']);
                     $actionObj->setClass((string) $action['class']);
                     $actionObj->setWhat((string) $action['what']);
                     $actionObj->setFor((string) $action['for']);
                     $actionObj->setUri((string) $action['uri']);
                     $stepObj->addAction($actionObj);
                 }
             }
             foreach ($step->FootNotes as $footnotes) {
                 $footnotesObj = new FootNotes($stepObj);
                 if ((string) $footnotes['position'] != "") {
                     $footnotesObj->setPosition((string) $footnotes['position']);
                 }
                 foreach ($footnotes as $footnote) {
                     $footnoteObj = new FootNote($stepObj, (int) $footnote['id']);
                     $footnoteObj->setText((string) $footnote);
                     $footnotesObj->addFootNote($footnoteObj);
                 }
                 $stepObj->setFootNotes($footnotesObj);
             }
             $this->steps[] = $stepObj;
         }
         if (!$step0) {
             $this->setDynamic(false);
         }
     }
     if ($simulator->Sites) {
         foreach ($simulator->Sites->Site as $site) {
             $siteObj = new Site($this, (int) $site['id'], (string) $site['name'], (string) $site['home']);
开发者ID:eureka2,项目名称:g6k,代码行数:67,代码来源:Simulator.php


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