aboutsummaryrefslogtreecommitdiffstats
path: root/include/classes/BigPipe/Resource.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/classes/BigPipe/Resource.php')
-rwxr-xr-xinclude/classes/BigPipe/Resource.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/classes/BigPipe/Resource.php b/include/classes/BigPipe/Resource.php
index 438b83c..4711d48 100755
--- a/include/classes/BigPipe/Resource.php
+++ b/include/classes/BigPipe/Resource.php
@@ -55,5 +55,12 @@ abstract class Resource extends Item {
public function getURL() {
return $this->resourceURL;
}
+
+ #===============================================================================
+ # Return the resource structure
+ #===============================================================================
+ public function getStructure(): array {
+ return ['ID' => $this->getID(), 'HREF' => $this->getURL(), 'PHASE' => $this->getPhaseDoneJS()];
+ }
}
?> \ No newline at end of file