本文整理汇总了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']);
}
示例2: tearDown
public function tearDown()
{
UserManager::clearInstance();
ProjectManager::clearInstance();
SystemEventManager::clearInstance();
parent::tearDown();
}
示例3: tearDown
public function tearDown()
{
UserManager::clearInstance();
unset($GLOBALS['Language']);
unset($GLOBALS['sys_default_domain']);
unset($GLOBALS['HTML']);
parent::tearDown();
}
示例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();
}
示例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']);
}
}
示例6: tearDown
public function tearDown()
{
UserManager::clearInstance();
parent::tearDown();
}
示例7: tearDown
public function tearDown()
{
ForgeConfig::restore();
UserManager::clearInstance();
parent::tearDown();
}
示例8: tearDown
public function tearDown()
{
UserManager::clearInstance();
Tracker_FormElementFactory::clearInstance();
parent::tearDown();
}
示例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();
}
示例10: addMembersToProject
private function addMembersToProject(Project $project, PFUser $user) {
account_add_user_to_group($project->getId(), $user->getUnixName());
\UserManager::clearInstance();
}
示例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();
}
示例12: tearDown
public function tearDown()
{
$this->recurseDeleteInDir($this->tmp_dir);
rmdir($this->tmp_dir);
clearstatcache();
UserManager::clearInstance();
parent::tearDown();
}
示例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);
}
示例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();
}
示例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();
}