本文整理匯總了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();
}
示例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);
}
示例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);
}
示例4: isThereAMigrationQueuedForTracker
public function isThereAMigrationQueuedForTracker(Tracker $tracker)
{
return $this->system_event_manager->isThereAnEventAlreadyOnGoingMatchingFirstParameter(SystemEvent_TRACKER_V3_MIGRATION::NAME, $tracker->getItemName());
}