Guest User

Untitled

a guest
Oct 22nd, 2017
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. Index: php/odesk/class/Util/BeneName.cls.php
  2. ===================================================================
  3. --- php/odesk/class/Util/BeneName.cls.php (revision 4177)
  4. +++ php/odesk/class/Util/BeneName.cls.php (working copy)
  5. @@ -4,10 +4,22 @@
  6. {
  7. public static function matchBeneName($rpc, $name, $acce)
  8. {
  9. - $res = $rpc->call('UPM::MatchName', $name, $acce);
  10. + $res = static::match($rpc, $name, $acce);
  11.  
  12. - return 0 < ($res['dev_match'] + $res['cny_match']);
  13. + return 0 < ($res['dev_bene_match'] + $res['cny_match']);
  14. }
  15. +
  16. + public static function matchPublicName($rpc, $name, $acce)
  17. + {
  18. + $res = static::match($rpc, $name, $acce);
  19. +
  20. + return 0 < $res['dev_public_match'];
  21. + }
  22. +
  23. + public static function match($rpc, $name, $acce)
  24. + {
  25. + return $rpc->call('UPM::MatchName', $name, $acce);
  26. + }
  27. }
  28.  
  29. ?>
Add Comment
Please, Sign In to add comment