Highlighted Object

The highlighted object can be returned using the dmBridge PHP and HTTP APIs.

To access it using the PHP API, use the dmObject::getHighlighted() method, which returns an object of type dmObject. Example:

<?php
$obj
= dmObject::getHighlighted();
if (
$obj->isHighlighted()) {
   echo
"Yup, I'm highlighted";
}
?>

To access the highlighted object using the HTTP API, navigate to http://my_cdm_server/dm/api/?r=objects/highlighted.