Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit e4c1e06f6392bd2e9fa70d241e8864abcccd1645 1 parent a891777
@robschley authored
Showing with 36 additions and 0 deletions.
  1. +36 −0 libraries/joomla/application/web.php
View
36 libraries/joomla/application/web.php
@@ -893,6 +893,42 @@ public function getBody($asArray = false)
}
/**
+ * 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.
*
Please sign in to comment.
Something went wrong with that request. Please try again.