Permalink
Browse files

Added getDocument(), getLanguage(), and getSession() to JWeb.

  • Loading branch information...
1 parent a891777 commit e4c1e06f6392bd2e9fa70d241e8864abcccd1645 @robschley committed Oct 28, 2011
Showing with 36 additions and 0 deletions.
  1. +36 −0 libraries/joomla/application/web.php
@@ -892,6 +892,42 @@ public function getBody($asArray = false)
return $asArray ? $this->response->body : implode((array) $this->response->body);
}
+ /**
+ * Method to get the application document object.
+ *
+ * @return JDocument The document object
+ *
+ * @since 11.3
+ */
+ public function getDocument()
+ {
+ return $this->document;
+ }
+
+ /**
+ * Method to get the application language object.
+ *
+ * @return JLanguage The language object
+ *
+ * @since 11.3
+ */
+ public function getLanguage()
+ {
+ return $this->language;
+ }
+
+ /**
+ * Method to get the application session object.
+ *
+ * @return JSession The session object
+ *
+ * @since 11.3
+ */
+ public function getSession()
+ {
+ return $this->session;
+ }
+
/**
* Method to check the current client connnection status to ensure that it is alive. We are
* wrapping this to isolate the connection_status() function from our code base for testing reasons.

0 comments on commit e4c1e06

Please sign in to comment.