/**
  * Returns an array with all the content object attributes where the keys are the attribute identifiers.
  *
  * @see eZContentObject::fetchDataMap()
  * @return eZContentObjectAttribute[]
  */
 function dataMap()
 {
     $object = $this->object();
     if (self::$useCurrentUserDraft) {
         $draft = eZContentObjectVersion::fetchLatestUserDraft($object->attribute('id'), eZUser::currentUserID(), $object->currentLanguageObject()->attribute('id'), $object->attribute('modified'));
         if ($draft instanceof eZContentObjectVersion) {
             return $object->fetchDataMap($draft->attribute('version'));
         }
     }
     return $object->fetchDataMap($this->attribute('contentobject_version'));
 }