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


PHP CLMText::addCatToName方法代碼示例

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


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

示例1: _getTurnierData

 function _getTurnierData()
 {
     $query = "SELECT id, sid, name, typ, runden, rnd, published, params, catidAlltime, catidEdition" . " FROM #__clm_turniere" . " WHERE id = " . $this->turnierid;
     $this->_db->setQuery($query);
     $this->turnier = $this->_db->loadObject();
     // TO-DO: auslagern
     // zudem PGN-Parameter auswerten
     $turParams = new clm_class_params($this->turnier->params);
     $pgnInput = $turParams->get('pgnInput', 1);
     $pgnPublic = $turParams->get('pgnPublic', 1);
     // User ermitteln
     $user = JFactory::getUser();
     // Flag für View und Template setzen: pgnShow
     // FALSE - PGN nicht verlinken/anzeigen
     // TRUE - PGN-Links setzen und anzeigen
     // 'pgnInput möglich' UND ('pgn öffentlich' ORDER 'User eingeloggt')
     if ($pgnInput == 1 and ($pgnPublic == 1 or $user->id > 0)) {
         $this->pgnShow = TRUE;
     } else {
         $this->pgnShow = FALSE;
     }
     // turniernamen anpassen?
     $addCatToName = $turParams->get('addCatToName', 0);
     if ($addCatToName != 0 and ($this->turnier->catidAlltime > 0 or $this->turnier->catidEdition > 0)) {
         $this->turnier->name = CLMText::addCatToName($addCatToName, $this->turnier->name, $this->turnier->catidAlltime, $this->turnier->catidEdition);
     }
 }
開發者ID:kbaerthel,項目名稱:com_clm,代碼行數:27,代碼來源:turnier_player.php

示例2: _getTurnierData

 function _getTurnierData()
 {
     $query = "SELECT *" . " FROM #__clm_turniere" . " WHERE id = " . $this->turnierid;
     $this->_db->setQuery($query);
     $this->turnier = $this->_db->loadObject();
     // turniernamen anpassen?
     $turParams = new JParameter($this->turnier->params);
     $addCatToName = $turParams->get('addCatToName', 0);
     if ($addCatToName != 0 and ($this->turnier->catidAlltime > 0 or $this->turnier->catidEdition > 0)) {
         $this->turnier->name = CLMText::addCatToName($addCatToName, $this->turnier->name, $this->turnier->catidAlltime, $this->turnier->catidEdition);
     }
 }
開發者ID:ChessLeagueManager,項目名稱:deprecated,代碼行數:12,代碼來源:turnier_tabelle.php

示例3: _getTurnierData

 function _getTurnierData()
 {
     $query = "SELECT t.*, CHAR_LENGTH(t.invitationText) AS invitationLength, s.name AS saisonname, u.name AS tlname, v.Vereinname AS organame" . " FROM #__clm_turniere AS t" . " LEFT JOIN #__clm_saison AS s ON s.id = t.sid" . " LEFT JOIN #__clm_user AS u ON jid = t.tl" . " LEFT JOIN #__clm_dwz_vereine AS v ON v.ZPS = t.vereinZPS" . " WHERE t.id = " . $this->turnierid;
     $this->_db->setQuery($query);
     $this->turnier = $this->_db->loadObject();
     // turniernamen anpassen?
     $turParams = new JParameter($this->turnier->params);
     $addCatToName = $turParams->get('addCatToName', 0);
     if ($addCatToName != 0 and ($this->turnier->catidAlltime > 0 or $this->turnier->catidEdition > 0)) {
         $this->turnier->name = CLMText::addCatToName($addCatToName, $this->turnier->name, $this->turnier->catidAlltime, $this->turnier->catidEdition);
     }
 }
開發者ID:ChessLeagueManager,項目名稱:deprecated,代碼行數:12,代碼來源:turnier_info.php


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