Ignore:
Timestamp:
2007/09/10 18:20:44 (17 years ago)
Author:
nanasess
Message:

クラス化に伴う修正

Location:
branches/feature-module-update/data/class
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • branches/feature-module-update/data/class/pages/inquiry/LC_Page_Inquiry.php

    r15532 r15662  
    1414 * @package Page 
    1515 * @author LOCKON CO.,LTD. 
    16  * @version $Id$ 
     16 * @version $Id:LC_Page_Inquiry.php 15532 2007-08-31 14:39:46Z nanasess $ 
    1717 */ 
    1818class LC_Page_Inquiry extends LC_Page { 
     
    4646        // 都道府県プルダウン用配列 
    4747        $masterData = new SC_DB_MasterData_Ex(); 
    48         $this->arrPrfef = $masterData->getMasterData("mtb_pref", 
     48        $this->arrPref = $masterData->getMasterData("mtb_pref", 
    4949                                  array("pref_id", "pref_name", "rank")); 
    5050 
     
    6969 
    7070 
     71        if (!isset($_POST['mode'])) $_POST['mode'] = ""; 
    7172 
    7273        if ( ( ! $_POST['mode'] == 'confirm' ) && ( ! is_numeric($_REQUEST['question_id']) ) ){ 
     
    8586        unset($this->arrHidden['mode']); 
    8687 
    87         if ( (int)$this->QUESTION["delete"] !== 0 ){ 
     88        if (isset($this->QUESTION["delete"]) 
     89            && (int)$this->QUESTION["delete"] !== 0 ){ 
    8890 
    8991            $objPage->tpl_mainpage = "inquiry/closed.tpl"; 
     
    111113            $this->arrForm = $this->lfConvertParam($this->arrForm, $arrRegistColumn); 
    112114            $this->arrErr = $this->lfErrorCheck($this->arrForm); 
    113             $this->arrErr = $this->GGlfGetArrInput($this->arrErr); 
     115            $this->arrErr = $this->lfGetArrInput($this->arrErr); 
    114116 
    115117 
     
    153155 
    154156        $this->cnt_question = 6; 
    155         $this->arrActive = $arrActive; 
    156         $this->arrQuestion = $arrQuestion; 
     157        $this->arrActive = isset($arrActive) ? $arrActive : ""; 
     158        $this->arrQuestion = isset($arrQuestion) ? $arrQuestion : ""; 
    157159 
    158160 
    159161        //---- ページ表示 
    160         $objView->_smarty->register_function("lfArray_Search_key_Smarty","lfArray_Search_key_Smarty"); 
     162        $objView->_smarty->register_modifier("lfArray_Search_key_Smarty","lfArray_Search_key_Smarty"); 
    161163        $objView->assignobj($this); 
    162164        $objView->display($this->tpl_mainpage); 
     
    202204        $objErr->doFunc(array('メールアドレス', 'メールアドレス(確認)', "email", "email02") ,array("EQUAL_CHECK")); 
    203205 
    204         $objErr->arrErr["option"] =  array_map( "lfCheckNull", (array)$_POST['option'] ); 
     206        $objErr->arrErr["option"] =  array_map(array($this, "lfCheckNull"), (array)$_POST['option'] ); 
    205207 
    206208        return $objErr->arrErr; 
     
    250252    function lfGetArrInput( $arr ){ 
    251253        // 値が入力された配列のみを返す 
     254        $return = array(); 
    252255 
    253256        if ( is_array($arr) ){ 
     
    256259                    $return[$key] = $val; 
    257260                } elseif ( is_array( $val ) ) { 
    258                     $data = lfGetArrInput ( $val ); 
     261                    $data = $this->lfGetArrInput ( $val ); 
    259262                    if ( $data ){ 
    260263                        $return[$key] = $data; 
     
    290293     */ 
    291294    function lfCheckNull ( $val ){ 
     295        $return = array(); 
    292296 
    293297        if ( ( ! is_array( $val ) ) && ( strlen( $val ) < 1 ) ){ 
     
    295299        } elseif ( is_array( $val ) ) { 
    296300            foreach ($val as $line) { 
    297                 $return = lfCheckNull( $line ); 
     301                $return = $this->lfCheckNull( $line ); 
    298302            } 
    299303        } 
  • branches/feature-module-update/data/class/util/SC_Utils.php

    r15634 r15662  
    12771277                } 
    12781278                if(is_array($val)) { 
    1279                     $arrDst = sfMakeHiddenArray($val, $arrDst, $keyname); 
     1279                    $arrDst = SC_Utils::sfMakeHiddenArray($val, $arrDst, $keyname); 
    12801280                } else { 
    12811281                    $arrDst[$keyname] = $val; 
Note: See TracChangeset for help on using the changeset viewer.