本文整理汇总了PHP中SC_FormParam::getFormParamList方法的典型用法代码示例。如果您正苦于以下问题:PHP SC_FormParam::getFormParamList方法的具体用法?PHP SC_FormParam::getFormParamList怎么用?PHP SC_FormParam::getFormParamList使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SC_FormParam
的用法示例。
在下文中一共展示了SC_FormParam::getFormParamList方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: lfInitParam
// 前のページに戻る
// 前のページに戻る
case 'return':
// 正常に登録されたことを記録しておく
$objSiteSess->setRegistFlag();
// 確認ページへ移動
header("Location: " . URL_SHOP_CONFIRM);
exit;
break;
}
$objDate = new SC_Date();
$objDate->setStartYear(RELEASE_YEAR);
$objDate->setEndYear(RELEASE_YEAR + CREDIT_ADD_YEAR);
$objPage->arrYear = $objDate->getZeroYear();
$objPage->arrMonth = $objDate->getZeroMonth();
$objPage->arrForm = $objFormParam->getFormParamList();
$objView->assignobj($objPage);
// フレームを選択(キャンペーンページから遷移なら変更)
$objCampaignSess->pageView($objView);
//-----------------------------------------------------------------------------------------------------------------------------------
/* パラメータ情報の初期化 */
function lfInitParam()
{
global $objFormParam;
$objFormParam->addParam("カード番号1", "card_no01", CREDIT_NO_LEN, "n", array("EXIST_CHECK", "MAX_LENGTH_CHECK", "NUM_CHECK"));
$objFormParam->addParam("カード番号2", "card_no02", CREDIT_NO_LEN, "n", array("EXIST_CHECK", "MAX_LENGTH_CHECK", "NUM_CHECK"));
$objFormParam->addParam("カード番号3", "card_no03", CREDIT_NO_LEN, "n", array("EXIST_CHECK", "MAX_LENGTH_CHECK", "NUM_CHECK"));
$objFormParam->addParam("カード番号4", "card_no04", CREDIT_NO_LEN, "n", array("EXIST_CHECK", "MAX_LENGTH_CHECK", "NUM_CHECK"));
$objFormParam->addParam("カード期限年", "card_year", 2, "n", array("EXIST_CHECK", "NUM_COUNT_CHECK", "NUM_CHECK"));
$objFormParam->addParam("カード期限月", "card_month", 2, "n", array("EXIST_CHECK", "NUM_COUNT_CHECK", "NUM_CHECK"));
$objFormParam->addParam("姓", "card_name01", STEXT_LEN, "KVa", array("EXIST_CHECK", "MAX_LENGTH_CHECK", "ALPHA_CHECK"));
示例2: foreach
function createForm2(SC_FormParam $objFormParam)
{
$form = new HTML_QuickForm("form2", "POST", $_SERVER["REQUEST_URI"]);
$form->addElement("header", "header", "きせかえ Touch 設定");
$form->addElement("hidden", TRANSACTION_ID_NAME, $this->transactionid);
$form->addElement("hidden", "mode", "edit_kisekae");
$arrForm = $objFormParam->getFormParamList();
foreach ($arrForm as $key => $config) {
$form->addElement("text", $key, $config["disp_name"], array("size" => 30, "class" => "box30", "value" => $config["value"], "style" => SC_Utils_Ex::sfGetErrorColor($this->arrErr[$key]), "max_length" => $config["length"]));
$form->addRule($key, $this->arrErr[$key], 'required');
$form->addRule($key, $this->arrErr[$key], 'rangelength', array($config["length"], $config["length"]));
$form->addRule($key, $this->arrErr[$key], 'alphanumeric');
}
$form->addElement("submit", "", "設定");
return $form;
}
示例3: lfInitParam
/**
* パラメーター情報の初期化
*
* @param SC_FormParam $objFormParam
* @return array
*/
public function lfInitParam(SC_FormParam &$objFormParam)
{
$objFormParam->addParam('規格1', 'classcategory_id1', INT_LEN, 'n', array('NUM_CHECK', 'MAX_LENGTH_CHECK'));
$objFormParam->addParam('規格2', 'classcategory_id2', INT_LEN, 'n', array('NUM_CHECK', 'MAX_LENGTH_CHECK'));
$objFormParam->addParam('数量', 'quantity', INT_LEN, 'n', array('EXIST_CHECK', 'ZERO_CHECK', 'NUM_CHECK', 'MAX_LENGTH_CHECK'));
$objFormParam->addParam('管理者ログイン', 'admin', INT_LEN, 'a', array('ALNUM_CHECK', 'MAX_LENGTH_CHECK'));
$objFormParam->addParam('商品ID', 'product_id', INT_LEN, 'n', array('EXIST_CHECK', 'ZERO_CHECK', 'NUM_CHECK', 'MAX_LENGTH_CHECK'));
$objFormParam->addParam('お気に入り商品ID', 'favorite_product_id', INT_LEN, 'n', array('ZERO_CHECK', 'NUM_CHECK', 'MAX_LENGTH_CHECK'));
$objFormParam->addParam('商品規格ID', 'product_class_id', INT_LEN, 'n', array('EXIST_CHECK', 'NUM_CHECK', 'MAX_LENGTH_CHECK'));
// 値の取得
$objFormParam->setParam($_REQUEST);
// 入力値の変換
$objFormParam->convParam();
// 入力情報を渡す
return $objFormParam->getFormParamList();
}