Changeset 20721


Ignore:
Timestamp:
2011/03/18 19:17:36 (10 years ago)
Author:
nanasess
bzr:base-revision:
svn-v4:1e3b908f-19a9-db11-a64c-001125224ba8:branches/version-2_5-dev:20720
bzr:committer:
Kentaro Ohkouchi <ohkouchi@loop-az.jp>
bzr:file-ids:

data/class/pages/admin/order/LC_Page_Admin_Order_Mail.php 16357@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fdata%2Fclass%2Fpages%2Fadmin%2Forder%2FLC_Page_Admin_Order_Mail.php
data/class/pages/admin/total/LC_Page_Admin_Total.php 15600@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fdata%2Fclass%2Fpages%2Fadmin%2Ftotal%2FLC_Page_Admin_Total.php
data/class/util/SC_Utils.php 15078@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fdata%2Fclass%2Futil%2FSC_Utils.php
bzr:mapping-version:
v4
bzr:merge:

ohkouchi@loop-az.jp-20110318101612-tmribjhrlewf24no
bzr:repository-uuid:
1e3b908f-19a9-db11-a64c-001125224ba8
bzr:revision-id:
ohkouchi@loop-az.jp-20110318101732-sy7zsmfk2gddp41l
bzr:revno:
3435
bzr:revprop:branch-nick:
branches/version-2_5-dev
bzr:root:
branches/version-2_5-dev
bzr:text-revisions:

data/class/pages/admin/order/LC_Page_Admin_Order_Mail.php ohkouchi@loop-az.jp-20110318101612-tmribjhrlewf24no
data/class/pages/admin/total/LC_Page_Admin_Total.php ohkouchi@loop-az.jp-20110318101612-tmribjhrlewf24no
data/class/util/SC_Utils.php ohkouchi@loop-az.jp-20110318101612-tmribjhrlewf24no
bzr:timestamp:
2011-03-18 19:17:32.947000027 +0900
bzr:user-agent:
bzr2.2.1+bzr-svn1.0.4
svn:original-date:
2011-03-18T10:17:32.947000Z
Message:

#1006 (検索パラメータの引き継ぎというコード)

  • SC_FormParam::getSearchArray() に共通化
Location:
branches/version-2_5-dev/data/class
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_5-dev/data/class/pages/admin/order/LC_Page_Admin_Order_Mail.php

    r20541 r20721  
    2323 
    2424// {{{ requires 
    25 require_once CLASS_EX_REALDIR . 'page_extends/admin/LC_Page_Admin_Ex.php'; 
     25require_once CLASS_EX_REALDIR . 'page_extends/admin/order/LC_Page_Admin_Order_Ex.php'; 
    2626 
    2727/** 
     
    3232 * @version $Id$ 
    3333 */ 
    34 class LC_Page_Admin_Order_Mail extends LC_Page_Admin_Ex { 
     34class LC_Page_Admin_Order_Mail extends LC_Page_Admin_Order_Ex { 
    3535 
    3636    // }}} 
     
    7171     */ 
    7272    function action() { 
    73         // 検索パラメータの引き継ぎ 
    74         $this->arrSearchHidden = SC_Utils_Ex::sfFilterKey($_POST,"^search_"); 
    7573        // パラメータ管理クラス 
    7674        $objFormParam = new SC_FormParam_Ex(); 
    7775        // パラメータ情報の初期化 
    7876        $this->lfInitParam($objFormParam); 
     77 
    7978        // POST値の取得 
    8079        $objFormParam->setParam($_POST); 
    8180        $objFormParam->convParam(); 
    8281        $this->tpl_order_id = $objFormParam->getValue('order_id'); 
     82 
     83        // 検索パラメータの引き継ぎ 
     84        $this->arrSearchHidden = $objFormParam->getSearchArray(); 
    8385 
    8486        switch($this->getMode()) { 
     
    215217     */ 
    216218    function lfInitParam(&$objFormParam) { 
     219        // 検索条件のパラメータを初期化 
     220        parent::lfInitParam($objFormParam); 
     221 
    217222        $objFormParam->addParam("オーダーID", "order_id", INT_LEN, 'n', array("EXIST_CHECK", "MAX_LENGTH_CHECK", "NUM_CHECK")); 
    218223        $objFormParam->addParam("テンプレート", "template_id", INT_LEN, 'n', array("EXIST_CHECK", "MAX_LENGTH_CHECK", "NUM_CHECK")); 
  • branches/version-2_5-dev/data/class/pages/admin/total/LC_Page_Admin_Total.php

    r20677 r20721  
    117117 
    118118        // 検索ワードの引き継ぎ 
    119         $this->arrHidden = SC_Utils_Ex::sfFilterKey($_POST, '^search_'); 
     119        $this->arrHidden = $objFormParam->getSearchArray(); 
    120120 
    121121        switch($this->getMode()) { 
  • branches/version-2_5-dev/data/class/util/SC_Utils.php

    r20677 r20721  
    609609    } 
    610610 
    611     /** 
    612      * keyが正規表現にマッチした配列のみ値を返す 
    613      * 
    614      * @param mixed $array 
    615      * @param mixed $regex 
    616      * @access public 
    617      * @return array $results 
    618      */ 
    619     function sfFilterKey($array, $regex) { 
    620         foreach ($array as $key => $val) { 
    621             if (preg_match("/{$regex}/", $key)) { 
    622                 $results[$key] = $val; 
    623             } 
    624         } 
    625         return $results; 
    626     } 
    627  
    628611    function sfGetErrorColor($val) { 
    629612        if($val != "") { 
Note: See TracChangeset for help on using the changeset viewer.