本文整理汇总了PHP中thebuggenie\core\framework\Context::getRouting方法的典型用法代码示例。如果您正苦于以下问题:PHP Context::getRouting方法的具体用法?PHP Context::getRouting怎么用?PHP Context::getRouting使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类thebuggenie\core\framework\Context
的用法示例。
在下文中一共展示了Context::getRouting方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: componentPagination
/**
* @protected entities\SavedSearch $search_object
*/
public function componentPagination()
{
$this->currentpage = $this->search_object->getCurrentPage();
$this->pagecount = $this->search_object->getNumberOfPages();
$this->ipp = $this->search_object->getIssuesPerPage();
$this->route = framework\Context::isProjectContext() ? framework\Context::getRouting()->generate('project_search_paginated', array('project_key' => framework\Context::getCurrentProject()->getKey())) : framework\Context::getRouting()->generate('search_paginated');
$this->parameters = $this->search_object->getParametersAsString();
}
示例2: runLogout
/**
* Logs the user out
*
* @param \thebuggenie\core\framework\Request $request
*
* @return bool
*/
public function runLogout(framework\Request $request)
{
if ($this->getUser() instanceof entities\User) {
framework\Logging::log('Setting user logout state');
$this->getUser()->setOffline();
}
framework\Context::logout();
if ($request->isAjaxCall()) {
return $this->renderJSON(array('status' => 'logout ok', 'url' => framework\Context::getRouting()->generate(framework\Settings::getLogoutReturnRoute())));
}
$this->forward(framework\Context::getRouting()->generate(framework\Settings::getLogoutReturnRoute()));
}
示例3: runTestEmail
/**
* Send a test email
*
* @Route(url="/mailing/test")
* @param \thebuggenie\core\framework\Request $request
*/
public function runTestEmail(framework\Request $request)
{
if ($email_to = $request['test_email_to']) {
try {
if (framework\Context::getModule('mailing')->sendTestEmail($email_to)) {
framework\Context::setMessage('module_message', framework\Context::getI18n()->__('The email was successfully accepted for delivery'));
} else {
framework\Context::setMessage('module_error', framework\Context::getI18n()->__('The email was not sent'));
framework\Context::setMessage('module_error_details', framework\Logging::getMessagesForCategory('mailing', framework\Logging::LEVEL_NOTICE));
}
} catch (\Exception $e) {
framework\Context::setMessage('module_error', framework\Context::getI18n()->__('The email was not sent'));
framework\Context::setMessage('module_error_details', $e->getMessage());
}
} else {
framework\Context::setMessage('module_error', framework\Context::getI18n()->__('Please specify an email address'));
}
$this->forward(framework\Context::getRouting()->generate('configure_module', array('config_module' => 'mailing')));
}
示例4: preExecute
/**
* Pre-execute function
*
* @param framework\Request $request
* @param string $action
*/
public function preExecute(framework\Request $request, $action)
{
// forward 403 if you're not allowed here
if ($request->isAjaxCall() == false) {
$this->forward403unless(framework\Context::getUser()->canAccessConfigurationPage());
}
$this->access_level = $this->getAccessLevel(framework\Settings::CONFIGURATION_SECTION_IMPORT, 'core');
if (!$request->isAjaxCall()) {
$this->getResponse()->setPage('config');
framework\Context::loadLibrary('ui');
$this->getResponse()->addBreadcrumb(framework\Context::getI18n()->__('Configure %thebuggenie_name', array('%thebuggenie_name' => framework\Settings::getSiteHeaderName())), framework\Context::getRouting()->generate('configure'), $this->getResponse()->getPredefinedBreadcrumbLinks('configure'));
}
}
示例5: generateURL
public function generateURL($route, $parameters = array())
{
$url = framework\Context::getRouting()->generate($route, $parameters);
return $this->getMailingUrl() . $url;
}
示例6: _parse_internallink
//.........这里部分代码省略.........
}
if (($file instanceof \thebuggenie\core\entities\File && $file->isImage() || $articlemode) && (mb_strtolower($namespace) == 'image' || $issuemode) && \thebuggenie\core\framework\Settings::isCommentImagePreviewEnabled()) {
$divclasses = array('image_container');
$style_dimensions = '';
foreach ($options as $option) {
$optionlen = mb_strlen($option);
if (mb_substr($option, $optionlen - 2) == 'px') {
if (is_numeric($option[0])) {
$style_dimensions = ' width: ' . $option . ';';
break;
} else {
$style_dimensions = ' height: ' . mb_substr($option, 1) . ';';
break;
}
}
}
if (in_array('thumb', $options)) {
$divclasses[] = 'thumb';
}
if (in_array('left', $options)) {
$divclasses[] = 'icleft';
}
if (in_array('center', $options)) {
$divclasses[] = 'iccenter';
}
if (in_array('right', $options)) {
$divclasses[] = 'icright';
}
$retval = '<div class="' . join(' ', $divclasses) . '"';
if ($issuemode) {
$retval .= ' style="float: left; clear: left;"';
}
$retval .= '>';
$retval .= image_tag($file_link, array('alt' => $caption, 'title' => $caption, 'style' => $style_dimensions, 'class' => 'image'), true);
if ($caption != '') {
$retval .= '<br>' . $caption;
}
$retval .= link_tag($file_link, image_tag('icon_open_new.png', array('style' => 'margin-left: 5px;')), array('target' => 'new_window_' . rand(0, 10000), 'title' => __('Open image in new window')));
$retval .= '</div>';
} else {
if (strpos($file_link, 'http') === 0) {
$retval = $this->_parse_image($file_link, $caption, $options);
} else {
if ($file_link == $filename) {
$retval = $caption . image_tag('icon_open_new.png', array('style' => 'margin-left: 5px;', 'title' => __('File no longer exists.')));
} else {
$retval = link_tag($file_link, $caption . image_tag('icon_open_new.png', array('style' => 'margin-left: 5px;')), array('target' => 'new_window_' . rand(0, 10000), 'title' => __('Open file in new window')));
}
}
}
}
return $retval;
//$file_id = \thebuggenie\core\entities\tables\Files::get
}
if ($namespace == 'TBG') {
if (framework\Context::isCLI()) {
return $href;
}
if (!framework\Context::getRouting()->hasRoute($href)) {
return $href;
}
$options = explode('|', $title);
$title = array_pop($options);
try {
return link_tag(make_url($href), $title);
// $this->parse_image($href,$title,$options);
} catch (\Exception $e) {
return $href;
}
}
if (mb_substr($href, 0, 1) == '/') {
if (framework\Context::isCLI()) {
return $href;
}
$options = explode('|', $title);
$title = array_pop($options);
return link_tag($href, $title);
// $this->parse_image($href,$title,$options);
}
$title = preg_replace('/\\(.*?\\)/', '', $title);
$title = preg_replace('/^.*?\\:/', '', $title);
if (!$namespace || !array_key_exists($namespace, array('ftp', 'http', 'https', 'gopher', 'mailto', 'news', 'nntp', 'telnet', 'wais', 'file', 'prospero', 'aim', 'webcal'))) {
if ($namespace) {
$href = $namespace . ':' . $href;
}
$href = $this->_wiki_link($href);
$title = isset($title) ? $title : $href;
$this->addInternalLinkOccurrence($href);
if (framework\Context::isCLI()) {
return $href;
}
$href = framework\Context::getRouting()->generate('publish_article', array('article_name' => $href));
} else {
$href = $namespace . ':' . $this->_wiki_link($href);
}
if (framework\Context::isCLI()) {
return $href;
}
return link_tag($href, $title);
}
示例7: listen_project_links
public function listen_project_links(framework\Event $event)
{
$event->addToReturnList(array('url' => framework\Context::getRouting()->generate('vcs_commitspage', array('project_key' => framework\Context::getCurrentProject()->getKey())), 'title' => framework\Context::getI18n()->__('Commits')));
}
示例8: getRSSUrl
public function getRSSUrl()
{
switch ($this->getType()) {
case self::VIEW_PREDEFINED_SEARCH:
case self::VIEW_SAVED_SEARCH:
return framework\Context::getRouting()->generate('search', $this->getSearchParameters(true));
break;
case self::VIEW_PROJECT_RECENT_ACTIVITIES:
return framework\Context::getRouting()->generate('project_timeline', array('project_key' => $this->getProject()->getKey(), 'format' => 'rss'));
break;
}
}
示例9: link_tag
}
?>
<?php
if ($tbg_user->canAccessConfigurationPage()) {
?>
<?php
echo link_tag(make_url('configure'), image_tag('tab_config.png') . __('Configure %thebuggenie_name', array('%thebuggenie_name' => \thebuggenie\core\framework\Settings::getSiteHeaderName())));
?>
<?php
}
?>
<?php
\thebuggenie\core\framework\Event::createNew('core', 'user_dropdown_reg')->trigger();
?>
<?php
echo link_tag('http://www.thebuggenie.com/help/' . \thebuggenie\core\framework\Context::getRouting()->getCurrentRouteName(), image_tag('help.png') . __('Help for this page'), array('id' => 'global_help_link'));
?>
<a href="<?php
echo make_url('logout');
?>
" onclick="<?php
if (\thebuggenie\core\framework\Settings::isPersonaAvailable()) {
?>
if (navigator.id) { navigator.id.logout();return false; }<?php
}
?>
"><?php
echo image_tag('logout.png') . __('Logout');
?>
</a>
<div class="header"><?php
示例10: userDashboardProjectButtonLinks
/**
* User dashboard project list buttons listener
*
* @Listener(module="core", identifier="main\Components::DashboardViewUserProjects::links")
*
* @param \thebuggenie\core\framework\Event $event
*/
public function userDashboardProjectButtonLinks(framework\Event $event)
{
$routing = framework\Context::getRouting();
$i18n = framework\Context::getI18n();
$event->addToReturnList(array('url' => $routing->generate('agile_index', array('project_key' => '%project_key%')), 'text' => $i18n->__('Planning')));
}
示例11: toJSON
public function toJSON()
{
$return_values = array('id' => $this->getID(), 'issue_no' => $this->getFormattedIssueNo(), 'state' => $this->getState(), 'closed' => $this->isClosed(), 'created_at' => $this->getPosted(), 'created_at_iso' => date('c', $this->getPosted()), 'updated_at' => $this->getLastUpdatedTime(), 'updated_at_iso' => date('c', $this->getLastUpdatedTime()), 'title' => $this->getRawTitle(), 'href' => framework\Context::getRouting()->generate('viewissue', ['project_key' => $this->getProject()->getKey(), 'issue_no' => $this->getFormattedIssueNo()], false), 'posted_by' => $this->getPostedBy() instanceof \thebuggenie\core\entities\common\Identifiable ? $this->getPostedBy()->toJSON() : null, 'assignee' => $this->getAssignee() instanceof \thebuggenie\core\entities\common\Identifiable ? $this->getAssignee()->toJSON() : null, 'status' => $this->getStatus() instanceof \thebuggenie\core\entities\common\Identifiable ? $this->getStatus()->toJSON() : null);
$fields = $this->getProject()->getVisibleFieldsArray($this->getIssueType());
foreach ($fields as $field => $details) {
$identifiable = true;
switch ($field) {
case 'shortname':
case 'description':
case 'votes':
$identifiable = false;
case 'resolution':
case 'priority':
case 'severity':
case 'category':
case 'reproducability':
$method = 'get' . ucfirst($field);
$value = $this->{$method}();
break;
case 'milestone':
$method = 'get' . ucfirst($field);
$value = $this->{$method}();
if (is_numeric($value) && $value == 0) {
$value = new Milestone();
$value->setID(0);
}
break;
case 'owner':
$value = $this->getOwner();
break;
case 'assignee':
$value = $this->getAssignee();
break;
case 'percent_complete':
$value = $this->getPercentCompleted();
$identifiable = false;
break;
case 'user_pain':
$value = $this->getUserPain();
$identifiable = false;
break;
case 'reproduction_steps':
$value = $this->getReproductionSteps();
$identifiable = false;
break;
case 'estimated_time':
$value = $this->getEstimatedTime();
$identifiable = false;
break;
case 'spent_time':
$value = $this->getSpentTime();
$identifiable = false;
break;
case 'build':
case 'edition':
case 'component':
break;
default:
$value = $this->getCustomField($field);
$identifiable = false;
break;
}
if (isset($value)) {
if ($identifiable) {
$return_values[$field] = $value instanceof \thebuggenie\core\entities\common\Identifiable ? $value->toJSON() : null;
} else {
$return_values[$field] = $value;
}
}
}
$comments = array();
foreach ($this->getComments() as $comment) {
$comments[$comment->getCommentNumber()] = $comment->toJSON();
}
$return_values['comments'] = $comments;
$return_values['visible_fields'] = $fields;
return $return_values;
}
示例12: runBulkUpdateIssues
public function runBulkUpdateIssues(framework\Request $request)
{
$issue_ids = $request['issue_ids'];
$options = array('issue_ids' => array_values($issue_ids));
framework\Context::loadLibrary('common');
$options['last_updated'] = tbg_formatTime(time(), 20);
if (!empty($issue_ids)) {
$options['bulk_action'] = $request['bulk_action'];
switch ($request['bulk_action']) {
case 'assign_milestone':
$milestone = null;
if ($request['milestone'] == 'new') {
$milestone = new entities\Milestone();
$milestone->setProject(framework\Context::getCurrentProject());
$milestone->setName($request['milestone_name']);
$milestone->save();
$options['milestone_url'] = framework\Context::getRouting()->generate('agile_milestone', array('project_key' => $milestone->getProject()->getKey(), 'milestone_id' => $milestone->getID()));
} elseif ($request['milestone']) {
$milestone = new entities\Milestone($request['milestone']);
}
$milestone_id = $milestone instanceof entities\Milestone ? $milestone->getID() : null;
foreach (array_keys($issue_ids) as $issue_id) {
if (is_numeric($issue_id)) {
$issue = new entities\Issue($issue_id);
$issue->setMilestone($milestone_id);
$issue->save();
}
}
$options['milestone_id'] = $milestone_id;
$options['milestone_name'] = $milestone_id ? $milestone->getName() : '-';
break;
case 'set_status':
if (is_numeric($request['status'])) {
$status = new entities\Status($request['status']);
foreach (array_keys($issue_ids) as $issue_id) {
if (is_numeric($issue_id)) {
$issue = new entities\Issue($issue_id);
$issue->setStatus($status->getID());
$issue->save();
}
}
$options['status'] = array('color' => $status->getColor(), 'name' => $status->getName(), 'id' => $status->getID());
}
break;
case 'set_severity':
if (is_numeric($request['severity'])) {
$severity = $request['severity'] ? new entities\Severity($request['severity']) : null;
foreach (array_keys($issue_ids) as $issue_id) {
if (is_numeric($issue_id)) {
$issue = new entities\Issue($issue_id);
$severity_id = $severity instanceof entities\Severity ? $severity->getID() : 0;
$issue->setSeverity($severity_id);
$issue->save();
}
}
$options['severity'] = array('name' => $severity instanceof entities\Severity ? $severity->getName() : '-', 'id' => $severity instanceof entities\Severity ? $severity->getID() : 0);
}
break;
case 'set_resolution':
if (is_numeric($request['resolution'])) {
$resolution = $request['resolution'] ? new entities\Resolution($request['resolution']) : null;
foreach (array_keys($issue_ids) as $issue_id) {
if (is_numeric($issue_id)) {
$issue = new entities\Issue($issue_id);
$resolution_id = $resolution instanceof entities\Resolution ? $resolution->getID() : 0;
$issue->setResolution($resolution_id);
$issue->save();
}
}
$options['resolution'] = array('name' => $resolution instanceof entities\Resolution ? $resolution->getName() : '-', 'id' => $resolution instanceof entities\Resolution ? $resolution->getID() : 0);
}
break;
case 'set_priority':
if (is_numeric($request['priority'])) {
$priority = $request['priority'] ? new entities\Priority($request['priority']) : null;
foreach (array_keys($issue_ids) as $issue_id) {
if (is_numeric($issue_id)) {
$issue = new entities\Issue($issue_id);
$priority_id = $priority instanceof entities\Priority ? $priority->getID() : 0;
$issue->setPriority($priority_id);
$issue->save();
}
}
$options['priority'] = array('name' => $priority instanceof entities\Priority ? $priority->getName() : '-', 'id' => $priority instanceof entities\Priority ? $priority->getID() : 0);
}
break;
case 'set_category':
if (is_numeric($request['category'])) {
$category = $request['category'] ? new entities\Category($request['category']) : null;
foreach (array_keys($issue_ids) as $issue_id) {
if (is_numeric($issue_id)) {
$issue = new entities\Issue($issue_id);
$category_id = $category instanceof entities\Category ? $category->getID() : 0;
$issue->setCategory($category_id);
$issue->save();
}
}
$options['category'] = array('name' => $category instanceof entities\Category ? $category->getName() : '-', 'id' => $category instanceof entities\Category ? $category->getID() : 0);
}
break;
//.........这里部分代码省略.........
示例13: runImportUsers
//.........这里部分代码省略.........
/*
* Find the group we are looking for, we search the entire directory
* We want to find 1 group, if we don't get 1, silently ignore this group.
*/
$fields2 = array($groups_members_attr);
$filter2 = '(&(cn=' . framework\Context::getModule('auth_ldap')->escape($group) . ')(objectClass=' . framework\Context::getModule('auth_ldap')->escape($group_class) . '))';
$results2 = ldap_search($connection, $base_dn, $filter2, $fields2);
if (!$results2) {
framework\Logging::log('failed to search for user: ' . ldap_error($connection), 'ldap', framework\Logging::LEVEL_FATAL);
throw new \Exception(framework\Context::geti18n()->__('Search failed: ') . ldap_error($connection));
}
$data2 = ldap_get_entries($connection, $results2);
if ($data2['count'] != 1) {
continue;
}
/*
* Look through the group's member list. If we are found, grant access.
*/
foreach ($data2[0][strtolower($groups_members_attr)] as $member) {
$member = preg_replace('/(?<=,) +(?=[a-zA-Z])/', '', $member);
$user_dn = preg_replace('/(?<=,) +(?=[a-zA-Z])/', '', $user_dn);
if (!is_numeric($member) && strtolower($member) == strtolower($user_dn)) {
$allowed = true;
}
}
}
if ($allowed == false) {
continue;
}
}
$users[$i] = array();
/*
* Set user's properties.
* Realname is obtained from directory, if not found we set it to the username
* Email is obtained from directory, if not found we set it to blank
*/
if (!array_key_exists(strtolower($fullname_attr), $data[$i])) {
$users[$i]['realname'] = $data[$i]['cn'][0];
} else {
$users[$i]['realname'] = $data[$i][strtolower($fullname_attr)][0];
}
if (!array_key_exists(strtolower($buddyname_attr), $data[$i])) {
$users[$i]['buddyname'] = $data[$i]['cn'][0];
} else {
$users[$i]['buddyname'] = $data[$i][strtolower($buddyname_attr)][0];
}
if (!array_key_exists(strtolower($email_attr), $data[$i])) {
$users[$i]['email'] = '';
} else {
$users[$i]['email'] = $data[$i][strtolower($email_attr)][0];
}
$users[$i]['username'] = $data[$i][strtolower($username_attr)][0];
}
} catch (\Exception $e) {
framework\Context::setMessage('module_error', framework\Context::getI18n()->__('Import failed'));
framework\Context::setMessage('module_error_details', $e->getMessage());
$this->forward(framework\Context::getRouting()->generate('configure_module', array('config_module' => 'auth_ldap')));
}
/*
* For every user that was found, either create a new user object, or update
* the existing one. This will update the created and updated counts as appropriate.
*/
foreach ($users as $ldapuser) {
$username = $ldapuser['username'];
$email = $ldapuser['email'];
$realname = $ldapuser['realname'];
$buddyname = $ldapuser['buddyname'];
try {
$user = \thebuggenie\core\entities\User::getByUsername($username);
if ($user instanceof \thebuggenie\core\entities\User) {
$user->setRealname($realname);
$user->setEmail($email);
// update email address
$user->save();
$updatecount++;
} else {
// create user
$user = new \thebuggenie\core\entities\User();
$user->setUsername($username);
$user->setRealname($realname);
$user->setBuddyname($buddyname);
$user->setEmail($email);
$user->setEnabled();
$user->setActivated();
$user->setPassword($user->getJoinedDate() . $username);
$user->setJoined();
$user->save();
$importcount++;
}
} catch (\Exception $e) {
ldap_unbind($connection);
framework\Context::setMessage('module_error', framework\Context::getI18n()->__('Import failed'));
framework\Context::setMessage('module_error_details', $e->getMessage());
$this->forward(framework\Context::getRouting()->generate('configure_module', array('config_module' => 'auth_ldap')));
}
}
ldap_unbind($connection);
framework\Context::setMessage('module_message', framework\Context::getI18n()->__('Import successful! %imp users imported, %upd users updated from LDAP', array('%imp' => $importcount, '%upd' => $updatecount)));
$this->forward(framework\Context::getRouting()->generate('configure_module', array('config_module' => 'auth_ldap')));
}
示例14: hasTranslatedTemplate
public function hasTranslatedTemplate($template, $is_component = false)
{
if (mb_strpos($template, '/')) {
$templateinfo = explode('/', $template);
$module = $templateinfo[0];
$templatefile = $is_component ? '_' . $templateinfo[1] . '.inc.php' : $templateinfo[1] . '.' . Context::getRequest()->getRequestedFormat() . '.php';
} else {
$module = Context::getRouting()->getCurrentRouteModule();
$templatefile = $is_component ? '_' . $template . '.inc.php' : $template . '.' . Context::getRequest()->getRequestedFormat() . '.php';
}
if (file_exists(THEBUGGENIE_MODULES_PATH . $module . DS . 'i18n' . DS . $this->_language . DS . 'templates' . DS . $templatefile)) {
return THEBUGGENIE_MODULES_PATH . $module . DS . 'i18n' . DS . $this->_language . DS . 'templates' . DS . $templatefile;
} elseif (file_exists(THEBUGGENIE_PATH . 'i18n' . DS . $this->getCurrentLanguage() . DS . 'templates' . DS . $module . DS . $templatefile)) {
return THEBUGGENIE_PATH . 'i18n' . DS . $this->getCurrentLanguage() . DS . 'templates' . DS . $module . DS . $templatefile;
}
return false;
}
示例15: componentExtralinks
public function componentExtralinks()
{
switch (true) {
case framework\Context::getRequest()->hasParameter('quicksearch'):
$searchfor = framework\Context::getRequest()->getParameter('searchfor');
$project_key = framework\Context::getCurrentProject() instanceof entities\Project ? framework\Context::getCurrentProject()->getKey() : 0;
$this->csv_url = framework\Context::getRouting()->generate('project_issues', array('project_key' => $project_key, 'quicksearch' => 'true', 'format' => 'csv')) . '?searchfor=' . $searchfor;
$this->rss_url = framework\Context::getRouting()->generate('project_issues', array('project_key' => $project_key, 'quicksearch' => 'true', 'format' => 'rss')) . '?searchfor=' . $searchfor;
break;
case framework\Context::getRequest()->hasParameter('predefined_search'):
$searchno = framework\Context::getRequest()->getParameter('predefined_search');
$project_key = framework\Context::getCurrentProject() instanceof entities\Project ? framework\Context::getCurrentProject()->getKey() : 0;
$url = framework\Context::getCurrentProject() instanceof entities\Project ? 'project_issues' : 'search';
$this->csv_url = framework\Context::getRouting()->generate($url, array('project_key' => $project_key, 'predefined_search' => $searchno, 'search' => '1', 'format' => 'csv'));
$this->rss_url = framework\Context::getRouting()->generate($url, array('project_key' => $project_key, 'predefined_search' => $searchno, 'search' => '1', 'format' => 'rss'));
break;
default:
preg_match('/((?<=\\/)issues).+$/i', framework\Context::getRequest()->getQueryString(), $get);
if (!isset($get[0])) {
preg_match('/((?<=url=)issues).+$/i', framework\Context::getRequest()->getQueryString(), $get);
}
if (isset($get[0])) {
if (framework\Context::isProjectContext()) {
$this->csv_url = framework\Context::getRouting()->generate('project_issues', array('project_key' => framework\Context::getCurrentProject()->getKey(), 'format' => 'csv')) . '/' . $get[0];
$this->rss_url = framework\Context::getRouting()->generate('project_issues', array('project_key' => framework\Context::getCurrentProject()->getKey(), 'format' => 'rss')) . '?' . $get[0];
} else {
$this->csv_url = framework\Context::getRouting()->generate('search', array('format' => 'csv')) . '/' . $get[0];
$this->rss_url = framework\Context::getRouting()->generate('search', array('format' => 'rss')) . '?' . $get[0];
}
}
break;
}
$i18n = framework\Context::getI18n();
$this->columns = array('title' => $i18n->__('Issue title'), 'issuetype' => $i18n->__('Issue type'), 'assigned_to' => $i18n->__('Assigned to'), 'status' => $i18n->__('Status'), 'resolution' => $i18n->__('Resolution'), 'category' => $i18n->__('Category'), 'severity' => $i18n->__('Severity'), 'percent_complete' => $i18n->__('% completed'), 'reproducability' => $i18n->__('Reproducability'), 'priority' => $i18n->__('Priority'), 'components' => $i18n->__('Component(s)'), 'milestone' => $i18n->__('Milestone'), 'estimated_time' => $i18n->__('Estimate'), 'spent_time' => $i18n->__('Time spent'), 'last_updated' => $i18n->__('Last updated time'), 'comments' => $i18n->__('Number of comments'));
}