Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
emulab-devel
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
143
Issues
143
List
Boards
Labels
Service Desk
Milestones
Merge Requests
6
Merge Requests
6
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
emulab
emulab-devel
Commits
dcd59162
Commit
dcd59162
authored
Nov 11, 2014
by
Leigh B Stoller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add gid(), islocal(), and URN().
parent
f8a93b90
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
www/lease_defs.php
www/lease_defs.php
+11
-0
No files found.
www/lease_defs.php
View file @
dcd59162
...
...
@@ -113,6 +113,7 @@ class Lease
function
owner_uid
()
{
return
$this
->
field
(
"owner_uid"
);
}
function
uuid
()
{
return
$this
->
field
(
"uuid"
);
}
function
pid
()
{
return
$this
->
field
(
"pid"
);
}
function
gid
()
{
return
$this
->
field
(
"gid"
);
}
function
lease_type
()
{
return
$this
->
field
(
"type"
);
}
function
type
()
{
return
$this
->
field
(
"type"
);
}
function
inception
()
{
return
$this
->
field
(
"inception"
);
}
...
...
@@ -132,6 +133,7 @@ class Lease
}
function
size
()
{
return
$this
->
attribute
(
"size"
);
}
function
fstype
()
{
return
$this
->
attribute
(
"fstype"
);
}
function
islocal
()
{
return
1
;
}
#
# This is incomplete.
...
...
@@ -148,5 +150,14 @@ class Lease
}
return
0
;
}
#
# Form a URN for the dataset.
#
function
URN
()
{
global
$OURDOMAIN
;
return
"urn:publicid:IDN+${OURDOMAIN}+dataset+"
.
$this
->
id
();
}
}
?>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment