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
c55aca1b
Commit
c55aca1b
authored
Apr 10, 2015
by
Leigh B Stoller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add helper functions.
parent
a02feb17
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
www/aptui/instance_defs.php
www/aptui/instance_defs.php
+10
-1
No files found.
www/aptui/instance_defs.php
View file @
c55aca1b
...
...
@@ -67,7 +67,8 @@ class Instance
function
manifest
()
{
return
$this
->
field
(
'manifest'
);
}
function
admin_lockdown
()
{
return
$this
->
field
(
'admin_lockdown'
);
}
function
user_lockdown
(){
return
$this
->
field
(
'user_lockdown'
);
}
function
extension_reason
()
{
return
$this
->
field
(
'extension_reason'
);
}
function
extension_reason
()
{
return
$this
->
field
(
'extension_reason'
);
}
function
extension_lockout
()
{
return
$this
->
field
(
'extension_adminonly'
);
}
function
servername
()
{
return
$this
->
field
(
'servername'
);
}
function
aggregate_urn
(){
return
$this
->
field
(
'aggregate_urn'
);
}
function
IsAPT
()
{
...
...
@@ -267,6 +268,14 @@ class Instance
}
return
$am_array
;
}
# helper
function
ParseURN
(
$urn
)
{
if
(
preg_match
(
"/^[^+]*\+([^+]+)\+([^+]+)\+(.+)$/"
,
$urn
,
$matches
))
{
return
array
(
$matches
[
1
],
$matches
[
2
],
$matches
[
3
]);
}
return
array
();
}
function
SetExtensionReason
(
$reason
)
{
...
...
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