1<?php 2/** 3 * Description of IJR_Error 4 * 5 * @author Andreas Gohr <andi@splitbrain.org> 6 * @author Magnus Wolf <mwolf2706@googlemail.com> 7 */ 8class IJR_Error { 9 var $code; 10 var $message; 11 function IJR_Error($code, $message) { 12 $this->code = $code; 13 $this->message = $message; 14 } 15 16 function getJson(){ 17 $result['code'] = $this->code; 18 $result['message'] = $this->message; 19 return $result; 20 } 21} 22?> 23