本文整理汇总了PHP中CLMText类的典型用法代码示例。如果您正苦于以下问题:PHP CLMText类的具体用法?PHP CLMText怎么用?PHP CLMText使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了CLMText类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: _getForms
function _getForms()
{
// category
list($this->parentArray, $this->parentKeys) = CLMCategoryTree::getTree();
if (count($this->parentArray) > 0) {
// nur, wenn Kategorien existieren
$parentlist[] = JHtml::_('select.option', '0', CLMText::selectOpener(JText::_('NO_PARENT')), 'id', 'name');
foreach ($this->parentArray as $key => $value) {
$parentlist[] = JHtml::_('select.option', $key, $value, 'id', 'name');
}
$this->form['catidAlltime'] = JHtml::_('select.genericlist', $parentlist, 'catidAlltime', 'class="inputbox" size="1" style="max-width: 250px;"', 'id', 'name', intval($this->turnier->catidAlltime));
$this->form['catidEdition'] = JHtml::_('select.genericlist', $parentlist, 'catidEdition', 'class="inputbox" size="1" style="max-width: 250px;"', 'id', 'name', intval($this->turnier->catidEdition));
}
// Saison
$this->form['sid'] = CLMForm::selectSeason('sid', $this->turnier->sid);
// Modus
$this->form['modus'] = CLMForm::selectModus('typ', $this->turnier->typ, false, ' onChange="showFormRoundscount()";');
// Tiebreakers
$this->form['tiebr1'] = CLMForm::selectTiebreakers('tiebr1', $this->turnier->tiebr1);
$this->form['tiebr2'] = CLMForm::selectTiebreakers('tiebr2', $this->turnier->tiebr2);
$this->form['tiebr3'] = CLMForm::selectTiebreakers('tiebr3', $this->turnier->tiebr3);
// stages/dg
$this->form['dg'] = CLMForm::selectStages('dg', $this->turnier->dg);
// director/tl
$this->form['tl'] = CLMForm::selectDirector('tl', $this->turnier->tl);
// bezirksveranstaltung?
$this->form['bezirkTur'] = JHtml::_('select.booleanlist', 'bezirkTur', 'class="inputbox"', $this->turnier->bezirkTur);
// vereinZPS
// $this->form['vereinZPS']= CLMForm::selectVereinZPS('vereinZPS', $this->turnier->vereinZPS);
$this->form['vereinZPS'] = CLMForm::selectVereinZPSuVerband('vereinZPS', $this->turnier->vereinZPS);
// director/tl
$this->form['tl'] = CLMForm::selectDirector('tl', $this->turnier->tl);
// published
$this->form['published'] = CLMForm::radioPublished('published', $this->turnier->published);
}
示例2: _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);
}
}
示例3: checkData
/**
* bearbeitet und überprüft Daten
*
*/
function checkData()
{
$this->name = trim($this->name);
if (strlen($this->name) == 0) {
$this->setError(CLMText::errorText('ROUND_NAME', 'MISSING'));
return false;
} elseif ($this->nr < 1) {
$this->setError(CLMText::errorText('ROUND_NR', 'MISSING'));
return false;
}
// weitere
if ($this->tl_ok == 1) {
// Bestätigung gesetzt?
$tournamentRound = new CLMTournamentRound($this->turnier, $this->id);
if (!$tournamentRound->checkResultsComplete()) {
$this->setError(CLMText::errorText('RESULTS', 'INCOMPLETE'));
return false;
}
}
if ($this->startzeit != '') {
if (!CLMText::isTime($this->startzeit, true, false)) {
$this->setError(CLMText::errorText('RUNDE_STARTTIME', 'IMPOSSIBLE'));
return false;
}
}
return true;
}
示例4: display
function display($tpl = null)
{
$model =& $this->getModel();
$spieler = $model->getCLMSpieler();
$this->assignRef('spieler', $spieler);
$model =& $this->getModel();
$runden = $model->getCLMRunden();
$this->assignRef('runden', $runden);
$model =& $this->getModel();
$dwz_date_new = $model->getCLMlog();
$this->assignRef('dwz_date_new', $dwz_date_new);
$model =& $this->getModel();
$spielerliste = $model->getCLMSpielerliste();
$this->assignRef('spielerliste', $spielerliste);
$model =& $this->getModel();
$vereinsliste = $model->getCLMVereinsliste();
$this->assignRef('vereinsliste', $vereinsliste);
$model =& $this->getModel();
$saisons = $model->getCLMSaisons();
$this->assignRef('saisons', $saisons);
$document =& JFactory::getDocument();
// Title in Browser
$headTitle = CLMText::composeHeadTitle(array($spieler[0]->Vereinname, $spieler[0]->Spielername));
$document->setTitle($headTitle);
parent::display($tpl);
}
示例5: _getParameters
function _getParameters()
{
$mainframe =& JFactory::getApplication();
global $option;
// search
$this->param['search'] = $mainframe->getUserStateFromRequest("{$option}.search", 'search', '', 'string');
$this->param['search'] = JString::strtolower($this->param['search']);
// parent
$this->param['parentid'] = $mainframe->getUserStateFromRequest("{$option}.filter_parentid", 'filter_parentid', 0, 'int');
// get Tree
list($this->parentArray, $this->parentKeys, $this->parentChilds) = CLMCategoryTree::getTree();
$parentlist[] = JHTML::_('select.option', '0', CLMText::selectOpener(JText::_('NO_PARENT')), 'id', 'name');
foreach ($this->parentArray as $key => $value) {
$parentlist[] = JHTML::_('select.option', $key, $value, 'id', 'name');
}
$this->form['parent'] = JHTML::_('select.genericlist', $parentlist, 'filter_parentid', 'class="inputbox" size="1" style="max-width: 250px;"' . CLMText::stringOnchange(TRUE), 'id', 'name', $this->param['parentid']);
// Modus/Typ
$this->param['modus'] = $mainframe->getUserStateFromRequest("{$option}.filter_modus", 'filter_modus', 0, 'int');
// Bezirk
$this->param['bezirk'] = $mainframe->getUserStateFromRequest("{$option}.filter_bezirk", 'filter_bezirk', 0, 'int');
// Saison
$this->param['sid'] = $mainframe->getUserStateFromRequest("{$option}.filter_sid", 'filter_sid', 0, 'int');
// Statusfilter
$this->param['state'] = $mainframe->getUserStateFromRequest("{$option}.filter_state", 'filter_state', '', 'word');
// Order
$this->param['order'] = $mainframe->getUserStateFromRequest("{$option}.filter_order", 'filter_order', 'a.id', 'cmd');
// JRequest::getString('filter_order', 'a.id');
$this->param['order_Dir'] = $mainframe->getUserStateFromRequest("{$option}.filter_order_Dir", 'filter_order_Dir', '', 'word');
}
示例6: display
function display($tpl = null)
{
$model = $this->getModel();
$liga = $model->getCLMliga();
$this->assignRef('liga', $liga);
$model = $this->getModel();
$remis = $model->getCLMRemis();
$this->assignRef('remis', $remis);
$model = $this->getModel();
$kampflos = $model->getCLMKampflos();
$this->assignRef('kampflos', $kampflos);
$model = $this->getModel();
$heim = $model->getCLMHeim();
$this->assignRef('heim', $heim);
$model = $this->getModel();
$gast = $model->getCLMGast();
$this->assignRef('gast', $gast);
$model = $this->getModel();
$gesamt = $model->getCLMGesamt();
$this->assignRef('gesamt', $gesamt);
//$model = $this->getModel();
//$spieler = $model->getCLMSpieler();
//$this->assignRef('spieler' , $spieler);
$model = $this->getModel();
$bestenliste = $model->getCLMBestenliste();
$this->assignRef('bestenliste', $bestenliste);
$model = $this->getModel();
$mannschaft = $model->getCLMMannschaft();
$this->assignRef('mannschaft', $mannschaft);
$model = $this->getModel();
$brett = $model->getCLMBrett();
$this->assignRef('brett', $brett);
$model = $this->getModel();
$gbrett = $model->getCLMGBrett();
$this->assignRef('gbrett', $gbrett);
$model = $this->getModel();
$rbrett = $model->getCLMRBrett();
$this->assignRef('rbrett', $rbrett);
$model = $this->getModel();
$kbrett = $model->getCLMKBrett();
$this->assignRef('kbrett', $kbrett);
$model = $this->getModel();
$kgmannschaft = $model->getCLMkgMannschaft();
$this->assignRef('kgmannschaft', $kgmannschaft);
$model = $this->getModel();
$kvmannschaft = $model->getCLMkvMannschaft();
$this->assignRef('kvmannschaft', $kvmannschaft);
$document = JFactory::getDocument();
// Title in Browser
$headTitle = CLMText::composeHeadTitle(array($liga[0]->name, JText::_('LEAGUE_STATISTIK')));
$document->setTitle($headTitle);
/* Call the state object */
$state = $this->get('state');
/* Get the values from the state object that were inserted in the model's construct function */
$lists['order'] = $state->get('filter_order_bl');
$lists['order_Dir'] = $state->get('filter_order_Dir_bl');
$this->assignRef('lists', $lists);
parent::display($tpl);
}
示例7: checkData
function checkData()
{
if (trim($this->name) == '') {
// Name vorhanden
$this->setError(CLMText::errorText('NAME', 'MISSING'));
return false;
}
return true;
}
示例8: _saveDo
function _saveDo()
{
JRequest::checkToken() or die('Invalid Token');
if (CLM_usertype != 'admin' and CLM_usertype != 'tl') {
JError::raiseWarning(500, JText::_('TOURNAMENT_NO_ACCESS'));
return FALSE;
}
// Task
$task = JRequest::getVar('task');
// Instanz der Tabelle
$row =& JTable::getInstance('turplayeredit', 'TableCLM');
$row->load($this->playerid);
// Daten zu dieser ID laden
// Spieler existent?
if (!$row->id) {
JError::raiseWarning(500, CLMText::errorText('PLAYER', 'NOTEXISTING'));
return FALSE;
// Runde gehört zu Turnier?
} elseif ($row->turnier != $this->turnierid) {
JError::raiseWarning(500, CLMText::errorText('PLAYER', 'NOACCESS'));
return FALSE;
}
if (!$row->bind(JRequest::get('post'))) {
JError::raiseError(500, $row->getError());
return FALSE;
}
if (!$row->check(JRequest::get('post'))) {
JError::raiseError(500, $row->getError());
return FALSE;
}
if (!$row->store()) {
JError::raiseError(500, $row->getError());
return FALSE;
}
$row->checkin();
$text = JText::_('PARTICIPANT_EDITED') . ": " . $row->name;
// Log schreiben
$clmLog = new CLMLog();
$clmLog->aktion = $text;
$clmLog->params = array('sid' => $row->sid, 'tid' => $this->turnierid);
// TurnierID wird als LigaID gespeichert
$clmLog->write();
$app =& JFactory::getApplication();
$app->enqueueMessage($text);
// wenn 'apply', weiterleiten in form
if ($task == 'apply') {
// Weiterleitung bleibt im Formular
$this->adminLink->more = array('playerid' => $this->playerid);
} else {
// Weiterleitung in Liste
$this->adminLink->more = array('id' => $this->turnierid);
$this->adminLink->view = "turplayers";
// WL in Liste
}
return TRUE;
}
示例9: checkData
function checkData()
{
// aktuelle Daten laden
$accesspoint = new CLMAccesspoint($this->id, true);
if (trim($this->accesspoint) == '') {
// Name vorhanden
$this->setError(CLMText::errorText('NAME', 'MISSING'));
return false;
}
return true;
}
示例10: _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);
}
}
示例11: _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);
}
}
示例12: display
function display($tpl = null)
{
$config = clm_core::$db->config();
$model = $this->getModel();
$document = JFactory::getDocument();
$document->addScript('http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js');
$document->addScript(JURI::base() . 'components/com_clm/javascript/updateTableHeaders.js');
// Title in Browser
$headTitle = CLMText::composeHeadTitle(array($model->turnier->name, JText::_('TOURNAMENT_TABLE')));
$document->setTitle($headTitle);
$this->assignRef('turnier', $model->turnier);
$tourn_linkclub = $config->tourn_linkclub;
$this->assignRef('tourn_linkclub', $tourn_linkclub);
$this->assignRef('players', $model->players);
parent::display($tpl);
}
示例13: checkData
/**
* Overloaded check function
*
* @access public
* @return boolean
* @see JTable::check
* @since 1.5
*/
function checkData()
{
// aktuelle Daten laden
// $category = new CLMCategory($this->id, TRUE);
if (trim($this->name) == '') {
// Name vorhanden
$this->setError(CLMText::errorText('NAME', 'MISSING'));
return false;
/*
} elseif ($this->sid <= 0) { // SaisonID > 0
$this->setError( CLMText::errorText('SEASON', 'IMPOSSIBLE') );
return false;
} elseif ($this->tl <= 0) {
$this->setError( CLMText::errorText('TOURNAMENT_DIRECTOR', 'MISSING') );
return false;
*/
}
return true;
}
示例14: _getForms
function _getForms()
{
// get Tree
list($this->parentArray, $this->parentKeys) = CLMCategoryTree::getTree();
// parent
$parentlist[] = JHTML::_('select.option', '0', CLMText::selectOpener(JText::_('NO_PARENT')), 'id', 'name');
foreach ($this->parentArray as $key => $value) {
// Einträge ausscheiden, die die Kategorie selbst sind, ODER der Kategorie untergeordent sind!
if ($key != $this->category->id) {
if (!isset($this->parentKeys[$key]) or isset($this->parentKeys[$key]) and !in_array($this->category->id, $this->parentKeys[$key])) {
$parentlist[] = JHTML::_('select.option', $key, $value, 'id', 'name');
}
}
}
$this->form['parent'] = JHTML::_('select.genericlist', $parentlist, 'parentid', 'class="inputbox" size="1"', 'id', 'name', intval($this->category->parentid));
// director/tl
// $this->form['tl'] = CLMForm::selectDirector('tl', $this->category->tl);
// published
$this->form['published'] = CLMForm::radioPublished('published', $this->category->published);
}
示例15: check
function check()
{
if (trim($this->name) == '') {
// Name vorhanden
$this->setError(CLMText::errorText('NAME', 'MISSING'));
return false;
} elseif (!is_numeric($this->NATrating)) {
// TWZ = Zahl
$this->setError(CLMText::errorText('RATING', 'NOTANUMBER'));
return false;
} elseif (!is_numeric($this->FIDEelo)) {
// TWZ = Zahl
$this->setError(CLMText::errorText('FIDE_ELO', 'NOTANUMBER'));
return false;
} elseif (!is_numeric($this->twz)) {
// TWZ = Zahl
$this->setError(CLMText::errorText('TWZ', 'NOTANUMBER'));
return false;
}
return true;
}