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


PHP StringHelper::sentenceCase方法代码示例

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


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

示例1: formatCitation

 public function formatCitation()
 {
     $citation = "";
     $citation .= $this->formatAuthors() . '. ';
     $citation .= $this->year . '. ';
     $citation .= StringHelper::sentenceCase($this->title) . '. ';
     $citation .= "Di dalam: ";
     if ($this->editors) {
         $citation .= $this->formatEditors() . ', editor. ';
     }
     if ($this->book_title) {
         $citation .= '<em>' . StringHelper::titleCase($this->book_title) . '</em>; ';
     } else {
         $citation .= '[Judul buku tidak diketahui]; ';
     }
     if ($this->pub) {
         $citation .= $this->pub_city . ' (' . $this->pub_country . '): ' . $this->pub . '. ';
     } else {
         $citation .= '[Penerbit tidak diketahui]. ';
     }
     if ($this->pages) {
         $citation .= 'hlm ' . $this->pages . '. ';
     } else {
         $citation .= '[No halaman tidak diketahui]. ';
     }
     return $citation;
 }
开发者ID:ardhimaarik,项目名称:dapus-generator,代码行数:27,代码来源:BookChapter.php

示例2: formatCitation

 public function formatCitation()
 {
     $citation = "";
     $citation .= $this->formatAuthors() . '. ';
     $citation .= $this->year . '. ';
     $citation .= StringHelper::sentenceCase($this->title) . '. ';
     $citation .= "Di dalam: ";
     if ($this->editors) {
         $citation .= $this->formatEditors() . ', editor. ';
     }
     if ($this->proc_name) {
         $citation .= '<em>' . StringHelper::titleCase($this->proc_name) . '</em>; ';
     } else {
         $citation .= '[Prosiding tidak diketahui]; ';
     }
     if ($this->con_date != '') {
         $citation .= $this->con_date . '; ';
         $citation .= $this->con_city . '. ';
     } else {
         $citation .= '[Waktu dan tempat pertemuan tidak diketahui]. ';
     }
     if ($this->pub) {
         $citation .= $this->pub_city . ' (' . strtoupper($this->pub_country) . '): ' . $this->pub . '. ';
     } else {
         $citation .= '[Penerbit tidak diketahui]. ';
     }
     if ($this->pages) {
         $citation .= 'hlm ' . $this->pages . '. ';
     } else {
         $citation .= '[No halaman tidak diketahui]. ';
     }
     return $citation;
 }
开发者ID:ardhimaarik,项目名称:dapus-generator,代码行数:33,代码来源:Proceeding.php

示例3: formatCitation

 public function formatCitation()
 {
     $citation = "";
     $citation .= $this->formatAuthors() . '. ';
     $citation .= $this->year . '. ';
     $citation .= StringHelper::sentenceCase($this->title) . ' ';
     $citation .= '[' . strtolower($this->thesis_type) . ']. ';
     $citation .= $this->univ_city . ' (' . strtoupper($this->univ_country) . '): ';
     if ($this->univ_faculty) {
         $citation .= $this->univ_faculty . ', ';
     }
     $citation .= $this->univ . '.';
     return $citation;
 }
开发者ID:ardhimaarik,项目名称:dapus-generator,代码行数:14,代码来源:Thesis.php

示例4: formatCitation

 public function formatCitation()
 {
     $citation = "";
     $citation .= $this->formatAuthors() . '. ';
     $citation .= $this->year . '. ';
     $citation .= StringHelper::sentenceCase($this->title) . '. ';
     $citation .= '<em>' . StringHelper::titleCase($this->journal) . '</em>. ';
     $citation .= $this->volume;
     if ($this->issue != '') {
         $citation .= '(' . $this->issue . ')';
     }
     $citation .= ':' . $this->pages . '.';
     if ($this->doi != '') {
         $citation .= ' doi:' . $this->doi . '.';
     }
     return $citation;
 }
开发者ID:ardhimaarik,项目名称:dapus-generator,代码行数:17,代码来源:Journal.php


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