Revision 52b6788d
Von Kivitendo Admin vor fast 10 Jahren hinzugefügt
SL/Clipboard.pm | ||
---|---|---|
C<SL::Clipboard::RequirementSpecItem>. These support classes must
|
||
inherit from L<SL::Clipboard::Base> which offers almost a full set of
|
||
support functions so that the actual specialized class has to do very
|
||
litte.
|
||
little.
|
||
|
||
As the clipboard is session-based its contents will be lost when the
|
||
session expires (either due to timeouts or to the user logging off).
|
||
... | ... | |
=item C<copy $object>
|
||
|
||
Creates a dumped copy of C<$object> and stores that copy in the
|
||
session. An unlimited number of copies of differeing types can be
|
||
session. An unlimited number of copies of differing types can be
|
||
made.
|
||
|
||
Returns the instance of the copied object, a sub-class of
|
||
... | ... | |
=item C<get_entry [$type]>
|
||
|
||
Returns the most recently clipped object whose type matches the
|
||
regular expression C<$type>. If C<$type> is not given then then then
|
||
regular expression C<$type>. If C<$type> is not given then the
|
||
most recently copied object is returned.
|
||
|
||
If no such object exists C<undef> is returned instead.
|
SL/Clipboard/Base.pm | ||
---|---|---|
|
||
=item C<to_object>
|
||
|
||
Converts the dumped representation back to an Rose::DB::Object
|
||
Converts the dumped representation back to a Rose::DB::Object
|
||
instance. Several columns of the newly created object are cleared by
|
||
C<to_object> itself: the primary key columns (if any) and the columns
|
||
C<itime> and C<mtime> (if the object has such columns).
|
||
|
||
This function should not be overwritten by sub-classes. Instead,
|
||
functions can overwrite C<_fix_object> which can be used for sanitzing
|
||
functions can overwrite C<_fix_object> which can be used for sanitizing
|
||
the newly created object before handing it back to the caller.
|
||
|
||
=item C<type>
|
Auch abrufbar als: Unified diff
Typos in Doku