public function get($key) { switch ($key) { case 'wp_vers': return NULL; case 'plugin_dir': case 'plugin_url': case 'plugin_basename': case 'textdomain_loaded': case 'encoding_converted': case 'theme': case 'theme_root': case 'theme_root_uri': case 'template_dir': case 'template_uri': return $this->{$key}; default: if (!$this->ktai) { return KtaiServices::get($key); } return $this->ktai->get($key); } }