/**
  * Export constructor
  *
  * @param CMbObject $object        Object to export
  * @param null      $backrefs_tree Backrefs tree
  *
  * @throws CMbException
  */
 function __construct(CMbObject $object, $backrefs_tree = null)
 {
     if (!$object->getPerm(PERM_READ)) {
         throw new CMbException("Permission denied");
     }
     $this->object = $object;
     $this->backrefs_tree = isset($backrefs_tree) ? $backrefs_tree : $object->getExportedBackRefs();
 }
 /**
  * @see parent::getExportedBackRefs()
  */
 function getExportedBackRefs()
 {
     $export = parent::getExportedBackRefs();
     $export["CExClass"] = array("field_groups");
     $export["CExClassFieldGroup"] = array("class_fields", "host_fields", "class_messages");
     $export["CExConcept"] = array("list_items");
     $export["CExList"] = array("list_items");
     return $export;
 }