Example #1
0
 private function _getProfileSettingsForFollows($id_usr, $type = 'all')
 {
     $userProfileModel = new Default_Model_UserProfiles();
     $return = array();
     if ($type == "all") {
         $types = array('own_follows', 'fvr_follows');
     } else {
         $types = array($type);
     }
     foreach ($types as $type) {
         $list['profile_value_usp'] = 0;
         if ($value = $userProfileModel->getUserProfileValue($id_usr, $type)) {
             $list = $value->toArray();
         }
         $return[$type] = $list['profile_value_usp'];
     }
     //print_r($return);
     return $return;
 }