當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。