當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Tracker::getItemName方法代碼示例

本文整理匯總了PHP中Tracker::getItemName方法的典型用法代碼示例。如果您正苦於以下問題:PHP Tracker::getItemName方法的具體用法?PHP Tracker::getItemName怎麽用?PHP Tracker::getItemName使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Tracker的用法示例。


在下文中一共展示了Tracker::getItemName方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: tracker_shortname

 public function tracker_shortname()
 {
     return $this->tracker->getItemName();
 }
開發者ID:ndjido,項目名稱:tuleap,代碼行數:4,代碼來源:GeneralSettings_Presenter.class.php

示例2: 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

示例3: 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

示例4: isThereAMigrationQueuedForTracker

 public function isThereAMigrationQueuedForTracker(Tracker $tracker)
 {
     return $this->system_event_manager->isThereAnEventAlreadyOnGoingMatchingFirstParameter(SystemEvent_TRACKER_V3_MIGRATION::NAME, $tracker->getItemName());
 }
開發者ID:pombredanne,項目名稱:tuleap,代碼行數:4,代碼來源:SystemEventManager.class.php


注:本文中的Tracker::getItemName方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。