本文整理汇总了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);
}
}
示例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);
}
}
示例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);
}
}