當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Step::setFootNotes方法代碼示例

本文整理匯總了PHP中Step::setFootNotes方法的典型用法代碼示例。如果您正苦於以下問題:PHP Step::setFootNotes方法的具體用法?PHP Step::setFootNotes怎麽用?PHP Step::setFootNotes使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Step的用法示例。


在下文中一共展示了Step::setFootNotes方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: loadEntities


//.........這裏部分代碼省略.........
                                 $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']);
             $this->sites[] = $siteObj;
         }
     }
     if ($simulator->Sources) {
         foreach ($simulator->Sources->Source as $source) {
             $sourceObj = new Source($this, (int) $source['id'], (string) $source['datasource'], (string) $source['returnType']);
             $sourceObj->setRequest((string) $source['request']);
             $sourceObj->setSeparator((string) $source['separator']);
             $sourceObj->setDelimiter((string) $source['delimiter']);
             $sourceObj->setReturnPath((string) $source['returnPath']);
             foreach ($source->Parameter as $parameter) {
                 $parameterObj = new Parameter($sourceObj, (string) $parameter['type']);
                 $parameterObj->setName((string) $parameter['name']);
                 $parameterObj->setFormat((string) $parameter['format']);
                 $parameterObj->setData((int) $parameter['data']);
                 $sourceObj->addParameter($parameterObj);
             }
             $this->sources[] = $sourceObj;
         }
     }
     if ($simulator->BusinessRules) {
         foreach ($simulator->BusinessRules->BusinessRule as $brule) {
開發者ID:eureka2,項目名稱:g6k,代碼行數:67,代碼來源:Simulator.php


注:本文中的Step::setFootNotes方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。