function __construct() { parent::__construct(); $this->projectid = JRequest::getInt('p', 0); $this->personid = JRequest::getInt('pid', 0); $this->teamplayerid = JRequest::getInt('pt', 0); }
function __construct() { parent::__construct(); $this->projectid = JRequest::getInt("p", 0); $this->teamid = JRequest::getInt("tid", 0); $this->getTeam(); }
public function __construct() { parent::__construct(); $app = JFactory::getApplication(); $jinput = $app->input; $this->divisionid = $jinput->getInt('division', 0); $this->roundid = $jinput->getInt('r', 0); }
function __construct() { parent::__construct(); $this->projectid = JRequest::getInt('p', 0); $this->teamid = JRequest::getInt('tid', 0); $this->projectteamid = JRequest::getInt('ttid', 0); $this->getProjectTeam(); }
function __construct() { parent::__construct(); $this->clubid = JRequest::getInt("cid", 0); $this->project_id = JRequest::getInt("p", 0); $this->setStartDate(JRequest::getVar("startdate", $this->startdate, 'request', 'string')); $this->setEndDate(JRequest::getVar("enddate", $this->enddate, 'request', 'string')); }
function __construct() { parent::__construct(); $this->projectid = JRequest::getInt('p', 0); $this->teamid = JRequest::getInt('teamid', 0); $this->divisionid = JRequest::getInt('division', 0); $this->playgroundid = JRequest::getInt('pgid', 0); }
function __construct() { parent::__construct(); $this->projectid = JRequest::getInt('p', 0); $this->teamid = JRequest::getInt('tid', 0); $this->divisionid = JRequest::getInt('division', 0); $this->mode = JRequest::getInt("mode", 0); }
function getDivision($id = 0) { $division = null; if ($this->divisionid != 0) { $division = parent::getDivision($this->divisionid); } return $division; }
public function __construct() { parent::__construct(); $app = JFactory::getApplication(); $jinput = $app->input; $this->projectid = JLHelperFront::stringToInt($jinput->getString('p', 0)); $this->playgroundid = JLHelperFront::stringToInt($jinput->getString('pgid', 0)); }
function __construct() { parent::__construct(); $this->projectid = JRequest::getInt("p", 0); $this->matchid = JRequest::getInt("mid", 0); $this->showpics = JRequest::getInt("pics", 0); $this->projectteamid = JRequest::getInt("ptid", 0); $this->getSpecifiedMatch($this->projectid, $this->projectteamid, $this->matchid); }
function &getProject() { if (empty($this->_project)) { $match =& $this->getMatch(); $this->setProjectID($match->project_id); parent::getProject(); } return $this->_project; }
function __construct() { parent::__construct(); $this->projectid = JRequest::getInt("p", 0); $this->divisionid = JRequest::getInt("division", 0); $this->teamid = JRequest::getInt("tid", 0); $this->matchid = JRequest::getInt("mid", 0); $this->getSpecifiedMatch($this->projectid, $this->divisionid, $this->teamid, $this->matchid); }
public function __construct() { parent::__construct(); $app = JFactory::getApplication(); $jinput = $app->input; $this->clubid = JLHelperFront::stringToInt($jinput->getString('cid', 0)); $this->project_id = JLHelperFront::stringToInt($jinput->getString('p', 0)); $this->setStartDate(JRequest::getVar("startdate", $this->startdate, 'request', 'string')); $this->setEndDate(JRequest::getVar("enddate", $this->enddate, 'request', 'string')); }
public function __construct() { parent::__construct(); $app = JFactory::getApplication(); $jinput = $app->input; $this->projectid = $jinput->getInt('p', 0); $this->teamid = $jinput->getInt('teamid', 0); $this->divisionid = $jinput->getInt('division', 0); $this->playgroundid = $jinput->getInt('pgid', 0); }
public function __construct() { parent::__construct(); $app = JFactory::getApplication(); $jinput = $app->input; $this->projectid = JLHelperFront::stringToInt($jinput->getInt('p', 0)); $this->teamid = JLHelperFront::stringToInt($jinput->getInt('tid', 0)); //preload the team; $this->getTeam(); }
public function __construct() { parent::__construct(); $app = JFactory::getApplication(); $jinput = $app->input; $this->projectid = JLHelperFront::stringToInt($jinput->getInt('p', 0)); $this->divisionid = JLHelperFront::stringToInt($jinput->getInt('division', 0)); $this->teamid = JLHelperFront::stringToInt($jinput->getInt('tid', 0)); $this->matchid = JLHelperFront::stringToInt($jinput->getInt('mid', 0)); $this->getSpecifiedMatch($this->projectid, $this->divisionid, $this->teamid, $this->matchid); }
function __construct() { parent::__construct(); $this->projectid = JRequest::getInt('p', 0); $this->matchid = JRequest::getInt('mid', 0); $this->eventid = JRequest::getInt('e', 0); $this->team1_id = 0; $this->team2_id = 0; $this->projectteam1_id = 0; $this->projectteam2_id = 0; }
function __construct() { parent::__construct(); $this->projectid = JRequest::getInt("p", 0); $this->round = JRequest::getInt("r", $this->getCurrentRound()); $this->part = JRequest::getInt("part", 0); $this->from = JRequest::getInt('from', $this->round); $this->to = JRequest::getInt('to', $this->round); $this->type = JRequest::getInt('type', 0); $this->last = JRequest::getInt('last', 0); $this->selDivision = JRequest::getInt('division', 0); }
function __construct() { $this->projectid = JRequest::getInt("p", 0); $this->round = JRequest::getInt("r", $this->current_round); $this->part = JRequest::getInt("part", 0); $this->from = JRequest::getInt('from', $this->round); $this->to = JRequest::getInt('to', $this->round); $this->type = JRequest::getInt('type', 0); $this->last = JRequest::getInt('last', 0); $this->viewName = JRequest::getVar("view"); $this->selDivision = JRequest::getInt('division', 0); parent::__construct(); }
public function __construct() { parent::__construct(); $app = JFactory::getApplication(); $jinput = $app->input; $this->projectid = JLHelperFront::stringToInt($jinput->getInt("p", 0)); $this->round = JLHelperFront::stringToInt($jinput->getInt("r", $this->getCurrentRound())); $this->part = JLHelperFront::stringToInt($jinput->getInt("part", 0)); $this->from = JLHelperFront::stringToInt($jinput->getInt('from', $this->round)); $this->to = JLHelperFront::stringToInt($jinput->getInt('to', $this->round)); $this->type = JLHelperFront::stringToInt($jinput->getInt('type', 0)); $this->last = JLHelperFront::stringToInt($jinput->getInt('last', 0)); $this->selDivision = JLHelperFront::stringToInt($jinput->getInt('division', 0)); }
function __construct() { parent::__construct(); $this->divisionid = JRequest::getInt('division', 0); $this->mode = JRequest::getInt('mode', 0); $this->order = JRequest::getInt('order', 0); $round = JRequest::getInt('r', -1); $roundid = $round; if ($round) { $roundid = $round; } else { $roundid = $this->getCurrentRound(); } $this->roundid = $roundid; $this->config = $this->getTemplateConfig('results'); }
public function __construct() { parent::__construct(); $app = JFactory::getApplication(); $jinput = $app->input; $this->divisionid = JLHelperFront::stringToInt($jinput->getString('division', 0)); $this->mode = JLHelperFront::stringToInt($jinput->getString('mode', 0)); $this->order = JLHelperFront::stringToInt($jinput->getString('order', 0)); $round = JLHelperFront::stringToInt($jinput->getString('r', 0)); $roundid = $round; if ($round > 0) { $roundid = $round; } else { $roundid = $this->getCurrentRound(); } $this->roundid = $roundid; $this->config = $this->getTemplateConfig('results'); }
public function __construct() { parent::__construct(); $app = JFactory::getApplication(); $jinput = $app->input; $this->projectid = $jinput->getInt('p', 0); // Project-id if ($this->projectid) { # is the / within the string? if (strpos($this->projectid, ':') !== false) { $arr = explode(":", $this->projectid, 2); $this->projectid = $arr[0]; } } $this->teamid = $jinput->getInt('tid', 0); // Team-id if ($this->projectid) { # is the / within the string? if (strpos($this->projectid, ':') !== false) { $arr = explode(":", $this->projectid, 2); $this->projectid = $arr[0]; } } $this->divisionid = $jinput->getInt('division', 0); // Division-id if ($this->divisionid) { # is the / within the string? if (strpos($this->divisionid, ':') !== false) { $arr = explode(":", $this->divisionid, 2); $this->divisionid = $arr[0]; } } $this->mode = $jinput->getInt("mode", 0); // Mode if ($this->mode) { # is the / within the string? if (strpos($this->mode, ':') !== false) { $arr = explode(":", $this->mode, 2); $this->mode = $arr[0]; } } }
function __construct() { $this->projectid = JRequest::getInt("p", 0); $menu =& JMenu::getInstance('site'); $item = $menu->getActive(); $params =& $menu->getParams($item->id); $registry = new JRegistry(); $registry->loadArray($params); //$newparams = $registry->toString('ini'); $newparams = $registry->toArray(); //echo "<b>menue newparams</b><pre>" . print_r($newparams, true) . "</pre>"; foreach ($newparams['data'] as $key => $value) { $this->_params[$key] = $value; } // $this->round = JRequest::getInt( "r", $this->current_round); // $this->part = JRequest::getInt( "part", 0); // $this->from = JRequest::getInt( 'from', $this->round ); // $this->to = JRequest::getInt( 'to', $this->round); // $this->type = JRequest::getInt( 'type', 0 ); // $this->last = JRequest::getInt( 'last', 0 ); // $this->selDivision = JRequest::getInt( 'division', 0 ); parent::__construct(); }
function __construct() { parent::__construct(); $this->projectid = JRequest::getInt('p', 0); $this->treetoid = JRequest::getInt('tnid', 0); }
$awaylink = JoomleagueHelperRoute::getTeamPlanRoute($this->project->slug, $guestteam->team_slug); } else { $homelink = null; $awaylink = null; } $isFavTeam = in_array($hometeam->id, $this->favteams); $home = JoomleagueHelper::formatTeamName($hometeam, "g" . $match->id . "t" . $hometeam->id, $this->config, $isFavTeam, $homelink); $teamA .= '<td class="' . $class1 . '">' . $home . '</td>'; // Check if the user wants to show the club logo or country flag switch ($this->config['show_logo_small']) { case 1: $teamA .= '<td class="' . $class1 . '">'; $teamA .= ' ' . JoomleagueModelProject::getClubIconHtml($hometeam, 1); $teamA .= '</td>'; $teamB .= '<td class="' . $class2 . '">'; $teamB .= JoomleagueModelProject::getClubIconHtml($guestteam, 1) . ' '; $teamB .= '</td>'; break; case 2: $teamA .= '<td class="' . $class1 . '">'; $teamA .= Countries::getCountryFlag($hometeam->country); $teamA .= '</td>'; $teamB .= '<td class="' . $class2 . '">'; $teamB .= Countries::getCountryFlag($guestteam->country); $teamB .= '</td>'; break; case 3: $teamA .= '<td class="' . $class1 . '">'; $teamA .= JoomleagueHelper::getPictureThumb($hometeam->picture, $hometeam->name, $this->config['team_picture_width'], $this->config['team_picture_height'], 1); $teamA .= '</td>'; $teamB .= '<td class="' . $class2 . '">';
$teamA = '<td align="right" valign="top" class="nowrap">'; $teamA .= " " . JoomleagueModelProject::getClubIconHtml($home_logo[0], 1); $teamA .= '</td>'; echo $teamA; } ?> <td class="nowrap"> <?php echo $home->name; ?> </td> <td class="nowrap">-</td> <?php if ($this->config['show_logo'] == 1) { $teamB = '<td align="right" valign="top" class="nowrap">'; $teamB .= " " . JoomleagueModelProject::getClubIconHtml($away_logo[0], 1); $teamB .= '</td>'; echo $teamB; } ?> <td class="nowrap"> <?php echo $away->name; ?> </td> <?php if ($this->config['show_referee']) { ?> <td><?php if (isset($game->referees) && count($game->referees) > 0) { if ($this->project->teams_as_referees) {
function __construct() { parent::__construct(); $this->divisionid = JRequest::getInt('division', 0); $this->roundid = JRequest::getInt('r', 0); }
/** * HasEditPermission */ function hasEditPermission($task = null) { //check for ACL permsission and project admin/editor $allowed = parent::hasEditPermission($task); $user = JFactory::getUser(); if ($user->id > 0 && !$allowed) { // Check if user is the club admin $club = $this->getClub(); if ($user->id == $club->admin) { $allowed = true; } } return $allowed; }
function getChampLogo($ProjectID, $champ_tipp) { $option = JRequest::getCmd('option'); $mainframe =& JFactory::getApplication(); $sChampTeamsList = explode(';', $champ_tipp); foreach ($sChampTeamsList as $key => $value) { $dChampTeamsList[] = explode(',', $value); } foreach ($dChampTeamsList as $key => $value) { $champTeamsList[$value[0]] = $value[1]; } //$mainframe->enqueueMessage(JText::_('champTeamsList -> '.'<pre>'.print_r($champTeamsList,true).'</pre>' ),''); $projectteamid = $champTeamsList[$ProjectID]; $teaminfo = JoomleagueModelProject::getTeaminfo($projectteamid); //$mainframe->enqueueMessage(JText::_('champTeamsList -> '.'<pre>'.print_r($teaminfo->logo_big,true).'</pre>' ),''); return $teaminfo; }