Changeset 20171 for branches/version-2_5-dev/data/class/pages/admin/basis/LC_Page_Admin_Basis_Tradelaw.php
- Timestamp:
- 2011/02/16 14:12:30 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_5-dev/data/class/pages/admin/basis/LC_Page_Admin_Basis_Tradelaw.php
r20168 r20171 80 80 SC_Utils_Ex::sfIsSuccess($objSess); 81 81 82 $objDb = new SC_Helper_DB_Ex(); 83 82 84 // パラメータ管理クラス 83 85 $this->objFormParam = new SC_FormParam(); … … 87 89 $this->objFormParam->setParam($_POST); 88 90 89 $cnt = $this->lfGetBaseInfoCount(); 90 91 $cnt = $objDb->sfGetBasisCount(); 91 92 if ($cnt > 0) { 92 93 $this->tpl_mode = "update"; … … 118 119 $arrCol = $this->objFormParam->getKeyList(); // キー名一覧を取得 119 120 $col = SC_Utils_Ex::sfGetCommaList($arrCol); 120 $arrRet = $ this->lfGetBaseInfoData($col);121 $this->objFormParam->setParam($arrRet [0]);121 $arrRet = $objDb->sfGetBasisData(true, $col); 122 $this->objFormParam->setParam($arrRet); 122 123 } 123 124 … … 132 133 function destroy() { 133 134 parent::destroy(); 134 }135 136 /**137 * 基本情報の登録数を取得する138 *139 * @return int140 */141 function lfGetBaseInfoCount() {142 $objQuery =& SC_Query::getSingletonInstance();143 144 return $objQuery->count("dtb_baseinfo");145 }146 147 /**148 * 基本情報のデータを取得する149 *150 * @return array151 */152 function lfGetBaseInfoData($col) {153 $objQuery =& SC_Query::getSingletonInstance();154 155 return $objQuery->select($col, "dtb_baseinfo");156 135 } 157 136
Note: See TracChangeset
for help on using the changeset viewer.