parent
2e90ff2bf9
commit
8f1624c054
@ -1,18 +1,17 @@ |
||||
<?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'); |
||||
require_once api_get_path(SYS_CODE_PATH).'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 api_get_path(SYS_CODE_PATH).'metadata/md_document.php'; |
||||
|
||||
$mdObj = new mdobject($_course, $docId); // e.g. '12' |
||||
|
||||
// Fetch example: |
||||
if (is_array($dcelems = $mdStore->mds_get_dc_elements($mdObj))) |
||||
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())); |
||||
?> |
||||
$mdStore->mds_put_dc_elements($mdObj, array('Description'=>time())); |
Loading…
Reference in new issue