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