From fddb6969a3fea02b432e2a3fb2ffe30caa811a1b Mon Sep 17 00:00:00 2001 From: sbyrd Date: Sun, 29 Nov 2020 16:04:45 -0500 Subject: [PATCH] get host controller --- .gitignore | 1 + image.php | 16 ++++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..85e7c1d --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/.idea/ diff --git a/image.php b/image.php index 276a74d..43748e0 100644 --- a/image.php +++ b/image.php @@ -28,4 +28,20 @@ class image extends objectStructs if (isset($vars['imageConfig'])) $this->config = new imageConfig($vars['imageConfig']); } + + public function getHostController() + { + if (isset($this->annotations->hostController)) + return $this->annotations->hostController; + else + return false; + } + + public function getClientController() + { + if (isset($this->annotations->clientController)) + return $this->annotations->clientController; + else + return false; + } } \ No newline at end of file