本文整理汇总了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());
}