Example #1
0
 public static function getDetailedCharges($projectid, $isManager, $selectedFilters)
 {
     $project = ProjectCache::getInstance()->getProject($projectid);
     $issueSel = $project->getIssueSelection();
     $allFilters = "ProjectVersionFilter,ProjectCategoryFilter,IssueExtIdFilter,IssuePublicPrivateFilter,IssueTagFilter,IssueCodevTypeFilter";
     $params = array('isManager' => $isManager, 'selectedFilters' => $selectedFilters, 'allFilters' => $allFilters, 'maxTooltipsPerPage' => Constants::$maxTooltipsPerPage);
     $detailedChargesIndicator = new DetailedChargesIndicator();
     $detailedChargesIndicator->execute($issueSel, $params);
     $smartyVariable = $detailedChargesIndicator->getSmartyObject();
     $smartyVariable['selectFiltersSrcId'] = $projectid;
     return $smartyVariable;
 }
Example #2
0
 public static function getDetailedCharges(ServiceContract $serviceContract, $isManager, $selectedFilters)
 {
     $issueSel = $serviceContract->getIssueSelection(CommandSet::type_general, Command::type_general);
     $allFilters = "ProjectFilter,ProjectVersionFilter,ProjectCategoryFilter,IssueExtIdFilter,IssuePublicPrivateFilter,IssueTagFilter,IssueCodevTypeFilter";
     $params = array('isManager' => $isManager, 'teamid' => $serviceContract->getTeamid(), 'selectedFilters' => $selectedFilters, 'allFilters' => $allFilters, 'maxTooltipsPerPage' => Constants::$maxTooltipsPerPage);
     $detailedChargesIndicator = new DetailedChargesIndicator();
     $detailedChargesIndicator->execute($issueSel, $params);
     $smartyVariable = $detailedChargesIndicator->getSmartyObject();
     $smartyVariable['selectFiltersSrcId'] = $serviceContract->getId();
     return $smartyVariable;
 }