当前位置: 首页>>代码示例>>PHP>>正文


PHP Tracker::getName方法代码示例

本文整理汇总了PHP中Tracker::getName方法的典型用法代码示例。如果您正苦于以下问题:PHP Tracker::getName方法的具体用法?PHP Tracker::getName怎么用?PHP Tracker::getName使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Tracker的用法示例。


在下文中一共展示了Tracker::getName方法的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: getTitle

 public function getTitle()
 {
     $title = $GLOBALS['Language']->getText('plugin_agiledashboard', 'milestone_planning_pane_title', $this->submilestone_tracker->getName());
     if (ForgeConfig::get('sys_showdeprecatedplanningv1')) {
         $title .= ' V2';
     }
     return $title;
 }
开发者ID:ansarbek,项目名称:tuleap,代码行数:8,代码来源:PlanningV2PaneInfo.class.php

示例2: __construct

 /**
  * @return Reference
  */
 public function __construct(Tracker $tracker, $keyword)
 {
     $base_id = 0;
     $visibility = 'P';
     $is_used = 1;
     parent::__construct($base_id, $keyword, $GLOBALS['Language']->getText('project_reference', 'reference_art_desc_key') . ' - ' . $tracker->getName(), TRACKER_BASE_URL . '/?aid=$1&group_id=$group_id', $visibility, trackerPlugin::SERVICE_SHORTNAME, Tracker_Artifact::REFERENCE_NATURE, $is_used, $tracker->getGroupId());
 }
开发者ID:pombredanne,项目名称:tuleap,代码行数:10,代码来源:Reference.php

示例3: getPossibleArtifactParents

 public function getPossibleArtifactParents(Tracker $parent_tracker, PFUser $user, $limit, $offset)
 {
     $label = '';
     $possible_parents = array();
     $display_selector = true;
     EventManager::instance()->processEvent(TRACKER_EVENT_ARTIFACT_PARENTS_SELECTOR, array('user' => $user, 'parent_tracker' => $parent_tracker, 'possible_parents' => &$possible_parents, 'label' => &$label, 'display_selector' => &$display_selector));
     if (!$possible_parents) {
         $label = $GLOBALS['Language']->getText('plugin_tracker_artifact', 'formelement_artifactlink_open_parent', array($parent_tracker->getName()));
         $possible_parents = $this->artifact_factory->getPaginatedPossibleParentArtifactsUserCanView($user, $parent_tracker->getId(), $limit, $offset);
     }
     return array($label, $possible_parents, $display_selector);
 }
开发者ID:pombredanne,项目名称:tuleap,代码行数:12,代码来源:Tracker_Artifact_PossibleParentsRetriever.php

示例4: getTitle

 /**
  * @return string eg: 'Card Wall'
  */
 public function getTitle()
 {
     return $GLOBALS['Language']->getText('plugin_agiledashboard', 'milestone_planning_pane_title', $this->submilestone_tracker->getName());
 }
开发者ID:pombredanne,项目名称:tuleap,代码行数:7,代码来源:PlanningPaneInfo.class.php

示例5: tracker_name

 public function tracker_name()
 {
     return $this->tracker->getName();
 }
开发者ID:ndjido,项目名称:tuleap,代码行数:4,代码来源:GeneralSettings_Presenter.class.php

示例6: showEditForm

 public static function showEditForm(Tracker $tracker)
 {
     $tpl = array();
     $tpl['TRACKER_TYPE'] = $tracker->trackerType();
     $form = new PHPWS_Form('tracker');
     $form->addHidden('module', 'analytics');
     $form->addHidden('command', 'save_tracker');
     $form->addSubmit('submit', dgettext('analytics', 'Save Tracker'));
     if (isset($_REQUEST['tracker'])) {
         $form->addHidden('tracker', $_REQUEST['tracker']);
     }
     if ($tracker->getId() > 0) {
         $form->addHidden('tracker_id', $tracker->getId());
     }
     $form->addText('name', $tracker->getName());
     $form->setLabel('name', dgettext('analytics', 'Friendly Name'));
     $form->setRequired('name');
     $form->addCheck('active', 1);
     $form->setMatch('active', $tracker->isActive());
     $form->setLabel('active', dgettext('analytics', 'Currently Active'));
     $form->addCheck('disable_if_logged', 1);
     $form->setMatch('disable_if_logged', $tracker->getDisableIfLogged());
     $form->setLabel('disable_if_logged', dgettext('analytics', 'Disable Analytics if a user is logged in'));
     $tracker->addForm($form);
     $tpl = array_merge($tpl, $form->getTemplate());
     $tpl['TRACKER_FORM'] = PHPWS_Template::process($tpl, 'analytics', $tracker->getFormTemplate());
     return PHPWS_Template::process($tpl, 'analytics', 'edit.tpl');
 }
开发者ID:HaldunA,项目名称:phpwebsite,代码行数:28,代码来源:Analytics.php

示例7: saveFieldMapping

 private function saveFieldMapping(Tracker $mapping_tracker, Tracker_FormElement $field)
 {
     if ($this->dao->save($this->tracker->getId(), $mapping_tracker->getId(), $field->getId())) {
         $this->value_dao->delete($this->tracker->getId(), $mapping_tracker->getId());
         $GLOBALS['Response']->addFeedback('info', $GLOBALS['Language']->getText('plugin_cardwall', 'on_top_mapping_changed', array($mapping_tracker->getName(), $field->getLabel())));
     }
 }
