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


PHP OC_User::deleteUser方法代码示例

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


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

示例1: tearDownAfterClass

 public static function tearDownAfterClass()
 {
     // cleanup test user
     \OC_User::deleteUser(self::TEST_ENCRYPTION_HOOKS_USER1);
     \OC_User::deleteUser(self::TEST_ENCRYPTION_HOOKS_USER2);
     parent::tearDownAfterClass();
 }
开发者ID:samj1912,项目名称:repo,代码行数:7,代码来源:hooks.php

示例2: tearDownAfterClass

 public static function tearDownAfterClass()
 {
     // cleanup users
     \OC_User::deleteUser(self::TEST_FILES_SHARING_API_USER1);
     \OC_User::deleteUser(self::TEST_FILES_SHARING_API_USER2);
     \OC_User::deleteUser(self::TEST_FILES_SHARING_API_USER3);
 }
开发者ID:omusico,项目名称:isle-web-framework,代码行数:7,代码来源:base.php

示例3: tearDown

 protected function tearDown()
 {
     $result = \OC_User::deleteUser(self::$user);
     $this->assertTrue($result);
     $this->logout();
     parent::tearDown();
 }
开发者ID:rosarion,项目名称:core,代码行数:7,代码来源:ajax_rename.php

示例4: setUp

 public function setUp()
 {
     if (!getenv('RUN_OBJECTSTORE_TESTS')) {
         $this->markTestSkipped('objectstore tests are unreliable on travis');
     }
     \OC_App::disable('files_sharing');
     \OC_App::disable('files_versions');
     // reset backend
     \OC_User::clearBackends();
     \OC_User::useBackend('database');
     // create users
     $users = array('test');
     foreach ($users as $userName) {
         \OC_User::deleteUser($userName);
         \OC_User::createUser($userName, $userName);
     }
     // main test user
     $userName = 'test';
     \OC_Util::tearDownFS();
     \OC_User::setUserId('');
     \OC\Files\Filesystem::tearDown();
     \OC_User::setUserId('test');
     $testContainer = 'oc-test-container-' . substr(md5(rand()), 0, 7);
     $params = array('username' => 'facebook100000330192569', 'password' => 'Dbdj1sXnRSHxIGc4', 'container' => $testContainer, 'autocreate' => true, 'region' => 'RegionOne', 'url' => 'http://8.21.28.222:5000/v2.0', 'tenantName' => 'facebook100000330192569', 'serviceName' => 'swift', 'user' => \OC_User::getManager()->get($userName));
     $this->objectStorage = new ObjectStoreToTest($params);
     $params['objectstore'] = $this->objectStorage;
     $this->instance = new ObjectStoreStorage($params);
 }
开发者ID:Combustible,项目名称:core,代码行数:28,代码来源:swift.php

示例5: tearDownAfterClass

 public static function tearDownAfterClass()
 {
     // cleanup test user
     \OC_User::deleteUser(self::TEST_VERSIONS_USER);
     \OC_User::deleteUser(self::TEST_VERSIONS_USER2);
     parent::tearDownAfterClass();
 }
开发者ID:nem0xff,项目名称:core,代码行数:7,代码来源:versions.php

示例6: tearDownAfterClass

 public static function tearDownAfterClass()
 {
     // cleanup test user
     \OC_User::deleteUser(self::TEST_ENCRYPTION_TRASHBIN_USER1);
     \OC\Files\Filesystem::getLoader()->removeStorageWrapper('oc_trashbin');
     parent::tearDownAfterClass();
 }
开发者ID:samj1912,项目名称:repo,代码行数:7,代码来源:trashbin.php

示例7: tearDownAfterClass

 public static function tearDownAfterClass()
 {
     \OC_User::deleteUser(self::TEST_ENCRYPTION_MIGRATION_USER1);
     \OC_User::deleteUser(self::TEST_ENCRYPTION_MIGRATION_USER2);
     \OC_User::deleteUser(self::TEST_ENCRYPTION_MIGRATION_USER3);
     parent::tearDownAfterClass();
 }
开发者ID:0x17de,项目名称:core,代码行数:7,代码来源:MigrationTest.php

示例8: tearDownAfterClass

 public static function tearDownAfterClass()
 {
     // cleanup test user
     \OC_User::deleteUser(\Test_Encryption_Helper::TEST_ENCRYPTION_HELPER_USER1);
     \OC_User::deleteUser(\Test_Encryption_Helper::TEST_ENCRYPTION_HELPER_USER2);
     \OC_Hook::clear();
     \OC_FileProxy::clearProxies();
 }
开发者ID:olucao,项目名称:owncloud-core,代码行数:8,代码来源:helper.php

示例9: tearDown

 protected function tearDown()
 {
     \OC\Files\Filesystem::getLoader()->removeStorageWrapper('oc_trashbin');
     $this->logout();
     \OC_User::deleteUser($this->user);
     \OC_Hook::clear();
     parent::tearDown();
 }
开发者ID:ninjasilicon,项目名称:core,代码行数:8,代码来源:storage.php

示例10: tearDown

 protected function tearDown()
 {
     $result = \OC_User::deleteUser(self::$user);
     $this->assertTrue($result);
     \OC\Files\Filesystem::tearDown();
     \OC\Files\Filesystem::mount($this->originalStorage, array(), '/');
     parent::tearDown();
 }
开发者ID:heldernl,项目名称:owncloud8-extended,代码行数:8,代码来源:ajax_rename.php

示例11: testDeleteUser

 public function testDeleteUser()
 {
     $fail = \OC_User::deleteUser('victim');
     $this->assertFalse($fail);
     $success = \OC_User::createUser('victim', 'password');
     $success = \OC_User::deleteUser('victim');
     $this->assertTrue($success);
 }
开发者ID:0x17de,项目名称:core,代码行数:8,代码来源:user.php

示例12: tearDown

 protected function tearDown()
 {
     foreach ($this->users as $user) {
         \OC_User::deleteUser($user);
     }
     \OC_Group::deleteGroup('admin');
     parent::tearDown();
 }
开发者ID:heldernl,项目名称:owncloud8-extended,代码行数:8,代码来源:testcase.php

示例13: execute

 protected function execute(InputInterface $input, OutputInterface $output)
 {
     $wasSuccessful = \OC_User::deleteUser($input->getArgument('uid'));
     if ($wasSuccessful === true) {
         $output->writeln('The specified user was deleted');
         return;
     }
     $output->writeln('<error>The specified could not be deleted. Please check the logs.</error>');
 }
开发者ID:droiter,项目名称:openwrt-on-android,代码行数:9,代码来源:delete.php

示例14: tearDown

 public function tearDown()
 {
     $userId = OCA_mozilla_sync\User::userHashToId($this->userHash);
     if ($userId != false) {
         OCA_mozilla_sync\User::deleteUser($userId);
     }
     OC_Preferences::deleteUser($this->userName);
     OC_User::deleteUser($this->userName);
 }
开发者ID:netcon-source,项目名称:apps,代码行数:9,代码来源:userservice.php

示例15: tearDown

 public function tearDown()
 {
     $userId = OCA_mozilla_sync\User::userHashToId($this->userHash);
     if ($userId != false) {
         OCA_mozilla_sync\User::deleteUser($userId);
     }
     \OC::$server->getConfig()->deleteAllUserValues($this->userName);
     OC_User::deleteUser($this->userName);
 }
开发者ID:mach-o,项目名称:mozilla_sync,代码行数:9,代码来源:userservice.php


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