本文整理汇总了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']);