Changeset 2931

Show
Ignore:
Timestamp:
07/23/08 15:00:05 (3 months ago)
Author:
steevanb
Message:

Ajout d'un attribut description (ou description i18n) pour les paramètres

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/utils/copix/utils/CopixModuleConfig.class.php

    r2868 r2931  
    372372                        $defaultStr = (isset ($values[$default])) ? trim ($values[$default]) : $default; 
    373373                    } else if ($type == 'bool') {  
    374                         //echo '[$groupKey] [' . $groupKey . '] [$attributes] [' . $attributes['name'] . '] [$type] [' . $type . ']<br />'; 
    375374                        $defaultStr = ($default == 0) ? _i18n ('copix:copix.no') : _i18n ('copix:copix.yes'); 
    376375                    } else { 
    377376                        $defaultStr = (string) $attributes['default']; 
     377                    } 
     378                     
     379                    $description = null; 
     380                    if (isset ($attributes['description'])) { 
     381                        $description = (string)$attributes['description']; 
     382                    } else if (isset ($attributes['descriptioni18n'])) { 
     383                        $description = _i18n ((string)$attributes['descriptioni18n']); 
    378384                    } 
    379385                     
     
    390396                        'MaxLength' => (isset ($attributes['maxLength'])) ? (string) $attributes['maxLength'] : null, 
    391397                        'ListValues' => (isset ($attributes['listValues'])) ? (string) $attributes['listValues'] : null, 
    392                         'Group' => $groupKey 
     398                        'Group' => $groupKey, 
     399                        'Description' => $description 
    393400                    ); 
    394401