diff options
Diffstat (limited to 'include/classes/BigPipe/Resource.php')
-rwxr-xr-x | include/classes/BigPipe/Resource.php | 7 |
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 |