Changeset 1043 for trunk/LATMOS-Accounts


Ignore:
Timestamp:
05/31/12 19:50:39 (12 years ago)
Author:
nanardon
Message:
  • reoarder code to improve documentation
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LATMOS-Accounts/lib/LATMOS/Accounts.pm

    r1042 r1043  
    9191 
    9292    $self 
     93} 
     94 
     95=head2 list_bases 
     96 
     97Return the base list found in config file 
     98 
     99=cut 
     100 
     101sub list_bases { 
     102    my ($self) = @_; 
     103    grep { 
     104        !m/^_.*_$/ && 
     105        !m/^sync:/ 
     106    } $self->Sections 
    93107} 
    94108 
     
    123137} 
    124138 
    125 =head2 list_bases 
    126  
    127 Return the base list found in config file 
    128  
    129 =cut 
    130  
    131 sub list_bases { 
    132     my ($self) = @_; 
    133     grep { 
    134         !m/^_.*_$/ && 
    135         !m/^sync:/ 
    136     } $self->Sections 
     139=head2 default_base_name 
     140 
     141Return the default base name according config file 
     142 
     143=cut 
     144 
     145sub default_base_name { 
     146    my ($self) = @_; 
     147    $self->val('_default_', 'base', ($self->list_bases)[0]); 
    137148} 
    138149 
     
    150161    # this method perform a cache 
    151162    $self->_load_base($section || $self->default_base_name); 
    152 } 
    153  
    154 =head2 default_base_name 
    155  
    156 Return the default base name according config file 
    157  
    158 =cut 
    159  
    160 sub default_base_name { 
    161     my ($self) = @_; 
    162     $self->val('_default_', 'base', ($self->list_bases)[0]); 
    163163} 
    164164 
     
    199199} 
    200200 
     201=head2 list_synchro 
     202 
     203List synchronisation setup in L<latmos-accounts.ini> 
     204 
     205=cut 
     206 
     207sub list_synchro { 
     208    my ($self) = @_; 
     209    grep { $_ } map { /^sync:(.*)$/; $1 } $self->Sections 
     210} 
     211 
    201212=head2 default_synchro_name 
    202213 
     
    208219    my ($self) = @_; 
    209220    $self->val('_default_', 'sync'); 
    210 } 
    211  
    212 =head2 list_synchro 
    213  
    214 List synchronisation setup in L<latmos-accounts.ini> 
    215  
    216 =cut 
    217  
    218 sub list_synchro { 
    219     my ($self) = @_; 
    220     grep { $_ } map { /^sync:(.*)$/; $1 } $self->Sections 
    221221} 
    222222 
Note: See TracChangeset for help on using the changeset viewer.