當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。