Chamilo is a learning management system focused on ease of use and accessibility
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
chamilo-lms/main/metadata/doc/dcex.php

18 lines
648 B

<?php
require_once("../metadata/md_funcs.php"); $mdStore = new mdstore(TRUE);
require_once(api_get_path(LIBRARY_PATH) . 'xmd.lib.php');
require_once(api_get_path(LIBRARY_PATH) . 'xht.lib.php');
require_once('../metadata/md_document.php');
$mdObj = new mdobject($_course, $docId); // e.g. '12'
// Fetch example:
if (is_array($dcelems = $mdStore->mds_get_dc_elements($mdObj)))
echo '<div>', htmlspecialchars($dcelems['Identifier']), ': ',
htmlspecialchars($dcelems['Description']), '</div>';
// Store example:
$langMdCopyright = 'Provided the source is acknowledged';
$mdStore->mds_put_dc_elements($mdObj, array('Description'=>time()));
?>