CampaignMonitor::existsTemplate PHP Метод

existsTemplate() публичный Метод

Checks if a template exists
public existsTemplate ( string $templateId ) : boolean
$templateId string The ID of the template.
Результат boolean
    public function existsTemplate($templateId)
    {
        // try and fetch the record
        try {
            $this->getTemplate($templateId);
        } catch (Exception $e) {
            return false;
        }
        // if we made it here, the record exists
        return true;
    }