function getMetadata(){
- return all_headers;
+ return MANIFOLD_METADATA;
}
// returns all fields of a given method
function getMetadata_fields(method){
var result=new Array();
- jQuery.each(all_headers, function(m,obj){
+ jQuery.each(MANIFOLD_METADATA, function(m,obj){
if(m==method){
jQuery.each(obj['column'], function(i,f){
result.push(f);
}
// returns all properties of a given field
function getMetadata_field(method, field){
- //console.log(all_headers);
var result=new Array();
- jQuery.each(all_headers, function(m,obj){
+ jQuery.each(MANIFOLD_METADATA, function(m,obj){
if(m==method){
jQuery.each(obj['column'], function(i,f){
if(f['column']==field){
}
// returns the value of a property from a field within a method (type of object : resource,node,lease,slice...)
function getMetadata_property(method, field, property){
- //console.log(all_headers);
var result=null;
- jQuery.each(all_headers, function(m,obj){
+ jQuery.each(MANIFOLD_METADATA, function(m,obj){
if(m==method){
jQuery.each(obj['column'], function(i,f){
if(f['column']==field){
}
});
return result;
- //all_headers[method]['column']
- //[field][]
}