/**
  * パラメーターの初期化を行う
  * @param Object $objFormParam
  */
 function lfInitParam(&$objFormParam)
 {
     $objFormParam->addParam('news_id', 'news_id');
     $objFormParam->addParam('日付(年)', 'year', INT_LEN, 'n', array('EXIST_CHECK', 'NUM_CHECK', 'MAX_LENGTH_CHECK'));
     $objFormParam->addParam('日付(月)', 'month', INT_LEN, 'n', array('EXIST_CHECK', 'NUM_CHECK', 'MAX_LENGTH_CHECK'));
     $objFormParam->addParam('日付(日)', 'day', INT_LEN, 'n', array('EXIST_CHECK', 'NUM_CHECK', 'MAX_LENGTH_CHECK'));
     $objFormParam->addParam('タイトル', 'news_title', MTEXT_LEN, 'KVa', array('EXIST_CHECK', 'MAX_LENGTH_CHECK', 'SPTAB_CHECK'));
     $objFormParam->addParam('URL', 'news_url', URL_LEN, 'KVa', array('MAX_LENGTH_CHECK'));
     $objFormParam->addParam('本文', 'news_comment', LTEXT_LEN, 'KVa', array('MAX_LENGTH_CHECK'));
     $objFormParam->addParam('別ウィンドウで開く', 'link_method', INT_LEN, 'n', array('NUM_CHECK', 'MAX_LENGTH_CHECK'));
     $objFormParam->addParam('ランク移動', 'term', INT_LEN, 'n', array('NUM_CHECK', 'MAX_LENGTH_CHECK'));
 }
 /**
  * パラメーターの初期化を行う
  * @param Object $objFormParam
  */
 function lfInitParam(&$objFormParam)
 {
     $objFormParam->addParam('商品ID', 'search_name', LTEXT_LEN, 'KVa', array('MAX_LENGTH_CHECK'));
     $objFormParam->addParam('商品ID', 'search_category_id', INT_LEN, 'n', array('MAX_LENGTH_CHECK', 'NUM_CHECK'));
     $objFormParam->addParam('商品コード', 'search_product_code', LTEXT_LEN, 'KVa', array('MAX_LENGTH_CHECK'));
     $objFormParam->addParam('ページ番号', 'search_pageno', INT_LEN, 'n', array('MAX_LENGTH_CHECK', 'NUM_CHECK'));
 }
 /**
  * パラメーターの初期化を行う
  * @param Object $objFormParam
  */
 function lfInitParam(&$objFormParam)
 {
     $objFormParam->addParam(t('c_news_id_01'), 'news_id');
     $objFormParam->addParam(t('c_Date (year)_01'), 'year', INT_LEN, 'n', array('EXIST_CHECK', 'NUM_CHECK', 'MAX_LENGTH_CHECK'));
     $objFormParam->addParam(t('c_Date (month)_01'), 'month', INT_LEN, 'n', array('EXIST_CHECK', 'NUM_CHECK', 'MAX_LENGTH_CHECK'));
     $objFormParam->addParam(t('c_Date (day)_01'), 'day', INT_LEN, 'n', array('EXIST_CHECK', 'NUM_CHECK', 'MAX_LENGTH_CHECK'));
     $objFormParam->addParam(t('c_Title_01'), 'news_title', MTEXT_LEN, 'KVa', array('EXIST_CHECK', 'MAX_LENGTH_CHECK', 'SPTAB_CHECK'));
     $objFormParam->addParam(t('c_URL_01'), 'news_url', URL_LEN, 'KVa', array('MAX_LENGTH_CHECK'));
     $objFormParam->addParam(t('c_Text_01'), 'news_comment', LTEXT_LEN, 'KVa', array('MAX_LENGTH_CHECK'));
     $objFormParam->addParam(t('c_Open in separate window_01'), 'link_method', INT_LEN, 'n', array('NUM_CHECK', 'MAX_LENGTH_CHECK'));
     $objFormParam->addParam(t('c_Rank shift_01'), 'term', INT_LEN, 'n', array('NUM_CHECK', 'MAX_LENGTH_CHECK'));
 }
 /**
  * パラメーターの初期化を行う
  * @param Object $objFormParam
  */
 function lfInitParam(&$objFormParam)
 {
     $objFormParam->addParam('商品ID', 'product_id', INT_LEN, 'n', array('EXIST_CHECK', 'NUM_CHECK', 'MAX_LENGTH_CHECK'));
     $objFormParam->addParam('カテゴリID', 'category_id', INT_LEN, 'n', array('EXIST_CHECK', 'NUM_CHECK', 'MAX_LENGTH_CHECK'));
     $objFormParam->addParam('ランク', 'rank', INT_LEN, 'n', array('EXIST_CHECK', 'NUM_CHECK', 'MAX_LENGTH_CHECK'));
     $objFormParam->addParam('コメント', 'comment', LTEXT_LEN, 'KVa', array('EXIST_CHECK', 'MAX_LENGTH_CHECK'));
 }
 /**
  * パラメーターの初期化を行う
  * @param Object $objFormParam
  */
 function lfInitParam(&$objFormParam)
 {
     $objFormParam->addParam("商品ID", "product_id", INT_LEN, 'n', array("EXIST_CHECK", "NUM_CHECK", "MAX_LENGTH_CHECK"));
     $objFormParam->addParam("カテゴリID", "category_id", INT_LEN, 'n', array("EXIST_CHECK", "NUM_CHECK", "MAX_LENGTH_CHECK"));
     $objFormParam->addParam("ランク", 'rank', INT_LEN, 'n', array("EXIST_CHECK", "NUM_CHECK", "MAX_LENGTH_CHECK"));
     $objFormParam->addParam("コメント", 'comment', LTEXT_LEN, 'KVa', array("EXIST_CHECK", "MAX_LENGTH_CHECK"));
 }
 /**
  * パラメータの初期化を行う
  * @param Object $objFormParam
  */
 function lfInitParam(&$objFormParam)
 {
     $objFormParam->addParam("ID", 'questionnaire_id', INT_LEN, 'n', array("NUM_CHECK", "MAX_LENGTH_CHECK"));
     $objFormParam->addParam("稼働・非稼働", 'work', INT_LEN, 'n', array("EXIST_CHECK", "NUM_CHECK", "MAX_LENGTH_CHECK"));
     $objFormParam->addParam("タイトル", 'title', MTEXT_LEN, 'KVa', array("EXIST_CHECK", "MAX_LENGTH_CHECK", "SPTAB_CHECK"));
     $objFormParam->addParam("内容", 'contents', LTEXT_LEN, 'KVa', array("MAX_LENGTH_CHECK"));
     $objFormParam->addParam("質問", 'question', MTEXT_LEN);
 }
 /**
  * パラメーターの初期化を行う
  * @param Object $objFormParam
  */
 function lfInitParam(&$objFormParam)
 {
     $objFormParam->addParam("商品ID", "search_name", LTEXT_LEN, 'KVa', array("MAX_LENGTH_CHECK"));
     $objFormParam->addParam("商品ID", "search_category_id", INT_LEN, 'n', array("MAX_LENGTH_CHECK", "NUM_CHECK"));
     $objFormParam->addParam("商品コード", "search_product_code", LTEXT_LEN, 'KVa', array("MAX_LENGTH_CHECK"));
     $objFormParam->addParam("ページ番号", "search_pageno", INT_LEN, 'n', array("MAX_LENGTH_CHECK", "NUM_CHECK"));
 }
 /**
  * パラメーターの初期化を行う
  * @param Object $objFormParam
  */
 function lfInitParam(&$objFormParam)
 {
     $objFormParam->addParam(t('c_Product ID_01'), 'product_id', INT_LEN, 'n', array('EXIST_CHECK', 'NUM_CHECK', 'MAX_LENGTH_CHECK'));
     $objFormParam->addParam(t('c_Category ID_01'), 'category_id', INT_LEN, 'n', array('EXIST_CHECK', 'NUM_CHECK', 'MAX_LENGTH_CHECK'));
     $objFormParam->addParam(t('c_Rank_01'), 'rank', INT_LEN, 'n', array('EXIST_CHECK', 'NUM_CHECK', 'MAX_LENGTH_CHECK'));
     $objFormParam->addParam(t('c_Comment_01'), 'comment', LTEXT_LEN, 'KVa', array('EXIST_CHECK', 'MAX_LENGTH_CHECK'));
 }
 /**
  * パラメーターの初期化を行う
  * @param Object $objFormParam
  */
 function lfInitParam(&$objFormParam)
 {
     $objFormParam->addParam(t('c_Product ID_01'), 'search_name', LTEXT_LEN, 'KVa', array('MAX_LENGTH_CHECK'));
     $objFormParam->addParam(t('c_Product ID_01'), 'search_category_id', INT_LEN, 'n', array('MAX_LENGTH_CHECK', 'NUM_CHECK'));
     $objFormParam->addParam(t('c_Product code_01'), 'search_product_code', LTEXT_LEN, 'KVa', array('MAX_LENGTH_CHECK'));
     $objFormParam->addParam(t('c_Page number_01'), 'search_pageno', INT_LEN, 'n', array('MAX_LENGTH_CHECK', 'NUM_CHECK'));
 }
