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


PHP SC_FormParam_Ex::setParam方法代码示例

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


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

示例1: 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

示例2: action

 /**
  * Page のアクション.
  *
  * @return void
  */
 public function action()
 {
     $objDeliv = new SC_Helper_Delivery_Ex();
     $mode = $this->getMode();
     if (!empty($_POST)) {
         $objFormParam = new SC_FormParam_Ex();
         $objFormParam->setParam($_POST);
         $this->arrErr = $this->lfCheckError($mode, $objFormParam);
         if (!empty($this->arrErr['deliv_id'])) {
             trigger_error('', E_USER_ERROR);
             return;
         }
     }
     switch ($mode) {
         case 'delete':
             // ランク付きレコードの削除
             $objDeliv->delete($_POST['deliv_id']);
             $this->objDisplay->reload();
             // PRG pattern
             break;
         case 'up':
             $objDeliv->rankUp($_POST['deliv_id']);
             $this->objDisplay->reload();
             // PRG pattern
             break;
         case 'down':
             $objDeliv->rankDown($_POST['deliv_id']);
             $this->objDisplay->reload();
             // PRG pattern
             break;
         default:
             break;
     }
     $this->arrDelivList = $objDeliv->getList();
 }
开发者ID:rateon,项目名称:twhk-ec,代码行数:40,代码来源:LC_Page_Admin_Basis_Delivery.php

示例3: 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

示例4: action

 /**
  * Page のアクション.
  *
  * @return void
  */
 function action()
 {
     $objDb = new SC_Helper_DB_Ex();
     $mode = $this->getMode();
     if (!empty($_POST)) {
         $objFormParam = new SC_FormParam_Ex();
         $objFormParam->setParam($_POST);
         $this->arrErr = $this->lfCheckError($mode, $objFormParam);
         if (!empty($this->arrErr['deliv_id'])) {
             SC_Utils_Ex::sfDispException();
             return;
         }
     }
     switch ($mode) {
         case 'delete':
             // ランク付きレコードの削除
             $objDb->sfDeleteRankRecord("dtb_deliv", "deliv_id", $_POST['deliv_id']);
             $this->objDisplay->reload();
             // PRG pattern
             break;
         case 'up':
             $objDb->sfRankUp("dtb_deliv", "deliv_id", $_POST['deliv_id']);
             $this->objDisplay->reload();
             // PRG pattern
             break;
         case 'down':
             $objDb->sfRankDown("dtb_deliv", "deliv_id", $_POST['deliv_id']);
             $this->objDisplay->reload();
             // PRG pattern
             break;
         default:
             break;
     }
     $this->arrDelivList = $this->lfGetDelivList();
 }
开发者ID:nanasess,项目名称:ec-azure,代码行数:40,代码来源:LC_Page_Admin_Basis_Delivery.php

示例5: sfGetCategoryId

 private function sfGetCategoryId()
 {
     $objFormParam = new SC_FormParam_Ex();
     $objFormParam->addParam("category_id", "category_id");
     $objFormParam->setParam($_GET);
     $category_id = $objFormParam->getValue("category_id");
     return $category_id;
 }
开发者ID:alice-asahina,项目名称:kisekae_touch,代码行数:8,代码来源:KisekaeTouch.php

示例6: 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

示例7: lfCheckError

 /**
  * 入力エラーのチェック.
  *
  * @param array $arrRequest リクエスト値($_GET)
  * @return array $arrErr エラーメッセージ配列
  */
 function lfCheckError($arrRequest)
 {
     // パラメーター管理クラス
     $objFormParam = new SC_FormParam_Ex();
     // パラメーター情報の初期化
     //        $objFormParam->addParam(t('c_Postal code 1_01'), 'zip01', ZIP01_LEN, 'n', array('EXIST_CHECK', 'NUM_COUNT_CHECK', 'NUM_CHECK'));
     //        $objFormParam->addParam(t('c_Postal code 2_01'), 'zip02', ZIP02_LEN, 'n', array('EXIST_CHECK', 'NUM_COUNT_CHECK', 'NUM_CHECK'));
     $objFormParam->addParam(t('c_Postal code_01'), 'zipcode', ZIPCODE_LEN, 'n', array('EXIST_CHECK', 'MAX_LENGTH_CHECK', 'NUM_CHECK'));
     // リクエスト値をセット
     //        $arrData['zip01'] = $arrRequest['zip01'];
     //        $arrData['zip02'] = $arrRequest['zip02'];
     $arrData['zipcode'] = $arrRequest['zipcode'];
     $objFormParam->setParam($arrData);
     // エラーチェック
     $arrErr = $objFormParam->checkError();
     // 親ウィンドウの戻り値を格納するinputタグのnameのエラーチェック
     /*
     if (!$this->lfInputNameCheck($addData['zip01'])) {
         $arrErr['zip01'] =  t('c_* Format is inadequate.<br />_01');
     }
     if (!$this->lfInputNameCheck($arrdata['zip02'])) {
         $arrErr['zip02'] =  t('c_* Format is inadequate.<br />_01');
     }
     */
     if (!$this->lfInputNameCheck($arrData['zipcode'])) {
         $arrErr['zipcode'] = t('c_* Format is inadequate.<br />_01');
     }
     return $arrErr;
 }
开发者ID:Rise-Up-Cambodia,项目名称:Rise-Up,代码行数:35,代码来源:LC_Page_Mypage_Change.php

示例8: 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

示例9: 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

