예제 #1
0
 private function getNameByID($userid)
 {
     $profile = new Zing_Me_Profile_Profile();
     $userprofile = $profile->getStdProfile($userid);
     if ($userprofile->error == 0) {
         return $userprofile->value->userName;
     }
     return "0";
 }
예제 #2
0
 private function uName2uID($uName)
 {
     $name2ID = new Zing_Me_Profile_Profile();
     $id = $name2ID->getUID($uName);
     if ($id->error == '0') {
         return $id->value;
     }
     return 0;
 }