开发者ID:pombredanne,项目名称:tuleap,代码行数:7,代码来源:UpdateMappingFields.class.php

示例8: getLabel

 public function getLabel()
 {
     return $this->tracker->getName();
 }
开发者ID:ndjido,项目名称:tuleap,代码行数:4,代码来源:ArtifactReportField.class.php

示例9: postCreateActions

 /**
  * Do all stuff which have to be done after a tracker creation, like reference creation for example
  *
  * @param Tracker $tracker The tracker
  *
  * @return void
  */
 protected function postCreateActions(Tracker $tracker)
 {
     // Create corresponding reference
     $ref = new Reference(0, strtolower($tracker->getItemName()), $GLOBALS['Language']->getText('project_reference', 'reference_art_desc_key') . ' - ' . $tracker->getName(), TRACKER_BASE_URL . '/?aid=$1&group_id=$group_id', 'P', 'plugin_tracker', Tracker_Artifact::REFERENCE_NATURE, '1', $tracker->getGroupId());
     // Force reference creation because default trackers use reserved keywords
     $this->getReferenceManager()->createReference($ref, true);
 }
开发者ID:nterray,项目名称:tuleap,代码行数:14,代码来源:TrackerFactory.class.php

示例10: sortTrackerAlphabetically

 private function sortTrackerAlphabetically(Tracker $a, Tracker $b)
 {
     return strnatcasecmp($a->getName(), $b->getName());
 }
开发者ID:pombredanne,项目名称:tuleap,代码行数:4,代码来源:Presenter.class.php

示例11: duplicateTracker

 /**
  * 
  * @param array $tracker_mapping
  * @param array $field_mapping
  * @param Tracker $tracker
  * @param int $from_project_id
  * @param int $to_project_id
  * @param array $ugroup_mapping the ugroup mapping
  * @return type
  */
 private function duplicateTracker($tracker_mapping, $field_mapping, $tracker, $from_project_id, $to_project_id, $ugroup_mapping)
 {
     $tracker_and_field_mapping = $this->create($to_project_id, $from_project_id, $tracker->getId(), $tracker->getName(), $tracker->getDescription(), $tracker->getItemName(), $ugroup_mapping);
     if ($tracker_and_field_mapping) {
         $tracker_mapping[$tracker->getId()] = $tracker_and_field_mapping['tracker']->getId();
         $field_mapping = array_merge($field_mapping, $tracker_and_field_mapping['field_mapping']);
     } else {
         $GLOBALS['Response']->addFeedback('warning', $GLOBALS['Language']->getText('plugin_tracker_admin', 'tracker_not_duplicated', array($tracker->getName())));
     }
     return array($tracker_mapping, $field_mapping);
 }
开发者ID:pombredanne,项目名称:tuleap,代码行数:21,代码来源:TrackerFactory.class.php

示例12: getLinkToTracker

 /**
  * Renders a link to the given tracker.
  * 
  * @param Tracker $tracker
  * @return String
  */
 private function getLinkToTracker(Tracker $tracker)
 {
     $tracker_id = $tracker->getId();
     $tracker_name = $tracker->getName();
     $tracker_url = TRACKER_BASE_URL . "/?tracker={$tracker_id}&func=admin-formElements";
     $hp = Codendi_HTMLPurifier::instance();
     return '<a href="' . $tracker_url . '">' . $hp->purify($tracker_name) . '</a>';
 }
开发者ID:nterray,项目名称:tuleap,代码行数:14,代码来源:Tracker_FormElement_Field_Burndown.class.php

示例13: createEditPopup

 /**
  * Créer la popup d'édition
  * @param Tracker $p_oTracker
  * @return Code HTML
  */
 private function createEditPopup($p_oTracker)
 {
     $oPopup = new View('popup');
     $oPopup->addData('id', $p_oTracker->getId());
     $oPopup->addData('buttonstyle', 'btn-primary');
     $oPopup->addData('buttonicon', 'fa-edit');
     $oPopup->addData('buttontext', 'Editer');
     $oPopup->addData('title', 'Edition du Tracker');
     //Création du formulaire
     $oFormEdit = new FormGenerator();
     $oFormEdit->setAction('index.php?p=admintrackers&edit=' . $p_oTracker->getId());
     $oFormEdit->addInput('Nom', 'name', true, false, 'text', '', $p_oTracker->getName());
     $oFormEdit->addInput('Format du lien vers la fiche', 'link', false, false, 'text', '', $p_oTracker->getLink());
     $oFormEdit->addInput('Format du lien vers le torrent', 'directlink', false, false, 'text', '', $p_oTracker->getDirectLink());
     $oFormEdit->addCheckbox('Supprimer', 'delete');
     $oFormEdit->create();
     $oPopup->addData('content', $oFormEdit->getCode());
     $oPopup->create();
     return $oPopup->getCode();
 }
开发者ID:Jatax,项目名称:TKS,代码行数:25,代码来源:admintrackers.controller.php


注:本文中的Tracker::getName方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。