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


PHP Requirement::functionalRequirements方法代码示例

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


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

示例1: download_tex

 public function download_tex()
 {
     if (!isset($_SESSION['logged'])) {
         $this->login();
     } else {
         $rs = Requirement::reqSources();
         $sr = Requirement::sourcesReq();
         $frq = Requirement::functionalRequirements();
         $tex = "\\section{Requisiti funzionali}<br>\n                    \\begin{longtable}[H]{|l|p{2cm}|p{6cm}|p{4cm}|}<br>\n                    \\hline<br>\n                    \\textbf{Requisito} & \\textbf{Tipologia} & \\textbf{Descrizione} & \\textbf{Fonti}\\\\<br>\n                    \\hline<br>";
         foreach ($frq as $funcReq) {
             if ($funcReq->getType() == 'F') {
                 $type = 'Funzionale';
             } elseif ($funcReq->getType() == 'T') {
                 $type = 'Tecnologico';
             } elseif ($funcReq->getType() == 'Q') {
                 $type = 'Qualitativo';
             } elseif ($funcReq->getType() == 'B') {
                 $type = 'Vincolo';
             }
             $tex .= $funcReq->getCode() . " & \\multiLineCell{" . $type . "\\\\" . $funcReq->getPriority() . "} & " . $funcReq->getDescription() . " & \\multiLineCell{";
             foreach ($funcReq->getSources() as $sources) {
                 $tex .= $sources->getName() . "\\\\";
             }
             $tex .= "}\\\\<br>\n                        \\hline<br>";
         }
         $tex .= "\\end{longtable}<br>";
         $tex .= "\\section{Tracciamento Requisiti-Fonti}<br>\n                    \\begin{longtable}[H]{|p{5.5cm}|p{5.5cm}|}<br>\n                    \\hline<br>\n                    \\textbf{Requisito} & \\textbf{Fonti}\\\\<br>\n                    \\hline<br>";
         foreach ($rs as $key => $val) {
             $tex .= $key . " & \\multiLineCell[t]{";
             foreach ($val as $v) {
                 $tex .= $v . "\\\\";
             }
             $tex .= "}\\\\<br>\n                        \\hline<br>";
         }
         $tex .= "\\end{longtable}<br>\n                    \\section{Tracciamento Fonti-Requisiti}<br>\n                    \\begin{longtable}[H]{|p{5.5cm}|p{5.5cm}|}<br>\n                    \\hline<br>\n                    \\textbf{Fonte} & \\textbf{Requisiti}\\\\<br>\n                    \\hline<br>";
         foreach ($sr as $key => $val) {
             $tex .= $key . " & \\multiLineCell[t]{";
             foreach ($val as $v) {
                 $tex .= $v . "\\\\";
             }
             $tex .= "}\\\\<br>\n                        \\hline<br>";
         }
         $tex .= "\\end{longtable}<br>";
         require_once 'views/pages/output.php';
     }
 }
开发者ID:ScalateKids,项目名称:Scalatetrack,代码行数:46,代码来源:pages_controller.php


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