Revision d41162bc
Von Moritz Bunkus vor mehr als 10 Jahren hinzugefügt
SL/Clipboard/Base.pm | ||
---|---|---|
69 | 69 |
} |
70 | 70 |
} |
71 | 71 |
|
72 |
sub _binary_column_names { |
|
73 |
my ($self, $class) = @_; |
|
74 |
return map { $_->name } |
|
75 |
grep { ref($_) =~ m/Pg::Bytea$/i } |
|
76 |
@{ $class->meta->columns }; |
|
77 |
} |
|
78 |
|
|
72 | 79 |
1; |
73 | 80 |
__END__ |
74 | 81 |
|
... | ... | |
187 | 194 |
Returns the actual clipped type (e.g. C<RequirementSpecItem>). This is |
188 | 195 |
derived from the actual class name of C<$self>. |
189 | 196 |
|
197 |
=item C<_binary_column_names $class> |
|
198 |
|
|
199 |
Returns an array of column names that have a binary type. Useful for |
|
200 |
sub-classes which need to encode binary content in Base64 during |
|
201 |
C<dump>. |
|
202 |
|
|
190 | 203 |
=item C<_fix_object $object> |
191 | 204 |
|
192 | 205 |
This function is called by L</to_object> before the object is passed |
Auch abrufbar als: Unified diff
Pflichnhefttextblöcke: Kopieren/Einfügen mit Bildern gefixt