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