Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Aug 9th, 2012  |  syntax: None  |  size: 0.89 KB  |  hits: 6  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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.  ?>