| Current Path : /var/www/html/components/com_jchat/View/Stream/ |
| Current File : /var/www/html/components/com_jchat/View/Stream/JsonView.php |
<?php
namespace JExtstore\Component\JChat\Site\View\Stream;
/**
* @author Joomla! Extensions Store
* @package JCHAT::STREAM::administrator::components::com_jchat
* @subpackage views
* @subpackage stream
* @Copyright (C) 2015 Joomla! Extensions Store
* @license GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html
*/
defined ( '_JEXEC' ) or die ( 'Restricted access' );
use JExtstore\Component\JChat\Administrator\Framework\View as JChatView;
/**
* View for JS client
*
* @package JCHAT::STREAM::administrator::components::com_jchat
* @subpackage views
* @subpackage stream
* @since 1.0
*/
class JsonView extends JChatView {
/**
* Return application/json response to JS client APP
* Replace $tpl optional param with $userData contents to inject
*
* @access public
* @param string $userData
* @return void
*/
public function display($userData = null) {
echo json_encode($userData);
}
}