static function cache_sugar_vcal_freebusy(&$user_focus) { $focus = new vCal(); // set freebusy members and save $arr = array('user_id'=>$user_focus->id,'type'=>'vfb','source'=>'sugar'); $focus->retrieve_by_string_fields($arr); $focus->content = $focus->get_vcal_freebusy($user_focus,false); $focus->type = 'vfb'; $focus->date_modified = null; $focus->source = 'sugar'; $focus->user_id = $user_focus->id; $focus->save(); }