Changeset 22567 for branches/version-2_12-dev/data/class/pages/upgrade/helper/LC_Upgrade_Helper_Json.php
- Timestamp:
- 2013/02/18 19:09:54 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_12-dev/data/class/pages/upgrade/helper/LC_Upgrade_Helper_Json.php
r21951 r22567 4 4 * 5 5 */ 6 class LC_Upgrade_Helper_Json extends Services_JSON { 6 class LC_Upgrade_Helper_Json extends Services_JSON 7 { 7 8 /** */ 8 9 var $arrData = array( … … 18 19 * @return SC_Upgrade_Helper_Json 19 20 */ 20 function __construct() { 21 function __construct() 22 { 21 23 parent::Services_JSON(); 22 24 } … … 26 28 * 27 29 */ 28 function isError() { 30 function isError() 31 { 29 32 return $this->isSuccess() ? false : true; 30 33 } 31 34 32 function isSuccess() { 35 function isSuccess() 36 { 33 37 if ($this->arrData['status'] === OSTORE_STATUS_SUCCESS) { 34 38 return true; … … 43 47 * @param unknown_type $errMessage 44 48 */ 45 function setError($errCode) { 49 function setError($errCode) 50 { 46 51 $masterData = new SC_DB_MasterData_Ex(); 47 52 $arrOStoreErrMsg = $masterData->getMasterData('mtb_ownersstore_err'); … … 59 64 * @param mixed $data 60 65 */ 61 function setSuccess($data = array(), $msg = '') { 66 function setSuccess($data = array(), $msg = '') 67 { 62 68 $this->arrData['status'] = OSTORE_STATUS_SUCCESS; 63 69 $this->arrData['data'] = $data; … … 69 75 * 70 76 */ 71 function display() { 77 function display() 78 { 72 79 header('Content-Type: text/javascript; charset=UTF-8'); 73 80 echo $this->encode($this->arrData); … … 85 92 * @see SC_Utils_Ex::jsonDecode 86 93 */ 87 function decode($str) { 94 function decode($str) 95 { 88 96 return SC_Utils_Ex::jsonDecode($str); 89 97 }
Note: See TracChangeset
for help on using the changeset viewer.