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