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


PHP UserManager::clearInstance方法代码示例

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


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

示例1: tearDown

 public function tearDown()
 {
     UserManager::clearInstance();
     ProjectManager::clearInstance();
     SystemEventManager::clearInstance();
     unset($GLOBALS['Language']);
 }
开发者ID:pombredanne,项目名称:tuleap,代码行数:7,代码来源:ProjectCreatorTest.php

示例2: tearDown

 public function tearDown()
 {
     UserManager::clearInstance();
     ProjectManager::clearInstance();
     SystemEventManager::clearInstance();
     parent::tearDown();
 }
开发者ID:pombredanne,项目名称:tuleap,代码行数:7,代码来源:OneStepProjectCreationValidatorTest.php

示例3: tearDown

 public function tearDown()
 {
     UserManager::clearInstance();
     unset($GLOBALS['Language']);
     unset($GLOBALS['sys_default_domain']);
     unset($GLOBALS['HTML']);
     parent::tearDown();
 }
开发者ID:pombredanne,项目名称:tuleap,代码行数:8,代码来源:MailBuilderTest.php

示例4: tearDown

 function tearDown()
 {
     UserManager::clearInstance();
     unset($GLOBALS['Language']);
     unset($GLOBALS['Response']);
     unset($GLOBALS['sys_default_domain']);
     unset($GLOBALS['sys_force_ssl']);
     unset($GLOBALS['sys_https_host']);
     unset($GLOBALS['group_id']);
     unset($_REQUEST['type_of_search']);
     ForgeConfig::restore();
     parent::tearDown();
 }
开发者ID:pombredanne,项目名称:tuleap,代码行数:13,代码来源:URLVerificationTest.php

示例5: tearDown

 public function tearDown()
 {
     $GLOBALS['Language'] = null;
     PermissionsManager::clearInstance();
     UserManager::clearInstance();
     if (isset($this->old_ftp_incoming_dir)) {
         $GLOBALS['ftp_incoming_dir'] = $this->old_ftp_incoming_dir;
     } else {
         unset($GLOBALS['ftp_incoming_dir']);
     }
     if (isset($this->old_ftp_frs_dir_prefix)) {
         $GLOBALS['ftp_frs_dir_prefix'] = $this->old_ftp_frs_dir_prefix;
     } else {
         unset($GLOBALS['ftp_frs_dir_prefix']);
     }
 }
开发者ID:blestab,项目名称:tuleap,代码行数:16,代码来源:FRSXMLImporterTest.php

示例6: tearDown

 public function tearDown()
 {
     UserManager::clearInstance();
     parent::tearDown();
 }
开发者ID:nickl-,项目名称:tuleap,代码行数:5,代码来源:UGroupLiteralizerTest.php

示例7: tearDown

 public function tearDown()
 {
     ForgeConfig::restore();
     UserManager::clearInstance();
     parent::tearDown();
 }
开发者ID:uniteddiversity,项目名称:tuleap,代码行数:6,代码来源:ControllerTest.php

示例8: tearDown

 public function tearDown()
 {
     UserManager::clearInstance();
     Tracker_FormElementFactory::clearInstance();
     parent::tearDown();
 }
开发者ID:rinodung,项目名称:tuleap,代码行数:6,代码来源:Tracker_ArtifactTest.php

示例9: tearDown

 public function tearDown()
 {
     WorkflowFactory::clearInstance();
     UserManager::clearInstance();
     unset($this->site_admin_user);
     unset($this->project_admin_user);
     unset($this->all_trackers_admin_user);
     unset($this->tracker1_admin_user);
     unset($this->tracker2_admin_user);
     unset($this->project_member_user);
     unset($this->registered_user);
     unset($this->anonymous);
     unset($this->registered);
     unset($this->project_member);
     unset($this->project_admin);
     unset($this->super_admin);
     unset($this->tracker_submitter);
     unset($this->tracker_assignee);
     unset($this->tracker_submitterassignee);
     unset($this->tracker_admin);
     parent::tearDown();
 }
开发者ID:rinodung,项目名称:tuleap,代码行数:22,代码来源:TrackerTest.php

示例10: addMembersToProject

 private function addMembersToProject(Project $project, PFUser $user) {
     account_add_user_to_group($project->getId(), $user->getUnixName());
     \UserManager::clearInstance();
 }
开发者ID:rinodung,项目名称:tuleap,代码行数:4,代码来源:ProjectHelper.php

示例11: addMembersToProject

 private function addMembersToProject(Project $project, PFUser $user)
 {
     $GLOBALS['sys_email_admin'] = 'noreply@localhost';
     account_add_user_to_group($project->getId(), $user->getUnixName());
     unset($GLOBALS['sys_email_admin']);
     UserManager::clearInstance();
     $this->user_manager = UserManager::instance();
 }
开发者ID:pombredanne,项目名称:tuleap,代码行数:8,代码来源:TestDataBuilder.php

示例12: tearDown

 public function tearDown()
 {
     $this->recurseDeleteInDir($this->tmp_dir);
     rmdir($this->tmp_dir);
     clearstatcache();
     UserManager::clearInstance();
     parent::tearDown();
 }
开发者ID:pdaniel-frk,项目名称:tuleap,代码行数:8,代码来源:Tracker_FormElement_Field_FileTest.php

示例13: tearDown

 public function tearDown()
 {
     try {
         $sys_data_dir_arg = escapeshellarg($GLOBALS['sys_data_dir']);
         $this->system_command->exec("sudo -u gitolite /usr/share/tuleap/plugins/git/bin/gl-delete-test-repository.sh {$sys_data_dir_arg}/gitolite/repositories/test_project");
     } catch (Exception $e) {
         //ignore errors
     }
     parent::tearDown();
     $GLOBALS['sys_data_dir'] = $this->old_sys_data_dir;
     ForgeConfig::restore();
     PermissionsManager::clearInstance();
     PluginManager::clearInstance();
     UserManager::clearInstance();
     unset($GLOBALS['tmp_dir']);
     //revert gitolite driver setAdminPath in its builder
     chdir($this->old_cwd);
 }
开发者ID:LouisRenWeiWei,项目名称:tuleap,代码行数:18,代码来源:GitXmlImporterTest.php

示例14: tearDown

    public function tearDown() {
        unset($_SERVER['HTTP_USER_AGENT']);
        if ($this->user_agent) {
            $_SERVER['HTTP_USER_AGENT'] = $this->user_agent;
        }

        UserManager::clearInstance();
        parent::tearDown();
    }
开发者ID:rinodung,项目名称:tuleap,代码行数:9,代码来源:HTTPRequestTest.php

示例15: tearDown

 public function tearDown()
 {
     parent::tearDown();
     unset($this->artlink_info_123);
     unset($this->artlink_info_321);
     unset($this->artlink_info_666);
     unset($this->artlink_info_999);
     UserManager::clearInstance();
 }
开发者ID:pombredanne,项目名称:tuleap,代码行数:9,代码来源:Tracker_Artifact_ChangesetValue_ArtifactLinkTest.php


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