Skip to content

Commit

Permalink
Added getDocument(), getLanguage(), and getSession() to JWeb.
Browse files Browse the repository at this point in the history
  • Loading branch information
robschley committed Oct 28, 2011
1 parent a891777 commit e4c1e06
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions libraries/joomla/application/web.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -892,6 +892,42 @@ public function getBody($asArray = false)
return $asArray ? $this->response->body : implode((array) $this->response->body); 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 * 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. * wrapping this to isolate the connection_status() function from our code base for testing reasons.
Expand Down

0 comments on commit e4c1e06

Please sign in to comment.