- Timestamp:
- 2013/05/02 18:11:36 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_12-dev/data/class/api/SC_Api_Abstract.php
r22567 r22796 30 30 */ 31 31 32 abstract class SC_Api_Abstract 33 { 32 abstract class SC_Api_Abstract { 34 33 35 34 /** 認証タイプ */ … … 57 56 protected $arrErr = array(); 58 57 59 final public function __construct() 60 {} 58 final public function __construct() {} 61 59 62 final public function __destruct() 63 {} 60 final public function __destruct() {} 64 61 65 62 abstract public function doAction($arrParam); … … 69 66 abstract protected function lfInitParam(&$objFormParam); 70 67 71 public function getResponseArray() 72 { 68 public function getResponseArray() { 73 69 return $this->arrResponse; 74 70 } 75 71 76 public function getErrorArray() 77 { 72 public function getErrorArray() { 78 73 return $this->arrErr; 79 74 } 80 75 81 public function getDefaultConfig() 82 { 76 public function getDefaultConfig() { 83 77 $arrApiConfig = array(); 84 78 $arrApiConfig['operation_name'] = $this->operation_name; … … 91 85 } 92 86 93 protected function setResponse($key, $data) 94 { 87 protected function setResponse($key, $data) { 95 88 $this->arrResponse[$key] = $data; 96 89 } 97 90 98 protected function addError($arrErr) 99 { 91 protected function addError($arrErr) { 100 92 $this->arrErr = array_merge((array)$this->arrErr, (array)$arrErr); 101 93 } 102 94 103 protected function isParamError() 104 { 95 protected function isParamError() { 105 96 return !SC_Utils_Ex::isBlank($this->arrErr); 106 97 } 107 98 108 protected function checkErrorExtended($arrParam) 109 { 99 protected function checkErrorExtended($arrParam) { 110 100 } 111 101 112 protected function doInitParam($arrParam = array()) 113 { 102 protected function doInitParam($arrParam = array()) { 114 103 $this->objFormParam = new SC_FormParam_Ex(); 115 104 $this->lfInitParam($this->objFormParam); … … 121 110 } 122 111 123 public function getRequestValidate() 124 { 112 public function getRequestValidate() { 125 113 $arrParam = $this->objFormParam->getHashArray(); 126 114 if (!SC_Utils_Ex::isBlank($arrParam)) {
Note: See TracChangeset
for help on using the changeset viewer.
