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


PHP Conf::check_format方法代码示例

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


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

示例1: format_of

 public function format_of($text, $check_simple = false)
 {
     return Conf::check_format($this->paperFormat, $check_simple ? $text : null);
 }
开发者ID:vaskevich,项目名称:nu-admissions-review,代码行数:4,代码来源:paperinfo.php

示例2: _check_heading

 private function _check_heading($thenval, $rstate, $srows, $lastheading, &$body)
 {
     if ($this->count != 1 && $thenval != $lastheading) {
         $rstate->headingstart[] = count($body);
     }
     while ($lastheading != $thenval) {
         ++$lastheading;
         $ginfo = get($this->search->groupmap, $lastheading);
         if ($ginfo === null || !isset($ginfo->heading) || strcasecmp($ginfo->heading, "none") == 0) {
             if ($this->count != 1) {
                 $body[] = "  <tr class=\"plheading_blank\"><td class=\"plheading_blank\" colspan=\"{$rstate->ncol}\"></td></tr>\n";
             }
         } else {
             $x = "  <tr class=\"plheading\"";
             if (isset($ginfo->tag)) {
                 $x .= " data-anno-tag=\"{$ginfo->tag}\"";
             }
             if (isset($ginfo->annoId)) {
                 $x .= " data-anno-id=\"{$ginfo->annoId}\" data-tags=\"{$ginfo->tag}#{$ginfo->tagIndex}\"";
             }
             $x .= ">";
             if ($rstate->titlecol) {
                 $x .= "<td class=\"plheading_spacer\" colspan=\"{$rstate->titlecol}\"></td>";
             }
             $x .= "<td class=\"plheading\" colspan=\"" . ($rstate->ncol - $rstate->titlecol) . "\">";
             for ($i = $this->count - 1; $i < count($srows) && $this->_row_thenval($srows[$i]) == $lastheading; ++$i) {
                 /* do nothing */
             }
             $count = plural($i - $this->count + 1, "paper");
             $x .= "<span class=\"plheading_group";
             if ($ginfo->heading !== "" && ($format = Conf::check_format($ginfo->annoFormat, $ginfo->heading))) {
                 $x .= " need-format\" data-format=\"{$format}";
                 $this->need_render = true;
             }
             $x .= "\" data-title=\"" . htmlspecialchars($ginfo->heading) . "\">" . htmlspecialchars($ginfo->heading) . ($ginfo->heading !== "" ? " " : "") . "</span><span class=\"plheading_count\">{$count}</span></td></tr>";
             $body[] = $x;
             $rstate->colorindex = 0;
         }
     }
     return $thenval;
 }
开发者ID:vaskevich,项目名称:nu-admissions-review,代码行数:41,代码来源:paperlist.php

示例3: unparse_anno_json

 public static function unparse_anno_json($anno)
 {
     $j = (object) ["annoid" => $anno->annoId === null ? null : +$anno->annoId];
     if ($anno->tagIndex !== null) {
         $j->tagval = (double) $anno->tagIndex;
     }
     $j->heading = $anno->heading;
     if ($format = Conf::check_format($anno->annoFormat, (string) $anno->heading)) {
         $j->format = +$format;
     }
     return $j;
 }
开发者ID:vaskevich,项目名称:nu-admissions-review,代码行数:12,代码来源:tagger.php


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