original_string: public function getOobResults($param = null,
        $user_ip = null, $gitkit_token = null) {
      if (!$param) {
        $param = $_POST;
      }
      if (!$user_ip) {
        $user_ip = $_SERVER['REMOTE_ADDR'];
      }
      if (!$gitkit_token) {
        $gitkit_token = $this->getTokenString();
      }
      if (isset($param['action'])) {
        try {
          if ($param['action'] == 'resetPassword') {
            $oob_link = $this->buildOobLink(
                $this->passwordResetRequest($param, $user_ip),
                $param['action']);
            return $this->passwordResetResponse($oob_link, $param);
          } else if ($param['action'] == 'changeEmail') {
            if (!$gitkit_token) {
              return $this->failureOobMsg('login is required');
            }
            $oob_link = $this->buildOobLink(
                $this->changeEmailRequest($param, $user_ip, $gitkit_token),
                $param['action']);
            return $this->emailChangeResponse($oob_link, $param);
          }
        } catch (Gitkit_ClientException $error) {
          return $this->failureOobMsg($error->getMessage());
        }
      }
      return $this->failureOobMsg('unknown action type');
    }
code: public function getOobResults($param = null,
        $user_ip = null, $gitkit_token = null) {
      if (!$param) {
        $param = $_POST;
      }
      if (!$user_ip) {
        $user_ip = $_SERVER['REMOTE_ADDR'];
      }
      if (!$gitkit_token) {
        $gitkit_token = $this->getTokenString();
      }
      if (isset($param['action'])) {
        try {
          if ($param['action'] == 'resetPassword') {
            $oob_link = $this->buildOobLink(
                $this->passwordResetRequest($param, $user_ip),
                $param['action']);
            return $this->passwordResetResponse($oob_link, $param);
          } else if ($param['action'] == 'changeEmail') {
            if (!$gitkit_token) {
              return $this->failureOobMsg('login is required');
            }
            $oob_link = $this->buildOobLink(
                $this->changeEmailRequest($param, $user_ip, $gitkit_token),
                $param['action']);
            return $this->emailChangeResponse($oob_link, $param);
          }
        } catch (Gitkit_ClientException $error) {
          return $this->failureOobMsg($error->getMessage());
        }
      }
      return $this->failureOobMsg('unknown action type');
    }
code_tokens: public function getOobResults ( $ param = null , $ user_ip = null , $ gitkit_token = null ) { if ( ! $ param ) { $ param = $ _POST ; } if ( ! $ user_ip ) { $ user_ip = $ _SERVER [ 'REMOTE_ADDR' ] ; } if ( ! $ gitkit_token ) { $ gitkit_token = $ this -> getTokenString ( ) ; } if ( isset ( $ param [ 'action' ] ) ) { try { if ( $ param [ 'action' ] == 'resetPassword' ) { $ oob_link = $ this -> buildOobLink ( $ this -> passwordResetRequest ( $ param , $ user_ip ) , $ param [ 'action' ] ) ; return $ this -> passwordResetResponse ( $ oob_link , $ param ) ; } else if ( $ param [ 'action' ] == 'changeEmail' ) { if ( ! $ gitkit_token ) { return $ this -> failureOobMsg ( 'login is required' ) ; } $ oob_link = $ this -> buildOobLink ( $ this -> changeEmailRequest ( $ param , $ user_ip , $ gitkit_token ) , $ param [ 'action' ] ) ; return $ this -> emailChangeResponse ( $ oob_link , $ param ) ; } } catch ( Gitkit_ClientException $ error ) { return $ this -> failureOobMsg ( $ error -> getMessage ( ) ) ; } } return $ this -> failureOobMsg ( 'unknown action type' ) ; }
docstring: Gets out-of-band results for ResetPassword, ChangeEmail operations etc.
  
  @param null|array $param http post body
  @param null|string $user_ip end user IP address
  @param null|string $gitkit_token Gitkit token in the request
  @return array out-of-band results:
  array(
  'email' => email of the user,
  'oldEmail' => old email (for ChangeEmail only),
  'newEmail' => new email (for ChangeEmail only),
  'oobLink' => url for user click to finish the operation,
  'action' => 'RESET_PASSWORD', or 'CHANGE_EMAIL',
  'response_body' => http response to be sent back to Gitkit widget
  )
docstring_tokens: Gets out - of - band results for ResetPassword ChangeEmail operations etc .