Ignore:
Timestamp:
2012/02/06 11:05:15 (12 years ago)
Author:
Seasoft
Message:

#1613 (ソース整形・ソースコメントの改善)

  • Zend Framework PHP 標準コーディング規約への準拠を高めた
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_12-dev/data/class/pages/admin/products/LC_Page_Admin_Products_Review.php

    r21420 r21441  
    106106            // エラーチェック 
    107107            $this->arrErr = $this->lfCheckError($objFormParam); 
    108             if (!$this->arrErr){ 
     108            if (!$this->arrErr) { 
    109109                // 検索条件を取得 
    110110                list($where, $arrval) = $this->lfGetWhere($this->arrForm); 
     
    146146        $objErr->arrErr = $objFormParam->checkError(); 
    147147 
    148         switch ($this->getMode()){ 
     148        switch ($this->getMode()) { 
    149149        case 'search': 
    150150            $objErr->doFunc(array("投稿者", "search_startyear", "search_startmonth", "search_startday"), array("CHECK_DATE")); 
     
    185185        foreach ($arrForm AS $key=>$val) { 
    186186            if (preg_match("/^search_/", $key)) { 
    187                 switch ($key){ 
     187                switch ($key) { 
    188188                case 'search_sex': 
    189189                    $arrHidden[$key] = SC_Utils_Ex::sfMergeParamCheckBoxes($val); 
    190                     if(!is_array($val)) { 
     190                    if (!is_array($val)) { 
    191191                        $arrForm[$key] = explode("-", $val); 
    192192                    } 
     
    234234    function lfDoOutputCsv($where, $arrVal) { 
    235235        $objCSV = new SC_Helper_CSV_Ex(); 
    236         if($where != ""){ 
     236        if ($where != "") { 
    237237            $where = "WHERE " . $where; 
    238238        } 
     
    250250        $where = "A.del_flg = 0 AND B.del_flg = 0"; 
    251251 
    252         foreach ($arrForm AS $key=>$val){ 
     252        foreach ($arrForm AS $key=>$val) { 
    253253            if (empty($val)) continue; 
    254254 
    255             switch ($key){ 
     255            switch ($key) { 
    256256            case 'search_reviewer_name': 
    257257                $val = preg_replace("/ /", "%", $val); 
     
    281281                $tmp_where = ""; 
    282282                //$val=配列の中身,$element=各キーの値(1,2) 
    283                 if (is_array($val)){ 
    284                     foreach($val as $element) { 
    285                         if($element != "") { 
    286                             if($tmp_where == "") { 
     283                if (is_array($val)) { 
     284                    foreach ($val as $element) { 
     285                        if ($element != "") { 
     286                            if ($tmp_where == "") { 
    287287                                $tmp_where .= " AND (sex = ?"; 
    288288                            } else { 
     
    292292                        } 
    293293                    } 
    294                     if($tmp_where != "") { 
     294                    if ($tmp_where != "") { 
    295295                        $tmp_where .= ")"; 
    296296                        $where .= " $tmp_where "; 
     
    306306 
    307307            case 'search_startyear': 
    308                 if (isset($_POST['search_startyear']) && isset($_POST['search_startmonth']) && isset($_POST['search_startday'])){ 
     308                if (isset($_POST['search_startyear']) && isset($_POST['search_startmonth']) && isset($_POST['search_startday'])) { 
    309309                    $date = SC_Utils_Ex::sfGetTimestamp($_POST['search_startyear'], $_POST['search_startmonth'], $_POST['search_startday']); 
    310310                    $where.= " AND A.create_date >= ? "; 
     
    314314 
    315315            case 'search_endyear': 
    316                 if (isset($_POST['search_startyear']) && isset($_POST['search_startmonth']) && isset($_POST['search_startday'])){ 
     316                if (isset($_POST['search_startyear']) && isset($_POST['search_startmonth']) && isset($_POST['search_startday'])) { 
    317317                    $date = SC_Utils_Ex::sfGetTimestamp($_POST['search_endyear'], $_POST['search_endmonth'], $_POST['search_endday']); 
    318318                    $end_date = date("Y/m/d",strtotime("1 day" ,strtotime($date))); 
Note: See TracChangeset for help on using the changeset viewer.