本文整理匯總了PHP中TrackerFactory::createFromTV3方法的典型用法代碼示例。如果您正苦於以下問題:PHP TrackerFactory::createFromTV3方法的具體用法?PHP TrackerFactory::createFromTV3怎麽用?PHP TrackerFactory::createFromTV3使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類TrackerFactory
的用法示例。
在下文中一共展示了TrackerFactory::createFromTV3方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: createTrackerStructure
private function createTrackerStructure(PFUser $user, $project_id, $tv3_id, $tracker_name, $tracker_description, $tracker_short_name)
{
$project = $this->project_manager->getProject($project_id);
$this->logger->info('--> Migrate structure ');
$new_tracker = $this->tracker_factory->createFromTV3($user, $tv3_id, $project, $tracker_name, $tracker_description, $tracker_short_name);
if (!$new_tracker) {
throw new Tracker_Exception_Migration_StructureCreationException($tracker_name, $tv3_id);
}
$this->logger->info('<-- Structure migrated ' . PHP_EOL);
return $new_tracker->getId();
}