.scripts/contentdm.php
/**
   * Step 3.x.3 - Compound Object Determiner
   *
   * Determines if the given pointer is a compound object based on the
   * CONTENTdm API call of `dmGetCompoundObjectInfo`.
   *
   * @param  String $pointer -- Manuscript pointer.
   * @return Array
   */
Step 3.x.3 - Compound Object Determiner
Determines if the given pointer is a compound object based on the
CONTENTdm API call of `dmGetCompoundObjectInfo`.

@param  String $pointer -- Manuscript pointer.
@return Array
Step 3 . x . 3 - Compound Object Determiner Determines if the given pointer is a compound object based on the CONTENTdm API call of ` dmGetCompoundObjectInfo ` . @param String $pointer -- Manuscript pointer . @return Array
private function determineCompoundObject($pointer) {
    $this->logger("Retrieving compound object information.");
    $remote = json_decode(file_get_contents($this->constructParameterURL("dmGetCompoundObjectInfo", $pointer)), true);
    if (array_key_exists("message", $remote)) {
      return array(":is_compound_object" => intval(false));
    } else {
      return array(":is_compound_object" => intval(true));
    }
  }
private function determineCompoundObject ( $ pointer ) { $ this -> logger ( " Retrieving compound object information. " ) ; $ remote = json_decode ( file_get_contents ( $ this -> constructParameterURL ( " dmGetCompoundObjectInfo " , $ pointer ) ) , true ) ; if ( array_key_exists ( " message " , $ remote ) ) { return array ( " :is_compound_object " => intval ( false ) ) ; } else { return array ( " :is_compound_object " => intval ( true ) ) ; } }
Step 3.x.3 - Compound Object Determiner
 Determines if the given pointer is a compound object based on the
 CONTENTdm API call of `dmGetCompoundObjectInfo`.
Step 3 . x . 3 - Compound Object Determiner Determines if the given pointer is a compound object based on the CONTENTdm API call of ` dmGetCompoundObjectInfo ` .
// Note: Returning just `true` and `false` will throw a PDOException with //       an `invalid input syntax` response. I don't know why either, but //       this makes everyone happy.