Skip to content
  • Projects
  • Groups
  • Snippets
  • Help

Павел Резуненко / MTAweb

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 1
  • Merge Requests 0
  • Pipelines
  • Wiki
  • Snippets
  • Settings
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Switch branch/tag
  • mtaweb
  • public
  • protected
  • extensions
  • wrest
  • JsonResponse.php
  • Павел Резуненко's avatar
    Added main stream code · 130d3782
    Павел Резуненко committed Oct 29, 2012
    130d3782
JsonResponse.php 358 Bytes
BlameHistoryPermalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
<?php
/**
 * @author Weavora Team <hello@weavora.com>
 * @link http://weavora.com
 * @copyright Copyright (c) 2011 Weavora LLC
 */

class JsonResponse extends WRestResponse{

	public function getContentType()
	{
		return "application/json";
	}

	public function setParams($params = array())
	{
		$this->_body = CJSON::encode($params);
		return $this;
	}
}