imageName = (isset($vars['image']) ? $vars['image'] : (isset($vars['name']) ? $vars['name'] : (isset($vars['imageName']) ? $vars['imageName'] : "" ) ) ) ; if (isset( $vars['imageBasic']->annotations) ) $annotations = $vars['imageBasic']->annotations; elseif (isset($vars['annotations'])) $annotations = $vars['annotations']; $this->annotations = new imageAnnotations($annotations); if (isset($vars['imageConfig'])) $this->config = new imageConfig($vars['imageConfig']); } elseif (is_object($vars)) { $this->imageName = (isset($vars->image ) ? $vars->image : (isset($vars->name) ? $vars->name : (isset($vars->imageName) ? $vars->imageName : "" ) ) ) ; if (isset( $vars->imageBasic->annotations) ) $this->annotations = new imageAnnotations($vars->imageBasic->annotations) ; elseif (isset($vars['annotations'])) $this->annotations = new imageAnnotations($vars['annotations']) ; } } public function getHostControllerName() { if (isset($this->annotations->hostController)) return $this->annotations->hostController; else return false; } public function getClientControllerName() { if (isset($this->annotations->clientController)) return $this->annotations->clientController; else return false; } }