Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Index: php/odesk/class/Util/BeneName.cls.php
- ===================================================================
- --- php/odesk/class/Util/BeneName.cls.php (revision 4177)
- +++ php/odesk/class/Util/BeneName.cls.php (working copy)
- @@ -4,10 +4,22 @@
- {
- public static function matchBeneName($rpc, $name, $acce)
- {
- - $res = $rpc->call('UPM::MatchName', $name, $acce);
- + $res = static::match($rpc, $name, $acce);
- - return 0 < ($res['dev_match'] + $res['cny_match']);
- + return 0 < ($res['dev_bene_match'] + $res['cny_match']);
- }
- +
- + public static function matchPublicName($rpc, $name, $acce)
- + {
- + $res = static::match($rpc, $name, $acce);
- +
- + return 0 < $res['dev_public_match'];
- + }
- +
- + public static function match($rpc, $name, $acce)
- + {
- + return $rpc->call('UPM::MatchName', $name, $acce);
- + }
- }
- ?>
Add Comment
Please, Sign In to add comment