Ignore:
Timestamp:
2012/01/23 04:49:37 (12 years ago)
Author:
Seasoft
Message:

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

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

Legend:

Unmodified
Added
Removed
  • branches/version-2_12-dev/data/smarty_extends/function.html_radios_ex.php

    r20540 r21420  
    5555    foreach($params as $_key => $_val) { 
    5656        switch($_key) { 
    57             case 'tags': 
    58                 $$_key = split("\|", $_val); 
    59                 break; 
     57    case 'tags': 
     58    $$_key = split("\|", $_val); 
     59    break; 
    6060            case 'name': 
    6161            case 'separator': 
     
    9292            case 'assign': 
    9393                break; 
    94              
     94 
    9595            default: 
    9696                if(!is_array($_val)) { 
     
    136136        . smarty_function_escape_special_chars($name) . '" value="' 
    137137        . smarty_function_escape_special_chars($value) . '"'; 
    138      
     138 
    139139   if ($labels && $label_ids) { 
    140        $_id = smarty_function_escape_special_chars(preg_replace('![^\w\-\.]!', '_', $name . '_' . $value)); 
    141        $_output .= ' id="' . $_id . '"'; 
     140       $_id = smarty_function_escape_special_chars(preg_replace('![^\w\-\.]!', '_', $name . '_' . $value)); 
     141       $_output .= ' id="' . $_id . '"'; 
    142142   } 
    143143    if ((string)$value == $selected) { 
    144144        $_output .= ' checked="checked"'; 
    145145    } 
    146      
    147     $_output .= $extra . ' />'; 
    148146 
    149     $_output .= $tags[0]; 
    150          
    151     if ($labels) { 
     147    $_output .= $extra . ' />'; 
     148 
     149    $_output .= $tags[0]; 
     150 
     151    if ($labels) { 
    152152      if($label_ids) { 
    153           $_id = smarty_function_escape_special_chars(preg_replace('![^\w\-\.]!', '_', $name . '_' . $value)); 
     153      $_id = smarty_function_escape_special_chars(preg_replace('![^\w\-\.]!', '_', $name . '_' . $value)); 
    154154          $_output .= '<label for="' . $_id . '">'; 
    155155      } else { 
     
    157157      } 
    158158    } 
    159      
    160     // 値を挿入 
    161     $_output .= $output; 
    162      
    163     $_output .= $tags[1]; 
    164      
    165     if ($labels) $_output .= '</label>'; 
     159 
     160    // 値を挿入 
     161    $_output .= $output; 
     162 
     163    $_output .= $tags[1]; 
     164 
     165    if ($labels) $_output .= '</label>'; 
    166166    $_output .=  $separator; 
    167167 
    168168    return $_output; 
    169169} 
    170  
    171 ?> 
Note: See TracChangeset for help on using the changeset viewer.