Changeset 27
- Timestamp:
- 04/22/09 12:45:40 (15 years ago)
- Location:
- LATMOS-Accounts/lib/LATMOS/Accounts
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
LATMOS-Accounts/lib/LATMOS/Accounts/Bases.pm
r17 r27 88 88 my ($self, $otype, $id) = @_; 89 89 90 return LATMOS::Accounts::Bases::Objects-> new($self, $otype, $id);90 return LATMOS::Accounts::Bases::Objects->_new($self, $otype, $id); 91 91 } 92 92 … … 102 102 sub create_object { 103 103 my ($self, $otype, $id, %data) = @_; 104 return; 104 my $pclass = $self->_load_obj_class($otype); 105 $pclass->create($id, %data) or return; 106 $self->get_object($otype, $id); 105 107 } 106 108 -
LATMOS-Accounts/lib/LATMOS/Accounts/Bases/Objects.pm
r12 r27 22 22 =cut 23 23 24 =head2 new($base, $ type, $id, ...)24 =head2 new($base, $id) 25 25 26 Return a new object of type $type having unique identifier 27 $id, all remaining arguments are passed to the subclass. 26 Create a new object having $id as uid. 28 27 29 28 =cut 30 29 31 sub new { 30 # _new($base, $type, $id, ...) 31 32 # Return a new object of type $type having unique identifier 33 # $id, all remaining arguments are passed to the subclass. 34 35 sub _new { 32 36 my ($class, $base, $otype, $id, @args) = @_; 33 37
Note: See TracChangeset
for help on using the changeset viewer.