Exemplo n.º 1
0
 static function getContentEntry($content, $content_type = "application/octet-stream")
 {
     static $contentTemplate;
     if (!isset($contentTemplate)) {
         $contentTemplate = CMISService::getContentTemplate();
     }
     if ($content) {
         return CMISRepositoryWrapper::processTemplate($contentTemplate, array("content" => base64_encode($content), "content_type" => $content_type));
     } else {
         return "";
     }
 }