示例#1
0
 public function signupUser($user)
 {
     Zend_Registry::get('logger')->entering();
     $transactionId = $this->create();
     $users = new User();
     $swaplady = $users->fetchRow('username = "******"');
     Zend_Registry::get('logger')->debug('Transfer signup bonus from swaplady to user');
     SwapbuckEntry::transfer($transactionId, $swaplady, $user, self::SIGNUP_BONUS);
     Zend_Registry::get('logger')->exiting();
     return $transactionId;
 }