function cc::get_activity in Constant Contact 6.2
Same name and namespace in other branches
- 6.3 class.cc.php \cc::get_activity()
- 7.3 class.cc.php \cc::get_activity()
* Gets an individual activity * * @access public
File
- ./
class.cc.php, line 846
Class
- cc
- @file
Code
function get_activity($id) {
$xml = $this
->load_url("activities/{$id}");
if (!$xml) {
return false;
}
// parse into nicer array
$_activity = isset($xml['entry']) ? $xml['entry'] : false;
$activity = $_activity['content']['Activity'];
$activity['id'] = $id;
$activity['FileName'] = $this
->get_id_from_link($activity['FileName']);
return $activity;
}