Ignore:
Timestamp:
04/27/17 00:47:36 (7 years ago)
Author:
nanardon
Message:

Allow sub-object creation when creating object

File:
1 edited

Legend:

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

    r1935 r1992  
    197197    @attrs = grep { $_->readable } @attrs if($for =~ /r/); 
    198198    map { $_->name } grep { !$_->hidden }  @attrs; 
     199} 
     200 
     201=head2 GetOtypeDef 
     202 
     203This function is called to provide sub object definition. Must be overwritten 
     204per object class when need. 
     205 
     206Must return a hashref listing each sub object type and their related key atribute: 
     207 
     208    return { 
     209        addresses => 'user', 
     210    } 
     211 
     212=cut 
     213 
     214sub GetOtypeDef { 
     215    my ($class) = @_; 
     216 
     217    return; 
    199218} 
    200219 
Note: See TracChangeset for help on using the changeset viewer.