示例10: initForm

 /**
  * フォームパラメーター初期化.
  *
  * @param  SC_FormParam_Ex $objFormParam
  * @param  array  $arrParams    $_GET値
  * @return void
  */
 public function initForm(&$objFormParam, &$arrParams)
 {
     $objFormParam->addParam('mode', 'mode', INT_LEN, '', array('ALPHA_CHECK', 'MAX_LENGTH_CHECK'));
     $objFormParam->setParam($arrParams);
 }
开发者ID:casan,项目名称:eccube-2_13,代码行数:12,代码来源:LC_Page_Admin_System_System.php

示例11: lfInitParam

 /**
  * パラメーター情報の初期化
  *
  * @param  SC_FormParam_Ex $objFormParam フォームパラメータークラス
  * @return void
  */
 public function lfInitParam(&$objFormParam)
 {
     $objFormParam->addParam('編集種別', 'tpl_subno_csv', STEXT_LEN, 'a', array('ALNUM_CHECK', 'MAX_LENGTH_CHECK'), 'product');
     $objFormParam->addParam('出力設定リスト', 'output_list', INT_LEN, 'n', array('NUM_CHECK', 'MAX_LENGTH_CHECK', 'EXIST_CHECK'));
     //デフォルト値で上書き
     $objFormParam->setParam(array('tpl_subno_csv' => 'product'));
 }
开发者ID:sai-ken-tanaka,项目名称:eccube-2_13,代码行数:13,代码来源:LC_Page_Admin_Contents_CSV.php

示例12: initParam

 /**
  * パラメーター初期化.
  *
  * @param  SC_FormParam_Ex $objFormParam
  * @param  array  $arrParams    $_GET値
  * @return void
  */
 public function initParam(&$objFormParam, &$arrParams)
 {
     $objFormParam->addParam('pageno', 'pageno', INT_LEN, '', array('NUM_CHECK', 'MAX_LENGTH_CHECK', 'EXIST_CHECK'));
     $objFormParam->addParam('id', 'id', INT_LEN, '', array('NUM_CHECK', 'MAX_LENGTH_CHECK'));
     $objFormParam->setParam($arrParams);
 }
开发者ID:rateon,项目名称:twhk-ec,代码行数:13,代码来源:LC_Page_Admin_System_Delete.php

示例13: lfGetNewOrder

    /**
     * 新規受付一覧の取得
     *
     * @return array 新規受付一覧配列
     */
    function lfGetNewOrder()
    {
        $objQuery =& SC_Query_Ex::getSingletonInstance();
        $cols = <<<__EOS__
            dtb_order.order_id,
            dtb_order.customer_id,
            category.category_id,
            detail.product_id,
            detail.product_name,
            dtb_order.total,
            dtb_order.create_date
__EOS__;
        $from = 'dtb_order';
        $join = ' INNER JOIN dtb_order_detail AS detail ON detail.order_id = dtb_order.order_id';
        $join .= ' INNER JOIN dtb_product_categories AS category ON detail.product_id = category.product_id';
        $where = "del_flg = 0 AND status <> ? AND to_char(payment_date, 'yyyymm') = to_char(NOW(), 'yyyymm')";
        $objFormParam = new SC_FormParam_Ex();
        $objFormParam->addParam('ページ送り番号', 'search_pageno', INT_LEN, 'n', array('MAX_LENGTH_CHECK', 'NUM_CHECK'));
        $objFormParam->addParam('表示件数', 'search_page_max', INT_LEN, 'n', array('MAX_LENGTH_CHECK', 'NUM_CHECK'), 10);
        $objFormParam->setParam($_POST);
        $this->tpl_pageno = $objFormParam->getValue('search_pageno');
        // 全件数
        $this->tpl_linemax = $objQuery->count($from, $where, ORDER_CANCEL);
        // ページ送りの処理
        $page_max = $objFormParam->getValue('search_page_max');
        // ページ送りの取得
        $objNavi = new SC_PageNavi_Ex($this->tpl_pageno, $this->tpl_linemax, $page_max, 'eccube.moveNaviPage', NAVI_PMAX);
        $this->arrPagenavi = $objNavi->arrPagenavi;
        $offset = $objNavi->start_row;
        // 受注一覧取得
        $objQuery->setOrder('create_date DESC');
        $objQuery->setLimitOffset($page_max, $offset);
        $arrNewOrder = $objQuery->select($cols, $from . $join, $where, ORDER_CANCEL);
        foreach ($arrNewOrder as $key => $val) {
            $arrNewOrder[$key]['create_date'] = str_replace('-', '/', substr($val['create_date'], 0, 19));
        }
        return $arrNewOrder;
    }
开发者ID:alice-asahina,项目名称:kisekae_touch,代码行数:43,代码来源:LC_Page_Admin_Home_Ex.php

示例14: setColumnToFormParam

 /**
  * 追加商品項目をIDを指定して取得する
  * @param integer $column_id
  * @return type 
  */
 function setColumnToFormParam(SC_FormParam_Ex &$objFormParam, $column_id)
 {
     $objColumn = new plg_AddProductColumns_SC_Helper_Column_Ex();
     $arrColumn = $objColumn->getColumn($column_id);
     $objFormParam->setParam($arrColumn);
 }
开发者ID:ec-cube-plugin,项目名称:AddProductColumns,代码行数:11,代码来源:plg_AddProductColumns_LC_Page_Admin_Products_Columns.php

示例15: 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


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