Esempio n. 1
0
 public function deleteUser($uid)
 {
     Wind::import('SRV:user.srv.PwClearUserService');
     $userSer = new PwClearUserService($uid);
     $clear = $userSer->getClearTypes();
     $std = PwWindidStd::getInstance('user');
     $std->setMethod('deleteUser', $uid);
     $result = $userSer->run(array_keys($clear));
     if ($result instanceof PwError) {
         return false;
     }
     return true;
 }
Esempio n. 2
0
 /** 
  * 清理用户操作
  * 
  * @return void
  */
 public function doClearAction()
 {
     $info = $this->checkUser();
     /* @var $userSer PwClearUserService */
     $userSer = new PwClearUserService($info['uid'], new PwUserBo($this->adminUser->getUid()));
     if (($result = $userSer->run($this->getInput('clear', 'post'))) instanceof PwError) {
         $this->showError($result->getError(), 'admin/u/manage/run');
     }
     $this->showMessage('USER:clear.success', 'admin/u/manage/run');
 }