Commit dcd59162 authored by Leigh B Stoller's avatar Leigh B Stoller

Add gid(), islocal(), and URN().

parent f8a93b90
...@@ -113,6 +113,7 @@ class Lease ...@@ -113,6 +113,7 @@ class Lease
function owner_uid() { return $this->field("owner_uid"); } function owner_uid() { return $this->field("owner_uid"); }
function uuid() { return $this->field("uuid"); } function uuid() { return $this->field("uuid"); }
function pid() { return $this->field("pid"); } function pid() { return $this->field("pid"); }
function gid() { return $this->field("gid"); }
function lease_type() { return $this->field("type"); } function lease_type() { return $this->field("type"); }
function type() { return $this->field("type"); } function type() { return $this->field("type"); }
function inception() { return $this->field("inception"); } function inception() { return $this->field("inception"); }
...@@ -132,6 +133,7 @@ class Lease ...@@ -132,6 +133,7 @@ class Lease
} }
function size() { return $this->attribute("size"); } function size() { return $this->attribute("size"); }
function fstype() { return $this->attribute("fstype"); } function fstype() { return $this->attribute("fstype"); }
function islocal() { return 1; }
# #
# This is incomplete. # This is incomplete.
...@@ -148,5 +150,14 @@ class Lease ...@@ -148,5 +150,14 @@ class Lease
} }
return 0; return 0;
} }
#
# Form a URN for the dataset.
#
function URN() {
global $OURDOMAIN;
return "urn:publicid:IDN+${OURDOMAIN}+dataset+" . $this->id();
}
} }
?> ?>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment