当前位置: 首页>>代码示例>>PHP>>正文


PHP SC_FormParam_Ex::convParam方法代码示例

本文整理汇总了PHP中SC_FormParam_Ex::convParam方法的典型用法代码示例。如果您正苦于以下问题:PHP SC_FormParam_Ex::convParam方法的具体用法?PHP SC_FormParam_Ex::convParam怎么用?PHP SC_FormParam_Ex::convParam使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在SC_FormParam_Ex的用法示例。


在下文中一共展示了SC_FormParam_Ex::convParam方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: action

 /**
  * Page のアクション.
  *
  * @return void
  */
 function action()
 {
     $objPayment = new SC_Helper_Payment_Ex();
     if (!empty($_POST)) {
         $objFormParam = new SC_FormParam_Ex();
         $objFormParam->addParam('支払方法ID', 'payment_id', INT_LEN, 'n', array('NUM_CHECK', 'MAX_LENGTH_CHECK'));
         $objFormParam->setParam($_POST);
         $objFormParam->convParam();
         $this->arrErr = $objFormParam->checkError();
         if (!empty($this->arrErr['payment_id'])) {
             trigger_error('', E_USER_ERROR);
             return;
         }
         $post = $objFormParam->getHashArray();
     }
     switch ($this->getMode()) {
         case 'delete':
             // ランク付きレコードの削除
             $objPayment->delete($post['payment_id']);
             // 再表示
             $this->objDisplay->reload();
             break;
         case 'up':
             $objPayment->rankUp($post['payment_id']);
             // 再表示
             $this->objDisplay->reload();
             break;
         case 'down':
             $objPayment->rankDown($post['payment_id']);
             // 再表示
             $this->objDisplay->reload();
             break;
     }
     $this->arrPaymentListFree = $objPayment->getList();
 }
开发者ID:nanasess,项目名称:eccube-WindowsAzureBlob-plugin,代码行数:40,代码来源:LC_Page_Admin_Basis_Payment.php

示例2: action

 function action()
 {
     $objFormParam = new SC_FormParam_Ex();
     $objFormParam->addParam("加盟店ID", "memberId", 5, "n", explode(",", "NUM_CHECK,EXIST_CHECK,NUM_COUNT_CHECK"));
     $objFormParam->addParam("サービスID", "serviceId", 5, "n", explode(",", "NUM_CHECK,EXIST_CHECK,NUM_COUNT_CHECK"));
     $objFormParam->addParam("セキュアキー", "secureKey", 32, "n", explode(",", "ALNUM_CHECK,EXIST_CHECK,NUM_COUNT_CHECK"));
     $objFormParam2 = new SC_FormParam_Ex();
     $objFormParam2->addParam("加盟店ID", "cpid", 10, "n", explode(",", "ALNUM_CHECK,EXIST_CHECK,NUM_COUNT_CHECK"));
     $objFormParam2->addParam("サイトID", "siteid", 10, "n", explode(",", "ALNUM_CHECK,EXIST_CHECK,NUM_COUNT_CHECK"));
     $objFormParam2->addParam("セキュアキー", "secureKey1", 20, "n", explode(",", "ALNUM_CHECK,EXIST_CHECK,NUM_COUNT_CHECK"));
     switch ($this->getMode()) {
         case "edit":
             $objFormParam->setParam($_POST);
             $objFormParam->convParam();
             $this->arrErr = $objFormParam->checkError();
             if (SC_Utils_Ex::isBlank($this->arrErr)) {
                 $arrConfig = $objFormParam->getHashArray(array("memberId", "serviceId", "secureKey"));
                 SC_AuonePayment_Ex::saveConfig($arrConfig);
             }
             // キセカエタッチの
             $config2 = SC_AuonePayment_Ex::getConfig("free_field2");
             $objFormParam2->setParam($config2);
             break;
         case "edit_kisekae":
             $objFormParam2->setParam($_POST);
             $objFormParam2->convParam();
             $this->arrErr = $objFormParam2->checkError();
             if (SC_Utils_Ex::isBlank($this->arrErr)) {
                 $arrConfig = $objFormParam2->getHashArray(array("cpid", "siteid", "secureKey1"));
                 SC_AuonePayment_Ex::saveConfig($arrConfig, "free_field2");
             }
             // au かんたん決済の設定は 再読み込み
             $config = SC_AuonePayment_Ex::getConfig();
             $objFormParam->setParam($config);
             break;
         default:
             $config = SC_AuonePayment_Ex::getConfig();
             $objFormParam->setParam($config);
             $config2 = SC_AuonePayment_Ex::getConfig("free_field2");
             $objFormParam2->setParam($config2);
             break;
     }
     $form = $this->createForm1($objFormParam);
     $form2 = $this->createForm2($objFormParam2);
     switch ($this->getMode()) {
         case "edit":
             $form->validate();
             break;
         case "edit_kisekae":
             $form2->validate();
             break;
     }
     $this->form = $form->toHtml();
     $this->form2 = $form2->toHtml();
     $this->tpl_mainpage = dirname(__FILE__) . "/config.tpl";
     $this->setTemplate($this->tpl_mainpage);
 }
开发者ID:alice-asahina,项目名称:kisekae_touch,代码行数:57,代码来源:LC_Page_Admin_Plugin_KisekaeTouch_Config.php

示例3: action

 /**
  * Page のアクション.
  *
  * @return void
  */
 function action()
 {
     $objDb = new SC_Helper_DB_Ex();
     $mode = $this->getMode();
     if (!empty($_POST)) {
         $objFormParam = new SC_FormParam_Ex();
         $objFormParam->addParam('配送業者ID', 'payment_id', INT_LEN, 'n', array('NUM_CHECK', 'MAX_LENGTH_CHECK'));
         $objFormParam->setParam($_POST);
         $objFormParam->convParam();
         $arrErr = $objFormParam->checkError();
         if (!empty($this->arrErr['payment_id'])) {
             trigger_error('', E_USER_ERROR);
             return;
         }
         $post = $objFormParam->getHashArray();
     }
     switch ($this->getMode()) {
         case 'delete':
             // ランク付きレコードの削除
             $objDb->sfDeleteRankRecord('dtb_payment', 'payment_id', $post['payment_id']);
             // 再表示
             $this->objDisplay->reload();
             break;
         case 'up':
             $objDb->sfRankUp('dtb_payment', 'payment_id', $post['payment_id']);
             // 再表示
             $this->objDisplay->reload();
             break;
         case 'down':
             $objDb->sfRankDown('dtb_payment', 'payment_id', $post['payment_id']);
             // 再表示
             $this->objDisplay->reload();
             break;
     }
     $this->arrDelivList = $objDb->sfGetIDValueList('dtb_deliv', 'deliv_id', 'service_name');
     $this->arrPaymentListFree = $this->lfGetPaymentList();
 }
开发者ID:nassos9090,项目名称:plugin,代码行数:42,代码来源:LC_Page_Admin_Basis_Payment.php

示例4: lfInitParam

 /**
  * ユーザ入力値の処理
  *
  * @return object
  */
 function lfInitParam($arrRequest)
 {
     $objFormParam = new SC_FormParam_Ex();
     $objFormParam->addParam('カートキー', 'cartKey', INT_LEN, 'n', array('NUM_CHECK', 'MAX_LENGTH_CHECK'));
     $objFormParam->addParam('カートナンバー', 'cart_no', INT_LEN, 'n', array('NUM_CHECK', 'MAX_LENGTH_CHECK'));
     // PC版での値引き継ぎ用
     $objFormParam->addParam('カテゴリID', 'category_id', INT_LEN, 'n', array('NUM_CHECK', 'MAX_LENGTH_CHECK'));
     // スマートフォン版での数量変更用
     $objFormParam->addParam('数量', 'quantity', INT_LEN, 'n', array('ZERO_CHECK', 'NUM_CHECK', 'MAX_LENGTH_CHECK'));
     // 値の取得
     $objFormParam->setParam($arrRequest);
     // 入力値の変換
     $objFormParam->convParam();
     return $objFormParam;
 }
开发者ID:snguyenone,项目名称:ec-cube-ja-2.12.6,代码行数:20,代码来源:LC_Page_Cart.php

示例5: lfCheckError

 /**
  * 入力エラーチェック
  *
  * @param  string $mode
  * @param SC_FormParam_Ex $objFormParam
  * @return array
  */
 public function lfCheckError($mode, &$objFormParam)
 {
     $arrErr = array();
     switch ($mode) {
         case 'delete':
         case 'up':
         case 'down':
             $objFormParam->addParam('配送業者ID', 'deliv_id', INT_LEN, 'n', array('NUM_CHECK', 'MAX_LENGTH_CHECK'));
             $objFormParam->convParam();
             $arrErr = $objFormParam->checkError();
             break;
         default:
             break;
     }
     return $arrErr;
 }
开发者ID:rateon,项目名称:twhk-ec,代码行数:23,代码来源:LC_Page_Admin_Basis_Delivery.php

示例6: lfInitParam

 /**
  * ユーザ入力値の処理
  *
  * @return object
  */
 function lfInitParam($arrRequest)
 {
     $objFormParam = new SC_FormParam_Ex();
     $objFormParam->addParam(t('c_Cart key_01'), 'cartKey', INT_LEN, 'n', array('NUM_CHECK', 'MAX_LENGTH_CHECK'));
     $objFormParam->addParam(t('c_Cart number_01'), 'cart_no', INT_LEN, 'n', array('NUM_CHECK', 'MAX_LENGTH_CHECK'));
     // PC版での値引き継ぎ用
     $objFormParam->addParam(t('c_Category ID_01'), 'category_id', INT_LEN, 'n', array('NUM_CHECK', 'MAX_LENGTH_CHECK'));
     // スマートフォン版での数量変更用
     $objFormParam->addParam(t('c_Quantity_01'), 'quantity', INT_LEN, 'n', array('ZERO_CHECK', 'NUM_CHECK', 'MAX_LENGTH_CHECK'));
     // 値の取得
     $objFormParam->setParam($arrRequest);
     // 入力値の変換
     $objFormParam->convParam();
     return $objFormParam;
 }
开发者ID:Rise-Up-Cambodia,项目名称:Rise-Up,代码行数:20,代码来源:LC_Page_Cart.php

示例7: lfInitParam

 /**
  * ユーザ入力値の処理
  *
  * @return object
  */
 function lfInitParam($arrRequest)
 {
     $objFormParam = new SC_FormParam_Ex();
     $objFormParam->addParam('カテゴリID', 'category_id', INT_LEN, 'n', array('NUM_CHECK', 'MAX_LENGTH_CHECK'));
     // 値の取得
     $objFormParam->setParam($arrRequest);
     // 入力値の変換
     $objFormParam->convParam();
     return $objFormParam;
 }
开发者ID:nassos9090,项目名称:plugin,代码行数:15,代码来源:LC_Page_Products_CategoryList.php

示例8: initParam

 /**
  * パラメーター初期化.
  *
  * @param  SC_FormParam_Ex $objFormParam
  * @param  array  $arrParams    $_POST値
  * @return void
  */
 public function initParam(&$objFormParam, &$arrParams)
 {
     $objFormParam->addParam('ディレクトリ名', 'admin_dir', ID_MAX_LEN, 'a', array('EXIST_CHECK', 'SPTAB_CHECK', 'ALNUM_CHECK'));
     $objFormParam->addParam('SSL制限', 'admin_force_ssl', 1, 'n', array('NUM_CHECK', 'MAX_LENGTH_CHECK'));
     $objFormParam->addParam('IP制限', 'admin_allow_hosts', LTEXT_LEN, 'a', array('IP_CHECK', 'MAX_LENGTH_CHECK'));
     $objFormParam->setParam($arrParams);
     $objFormParam->convParam();
 }
开发者ID:rateon,项目名称:twhk-ec,代码行数:15,代码来源:LC_Page_Admin_System_AdminArea.php

示例9: initParam

 /**
  * パラメーター初期化.
  *
  * @param  SC_FormParam_Ex $objFormParam
  * @param  array  $arrParams    $_POST値
  * @return void
  */
 public function initParam(&$objFormParam, &$arrParams)
 {
     $objFormParam->addParam('バックアップ名', 'bkup_name', STEXT_LEN, 'a', array('EXIST_CHECK', 'MAX_LENGTH_CHECK', 'NO_SPTAB', 'FILE_NAME_CHECK_BY_NOUPLOAD'));
     $objFormParam->addParam('バックアップメモ', 'bkup_memo', MTEXT_LEN, 'KVa', array('MAX_LENGTH_CHECK'));
     $objFormParam->addParam('バックアップ名(リスト)', 'list_name', STEXT_LEN, 'a', array('MAX_LENGTH_CHECK', 'NO_SPTAB', 'FILE_NAME_CHECK_BY_NOUPLOAD'));
     $objFormParam->setParam($arrParams);
     $objFormParam->convParam();
 }
开发者ID:casan,项目名称:eccube-2_13,代码行数:15,代码来源:LC_Page_Admin_System_Bkup.php

示例10: lfCheckError

 /**
  * エラーチェックする
  *
  * @param SC_FormParam_Ex $objFormParam
  * @access private
  * @return array エラー情報の配列
  */
 public function lfCheckError(&$objFormParam)
 {
     $objFormParam->convParam();
     $objErr = new SC_CheckError_Ex();
     $objErr->arrErr = $objFormParam->checkError();
     // FIXME: lfInitParam() で設定すれば良いように感じる
     $objErr->doFunc(array('メールアドレス', 'email_mobile'), array('CHECK_REGIST_CUSTOMER_EMAIL'));
     return $objErr->arrErr;
 }
开发者ID:casan,项目名称:eccube-2_13,代码行数:16,代码来源:LC_Page_Entry_EmailMobile.php

示例11: action

 /**
  * Page のアクション.
  *
  * @return void
  */
 function action()
 {
     $servername = "localhost";
     $username = "root";
     $password = "1234";
     $dbname = "rise_up_shop";
     // Create connection
     $conn = new mysqli($servername, $username, $password, $dbname);
     // Check connection
     if ($conn) {
         $sql = "SELECT * FROM dtb_brand";
         $result = mysqli_query($conn, $sql);
         $arr = [];
         $i = 0;
         while ($row = mysqli_fetch_object($result)) {
             $arr[$i]['brand_id'] = $row->brand_id;
             $arr[$i]['name'] = $row->name;
             $arr[$i]['image_path'] = $row->image_path;
             $arr[$i]['description'] = $row->description;
             $arr[$i]['email'] = $row->email;
             $arr[$i]['address'] = $row->address;
             $arr[$i]['website'] = $row->website;
             $i++;
         }
         $this->arrResults = $arr;
     }
     $objDb = new SC_Helper_DB_Ex();
     $objDate = new SC_Date_Ex();
     $this->arrMonth = $objDate->getMonth();
     $this->arrDay = $objDate->getDay();
     $mode = $this->getMode();
     if (!empty($_POST)) {
         $objFormParam = new SC_FormParam_Ex();
         $objFormParam->setParam($_POST);
         $objFormParam->convParam();
         $brand_id = $objFormParam->getValue('brand_id');
         if (!empty($this->arrErr['brand_id'])) {
             trigger_error('', E_USER_ERROR);
             return;
         }
         $post = $objFormParam->getHashArray();
     }
     // 要求判定
     switch ($mode) {
         // 編集処理
         case 'edit':
             // POST値の引き継ぎ
             $this->arrForm = $this->arrForm = $_POST;
             if (count($this->arrErr) <= 0) {
                 // 新規作成
                 if ($post['brand_id'] == '') {
                     $this->lfInsertClass($this->arrForm, $_SESSION['member_id']);
                 } else {
                     $this->lfUpdateClass($this->arrForm, $post['brand_id']);
                 }
                 // 再表示
                 $this->objDisplay->reload();
             } else {
                 // POSTデータを引き継ぐ
                 $this->tpl_brand_id = $post['brand_id'];
             }
             break;
         case 'down':
             $objDb->sfRankDown('dtb_brand', 'brand_id', $post['brand_id']);
             // 再表示
             $this->objDisplay->reload();
             break;
         case 'up':
             $objDb->sfRankUp('dtb_brand', 'brand_id', $post['brand_id']);
             // 再表示
             $this->objDisplay->reload();
             break;
         default:
             break;
     }
     $this->tpl_brand_id = $brand_id;
 }
开发者ID:Rise-Up-Cambodia,项目名称:Rise-Up,代码行数:82,代码来源:LC_Page_Admin_Brand_brand.php

示例12: initForm

 /**
  * フォームパラメーター初期化
  *
  * @param  SC_FormParam_Ex $objFormParam
  * @param  array  $arrParams    $_POST値
  * @param  string $mode         editの時は指定
  * @return void
  */
 public function initForm(&$objFormParam, &$arrParams, $mode = '')
 {
     $objFormParam->addParam('メンバーID', 'member_id', INT_LEN, 'n', array('NUM_CHECK'));
     $objFormParam->addParam('名前', 'name', STEXT_LEN, 'KV', array('EXIST_CHECK', 'MAX_LENGTH_CHECK'));
     $objFormParam->addParam('所属', 'department', STEXT_LEN, 'KV', array('MAX_LENGTH_CHECK'));
     $objFormParam->addParam('ログインID', 'login_id', '', '', array('EXIST_CHECK', 'ALNUM_CHECK'));
     $objFormParam->addParam('変更前ログインID', 'old_login_id', '', '', array('ALNUM_CHECK'));
     if ($mode == 'edit' && $arrParams['password'] == DEFAULT_PASSWORD) {
         $objFormParam->addParam('パスワード', 'password', '', '', array('EXIST_CHECK'));
         $objFormParam->addParam('パスワード(確認)', 'password02', '', '', array('EXIST_CHECK'));
     } else {
         $objFormParam->addParam('パスワード', 'password', '', '', array('EXIST_CHECK', 'GRAPH_CHECK'));
         $objFormParam->addParam('パスワード(確認)', 'password02', '', '', array('EXIST_CHECK', 'GRAPH_CHECK'));
     }
     $objFormParam->addParam('権限', 'authority', INT_LEN, '', array('EXIST_CHECK', 'NUM_CHECK', 'MAX_LENGTH_CHECK'));
     $objFormParam->addParam('稼働/非稼働', 'work', INT_LEN, '', array('EXIST_CHECK', 'NUM_CHECK', 'MAX_LENGTH_CHECK'));
     $objFormParam->addParam('ページ', 'pageno', INT_LEN, 'n', array('EXIST_CHECK', 'NUM_CHECK', 'MAX_LENGTH_CHECK'));
     $objFormParam->setParam($arrParams);
     $objFormParam->convParam();
 }
开发者ID:rateon,项目名称:twhk-ec,代码行数:28,代码来源:LC_Page_Admin_System_Input.php

示例13: setFormParam

 /**
  * パラメータをセットする。
  * 
  * @param SC_FormParam_Ex $objFormParam
  * @param array $arrParam 
  */
 function setFormParam(SC_FormParam_Ex &$objFormParam, $arrParam)
 {
     $objFormParam->setParam($arrParam);
     $objFormParam->convParam();
 }
开发者ID:ec-cube-plugin,项目名称:AddProductColumns,代码行数:11,代码来源:plg_AddProductColumns_LC_Page_Admin_Products_Product.php

示例14: lfInitFormParam

 /**
  * パラメーター情報の初期化
  *
  * @param  SC_FormParam_Ex $objFormParam SC_FormParamインスタンス
  * @param  array  $arrPost      $_POSTデータ
  * @return void
  */
 public function lfInitFormParam(&$objFormParam, $arrPost)
 {
     $objFormParam->addParam('商品ID', 'product_id', INT_LEN, 'n', array('NUM_CHECK', 'MAX_LENGTH_CHECK'));
     $objFormParam->addParam('商品名', 'name', STEXT_LEN, 'KVa', array('EXIST_CHECK', 'SPTAB_CHECK', 'MAX_LENGTH_CHECK'));
     $objFormParam->addParam('商品カテゴリ', 'category_id', INT_LEN, 'n', array('EXIST_CHECK', 'NUM_CHECK', 'MAX_LENGTH_CHECK'));
     $objFormParam->addParam('公開・非公開', 'status', INT_LEN, 'n', array('EXIST_CHECK', 'NUM_CHECK', 'MAX_LENGTH_CHECK'));
     $objFormParam->addParam('商品ステータス', 'product_status', INT_LEN, 'n', array('NUM_CHECK', 'MAX_LENGTH_CHECK'));
     if (!$arrPost['has_product_class']) {
         // 新規登録, 規格なし商品の編集の場合
         $objFormParam->addParam('商品種別', 'product_type_id', INT_LEN, 'n', array('EXIST_CHECK', 'NUM_CHECK', 'MAX_LENGTH_CHECK'));
         $objFormParam->addParam('ダウンロード商品ファイル名', 'down_filename', STEXT_LEN, 'KVa', array('SPTAB_CHECK', 'MAX_LENGTH_CHECK'));
         $objFormParam->addParam('ダウンロード商品実ファイル名', 'down_realfilename', MTEXT_LEN, 'KVa', array('SPTAB_CHECK', 'MAX_LENGTH_CHECK'));
         $objFormParam->addParam('temp_down_file', 'temp_down_file', '', '', array());
         $objFormParam->addParam('save_down_file', 'save_down_file', '', '', array());
         $objFormParam->addParam('商品コード', 'product_code', STEXT_LEN, 'KVna', array('EXIST_CHECK', 'SPTAB_CHECK', 'MAX_LENGTH_CHECK'));
         $objFormParam->addParam(NORMAL_PRICE_TITLE, 'price01', PRICE_LEN, 'n', array('NUM_CHECK', 'MAX_LENGTH_CHECK'));
         $objFormParam->addParam(SALE_PRICE_TITLE, 'price02', PRICE_LEN, 'n', array('EXIST_CHECK', 'NUM_CHECK', 'MAX_LENGTH_CHECK'));
         if (OPTION_PRODUCT_TAX_RULE) {
             $objFormParam->addParam('消費税率', 'tax_rate', PERCENTAGE_LEN, 'n', array('EXIST_CHECK', 'NUM_CHECK', 'MAX_LENGTH_CHECK'));
         }
         $objFormParam->addParam('在庫数', 'stock', AMOUNT_LEN, 'n', array('SPTAB_CHECK', 'NUM_CHECK', 'MAX_LENGTH_CHECK'));
         $objFormParam->addParam('在庫無制限', 'stock_unlimited', INT_LEN, 'n', array('SPTAB_CHECK', 'NUM_CHECK', 'MAX_LENGTH_CHECK'));
     }
     $objFormParam->addParam('商品送料', 'deliv_fee', PRICE_LEN, 'n', array('NUM_CHECK', 'SPTAB_CHECK', 'MAX_LENGTH_CHECK'));
     $objFormParam->addParam('ポイント付与率', 'point_rate', PERCENTAGE_LEN, 'n', array('EXIST_CHECK', 'NUM_CHECK', 'SPTAB_CHECK', 'MAX_LENGTH_CHECK'));
     $objFormParam->addParam('発送日目安', 'deliv_date_id', INT_LEN, 'n', array('NUM_CHECK'));
     $objFormParam->addParam('販売制限数', 'sale_limit', AMOUNT_LEN, 'n', array('SPTAB_CHECK', 'ZERO_CHECK', 'NUM_CHECK', 'MAX_LENGTH_CHECK'));
     $objFormParam->addParam('メーカー', 'maker_id', INT_LEN, 'n', array('NUM_CHECK'));
     $objFormParam->addParam('メーカーURL', 'comment1', URL_LEN, 'a', array('SPTAB_CHECK', 'URL_CHECK', 'MAX_LENGTH_CHECK'));
     $objFormParam->addParam('検索ワード', 'comment3', LLTEXT_LEN, 'KVa', array('SPTAB_CHECK', 'MAX_LENGTH_CHECK'));
     $objFormParam->addParam('備考欄(SHOP専用)', 'note', LLTEXT_LEN, 'KVa', array('SPTAB_CHECK', 'MAX_LENGTH_CHECK'));
     $objFormParam->addParam('一覧-メインコメント', 'main_list_comment', MTEXT_LEN, 'KVa', array('EXIST_CHECK', 'SPTAB_CHECK', 'MAX_LENGTH_CHECK'));
     $objFormParam->addParam('詳細-メインコメント', 'main_comment', LLTEXT_LEN, 'KVa', array('EXIST_CHECK', 'SPTAB_CHECK', 'MAX_LENGTH_CHECK'));
     $objFormParam->addParam('save_main_list_image', 'save_main_list_image', '', '', array());
     $objFormParam->addParam('save_main_image', 'save_main_image', '', '', array());
     $objFormParam->addParam('save_main_large_image', 'save_main_large_image', '', '', array());
     $objFormParam->addParam('temp_main_list_image', 'temp_main_list_image', '', '', array());
     $objFormParam->addParam('temp_main_image', 'temp_main_image', '', '', array());
     $objFormParam->addParam('temp_main_large_image', 'temp_main_large_image', '', '', array());
     for ($cnt = 1; $cnt <= PRODUCTSUB_MAX; $cnt++) {
         $objFormParam->addParam('詳細-サブタイトル' . $cnt, 'sub_title' . $cnt, STEXT_LEN, 'KVa', array('SPTAB_CHECK', 'MAX_LENGTH_CHECK'));
         $objFormParam->addParam('詳細-サブコメント' . $cnt, 'sub_comment' . $cnt, LLTEXT_LEN, 'KVa', array('SPTAB_CHECK', 'MAX_LENGTH_CHECK'));
         $objFormParam->addParam('save_sub_image' . $cnt, 'save_sub_image' . $cnt, '', '', array());
         $objFormParam->addParam('save_sub_large_image' . $cnt, 'save_sub_large_image' . $cnt, '', '', array());
         $objFormParam->addParam('temp_sub_image' . $cnt, 'temp_sub_image' . $cnt, '', '', array());
         $objFormParam->addParam('temp_sub_large_image' . $cnt, 'temp_sub_large_image' . $cnt, '', '', array());
     }
     for ($cnt = 1; $cnt <= RECOMMEND_PRODUCT_MAX; $cnt++) {
         $objFormParam->addParam('関連商品コメント' . $cnt, 'recommend_comment' . $cnt, LTEXT_LEN, 'KVa', array('SPTAB_CHECK', 'MAX_LENGTH_CHECK'));
         $objFormParam->addParam('関連商品ID' . $cnt, 'recommend_id' . $cnt, INT_LEN, 'n', array('NUM_CHECK', 'MAX_LENGTH_CHECK'));
         $objFormParam->addParam('recommend_delete' . $cnt, 'recommend_delete' . $cnt, '', 'n', array());
     }
     $objFormParam->addParam('商品ID', 'copy_product_id', INT_LEN, 'n', array('NUM_CHECK', 'MAX_LENGTH_CHECK'));
     $objFormParam->addParam('has_product_class', 'has_product_class', INT_LEN, 'n', array('NUM_CHECK', 'MAX_LENGTH_CHECK'));
     $objFormParam->addParam('product_class_id', 'product_class_id', INT_LEN, 'n', array('NUM_CHECK', 'MAX_LENGTH_CHECK'));
     $objFormParam->setParam($arrPost);
     $objFormParam->convParam();
 }
