当前位置: 首页>>代码示例>>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;未经允许,请勿转载。