You are here

function cc::xml_known_encoding in Constant Contact 7.3

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

Checks if the given encoding is one of the known encodings.

@access private

1 call to cc::xml_known_encoding()
cc::xml_php4_create_parser in ./class.cc.php
Instaniate an XML parser under PHP4.

File

./class.cc.php, line 1820
Constant Contact PHP Class

Class

cc
@file Constant Contact PHP Class

Code

function xml_known_encoding($enc) {
  $enc = drupal_strtoupper($enc);
  if (in_array($enc, $this->xml_known_encodings)) {
    return $enc;
  }
  else {
    return FALSE;
  }
}