开发者ID:rateon,项目名称:twhk-ec,代码行数:65,代码来源:LC_Page_Admin_Products_Product.php

示例15: lfCheckError

 /**
  * @param SC_FormParam_Ex $objFormParam
  */
 public function lfCheckError(&$objFormParam)
 {
     $objFormParam->convParam();
     $objErr = new SC_CheckError_Ex($objFormParam->getHashArray());
     $objErr->arrErr = $objFormParam->checkError();
     // 特殊項目チェック
     // 月度集計
     if ($objFormParam->getValue('search_form') == 1) {
         $objErr->doFunc(array('月度', 'search_startyear_m', 'search_startmonth_m'), array('FULL_EXIST_CHECK'));
     }
     // 期間集計
     if ($objFormParam->getValue('search_form') == 2) {
         $objErr->doFunc(array('期間(開始日)', 'search_startyear', 'search_startmonth', 'search_startday'), array('FULL_EXIST_CHECK'));
         $objErr->doFunc(array('期間(終了日)', 'search_endyear', 'search_endmonth', 'search_endday'), array('FULL_EXIST_CHECK'));
         $objErr->doFunc(array('期間(開始日)', 'search_startyear', 'search_startmonth', 'search_startday'), array('CHECK_DATE'));
         $objErr->doFunc(array('期間(終了日)', 'search_endyear', 'search_endmonth', 'search_endday'), array('CHECK_DATE'));
         $objErr->doFunc(array('期間(開始日)', '期間(終了日)', 'search_startyear', 'search_startmonth', 'search_startday', 'search_endyear', 'search_endmonth', 'search_endday'), array('CHECK_SET_TERM'));
     }
     return $objErr->arrErr;
 }
开发者ID:rateon,项目名称:twhk-ec,代码行数:23,代码来源:LC_Page_Admin_Total.php


注:本文中的SC_FormParam_Ex::convParam方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。