You are here

function cc::get_id_from_link in Constant Contact 6.3

Same name and namespace in other branches
  1. 6.2 class.cc.php \cc::get_id_from_link()
  2. 7.3 class.cc.php \cc::get_id_from_link()

* Method other methods call to get the unique ID of the resource * Unique ID's are used to identify a specific resource such as a contact or contact list and are passed as arguments to some of the methods * This is also used to get just the last piece of the URL in other functions eg. get_lists() * * @access public

12 calls to cc::get_id_from_link()
cc::get_activities in ./class.cc.php
* Gets all activities * * @access public
cc::get_activity in ./class.cc.php
* Gets an individual activity * * @access public
cc::get_campaign in ./class.cc.php
* Gets an individual campaign * * @access public
cc::get_campaigns in ./class.cc.php
* Gets all campaigns * * @access public
cc::get_contact in ./class.cc.php
* Gets a specific contacts details * * @access public

... See full list

File

./class.cc.php, line 1547

Class

cc
@file

Code

function get_id_from_link($link) {
  $link_bits = explode('/', $link);
  return $link_bits[count($link_bits) - 1];
}