public function replace(App_Account_SinaweiboUserInfoDm $dm)
 {
     if (!($data = $dm->getData())) {
         return false;
     }
     return $this->_loadDao()->replace($data);
 }
 private function _updateDb($userId, $userInfo)
 {
     if (!intval($userId)) {
         return false;
     }
     if (!is_array($userInfo) || count($userInfo) < 1) {
         return false;
     }
     $dm = new App_Account_SinaweiboUserInfoDm();
     $dm->setUserId(intval($userId))->setScreenName(trim($userInfo['screen_name']))->setName(trim($userInfo['name']))->setProvince(intval($userInfo['province']))->setCity(intval($userInfo['city']))->setLocation(trim($userInfo['location']))->setDescription(trim($userInfo['description']))->setUrl(trim($userInfo['url']))->setProfileImageUrl(trim($userInfo['profile_image_url']))->setDomain(trim($userInfo['domain']))->setGender(trim($userInfo['gender']))->setFollowersCount(trim($userInfo['followers_count']))->setFriendsCount(intval($userInfo['friends_count']))->setStatusesCount(trim($userInfo['statuses_count']))->setFavouritesCount(trim($userInfo['favourites_count']))->setCreatedAt(trim($userInfo['created_at']))->setVerified($userInfo['verified'])->setCreateTime(Pw::getTime());
     $this->_getSinaweiboUserInfoDs()->replace($dm);
     return true;
 }