You are here

private function CampaignMonitor::createListObj in Campaign Monitor 7

Create API list object.

Parameters

string $list_id: The Campaign Monitor list ID.

Return value

CS_REST_Lists|bool The Campaign Monitor list object or FALSE on failure.

6 calls to CampaignMonitor::createListObj()
CampaignMonitor::createList in lib/campaignmonitor.class.inc
Create a new list at the Campaign Monitor servers.
CampaignMonitor::deleteList in lib/campaignmonitor.class.inc
Delete a list from Campaign Monitor.
CampaignMonitor::getCustomFields in lib/campaignmonitor.class.inc
Gets custom fields.
CampaignMonitor::getListDetails in lib/campaignmonitor.class.inc
Gets list details from Campaign Monitor.
CampaignMonitor::getListStats in lib/campaignmonitor.class.inc
Fetch stats about a given list.

... See full list

File

lib/campaignmonitor.class.inc, line 249
Implementation of the CampaignMonitor class.

Class

CampaignMonitor
Implementation of the CampaignMonitor class.

Code

private function createListObj($list_id) {
  if ($this
    ->libraryLoad(self::FILE_LIST)) {
    return new CS_REST_Lists($list_id, $this->apiKey);
  }
  $this
    ->addError(WATCHDOG_ERROR, t('Failed to locate the list library.'));
  return FALSE;
}