Exemplo n.º 10
0
 /**
  * パラメーターの初期化を行う
  * @param Object $objFormParam
  */
 function lfInitParam(&$objFormParam)
 {
     $objFormParam->addParam("news_id", 'news_id');
     $objFormParam->addParam("日付(年)", 'year', INT_LEN, 'n', array("EXIST_CHECK", "NUM_CHECK", "MAX_LENGTH_CHECK"));
     $objFormParam->addParam("日付(月)", 'month', INT_LEN, 'n', array("EXIST_CHECK", "NUM_CHECK", "MAX_LENGTH_CHECK"));
     $objFormParam->addParam("日付(日)", 'day', INT_LEN, 'n', array("EXIST_CHECK", "NUM_CHECK", "MAX_LENGTH_CHECK"));
     $objFormParam->addParam("タイトル", 'news_title', MTEXT_LEN, 'KVa', array("EXIST_CHECK", "MAX_LENGTH_CHECK", "SPTAB_CHECK"));
     $objFormParam->addParam('URL', 'news_url', URL_LEN, 'KVa', array("MAX_LENGTH_CHECK"));
     $objFormParam->addParam("本文", 'news_comment', LTEXT_LEN, 'KVa', array("MAX_LENGTH_CHECK"));
     $objFormParam->addParam("別ウィンドウで開く", 'link_method', INT_LEN, 'n', array("NUM_CHECK", "MAX_LENGTH_CHECK"));
     $objFormParam->addParam("ランク移動", 'term', INT_LEN, 'n', array("NUM_CHECK", "MAX_LENGTH_CHECK"));
 }
 /**
  * パラメータの初期化を行う
  * @param Object $objFormParam
  */
 function lfInitParam(&$objFormParam, $arrQuestionnaire)
 {
     foreach ($arrQuestionnaire['question'] as $key => $questionnaire) {
         switch ($questionnaire['kind']) {
             case 'text':
                 $objFormParam->addParam($questionnaire['name'], 'answer' . $key, MTEXT_LEN, 'KVa', array("EXIST_CHECK", "MAX_LENGTH_CHECK"));
                 break;
             case 'textarea':
                 $objFormParam->addParam($questionnaire['name'], 'answer' . $key, LTEXT_LEN, 'KVa', array("EXIST_CHECK", "MAX_LENGTH_CHECK"));
                 break;
             case 'checkbox':
                 $objFormParam->addParam($questionnaire['name'], 'answer' . $key, INT_LEN, 'n', array("EXIST_CHECK", "MAX_LENGTH_CHECK"));
                 break;
             case 'radio':
                 $objFormParam->addParam($questionnaire['name'], 'answer' . $key, INT_LEN, 'n', array("EXIST_CHECK", "MAX_LENGTH_CHECK"));
                 break;
         }
     }
 }