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


PHP ProjectManager::getProjectFromAutocompleter方法代码示例

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


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

示例1: migrateProject

 private function migrateProject($project_to_migrate)
 {
     $project = $this->project_manager->getProjectFromAutocompleter($project_to_migrate);
     if ($project && $this->wiki_migrator->canMigrate($project)) {
         $this->system_event_manager->createEvent(SystemEvent_PHPWIKI_SWITCH_TO_PLUGIN::NAME, $project->getId(), SystemEvent::PRIORITY_HIGH);
         $GLOBALS['Response']->addFeedback(Feedback::INFO, $GLOBALS['Language']->getText('plugin_phpwiki', 'allowed_project_allow_project'));
     } else {
         $this->sendUpdateProjectListError();
     }
 }
开发者ID:pombredanne,项目名称:tuleap,代码行数:10,代码来源:PHPWikiAdminController.class.php

示例2: allowSVNTokensForProject

 private function allowSVNTokensForProject($project_to_migrate)
 {
     $project = $this->project_manager->getProjectFromAutocompleter($project_to_migrate);
     if ($project && $this->token_manager->canAuthorizeTokens($project)) {
         $this->token_manager->setProjectAuthorizesTokens($project);
         $this->event_manager->processEvent(Event::SVN_AUTHORIZE_TOKENS, array('group_id' => $project->getID()));
         $GLOBALS['Response']->addFeedback(Feedback::INFO, $GLOBALS['Language']->getText('svn_tokens', 'allowed_project_allow_project'));
     } else {
         $this->sendUpdateProjectListError();
     }
 }
开发者ID:ansarbek,项目名称:tuleap,代码行数:11,代码来源:SVN_Admin_Controller.php

示例3: allowProjectOnMirror

 private function allowProjectOnMirror(Git_Mirror_Mirror $mirror, $project_to_add)
 {
     $project = $this->project_manager->getProjectFromAutocompleter($project_to_add);
     if ($project && $this->git_mirror_resource_restrictor->allowProjectOnMirror($mirror, $project)) {
         $GLOBALS['Response']->addFeedback('info', $GLOBALS['Language']->getText('plugin_git', 'mirror_allowed_project_allow_project'));
         $GLOBALS['Response']->redirect('/plugins/git/admin/?pane=mirrors_admin&action=manage-allowed-projects&mirror_id=' . $mirror->id);
     }
     $GLOBALS['Response']->addFeedback('error', $GLOBALS['Language']->getText('plugin_git', 'mirror_allowed_project_update_project_list_error'));
     $GLOBALS['Response']->redirect('/plugins/git/admin/?pane=mirrors_admin&action=manage-allowed-projects&mirror_id=' . $mirror->id);
 }
开发者ID:pombredanne,项目名称:tuleap,代码行数:10,代码来源:AdminMirrorController.class.php


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