Migrated conversion utilities to the Convert class.

This commit is contained in:
Josh Sherman 2010-11-25 00:15:25 -05:00
parent dce116fa54
commit aed0942654
5 changed files with 156 additions and 136 deletions

View file

@ -19,13 +19,6 @@
* JSON Display
*
* Displays data in JavaScript Object Notation.
*
* Requires PHP 5 >= 5.2.0 or PECL json >= 1.2.0
* Note: PECL json 1.2.1 is included /vendors
*
* @link http://json.org/
* @link http://us.php.net/json_encode
* @link http://pecl.php.net/package/json
*/
class Display_JSON extends Display_Common
{
@ -34,7 +27,7 @@ class Display_JSON extends Display_Common
*/
public function render()
{
return $this->jsonEncode();
echo Convert::toJSON($this->module_return);
}
}