The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

Name

File::Gettext::Storage - Split/merge language dependent data

Synopsis

Description

This is a proxy for the storage class. In general, for each call made to a storage method this class makes two instead. The "second" call handles attributes stored in the language dependent file

Configuration and Environment

Defines the attributes

lang

Two character language code

schema

A weakened reference to the schema object

storage

Instance of File::DataClass::Storage

Subroutines/Methods

delete

   $bool = $self->delete( $path, $result );

Deletes the specified element object returning true if successful. Throws an error otherwise

dump

   $data = $self->dump( $path, $data );

Exposes "dump" in File::DataClass::Storage in the storage class

insert

   $bool = $self->insert( $path, $result );

Inserts the specified element object returning true if successful. Throws an error otherwise

load

   $data = $self->load( $path );

Exposes "load" in File::DataClass::Storage in the storage class

select

   $hash_ref = $self->select( $element );

Returns a hash ref containing all the elements of the type specified in the result source

update

   $bool = $self->update( $path, $result );

Updates the specified element object returning true if successful. Throws an error otherwise

Diagnostics

None

Dependencies

File::Gettext

Incompatibilities

There are no known incompatibilities in this module

Bugs and Limitations

There are no known bugs in this module. Please report problems to the address below. Patches are welcome

Author

Peter Flanigan, <pjfl@cpan.org>

License and Copyright

Copyright (c) 2016 Peter Flanigan. All rights reserved

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic

This program is distributed in the hope that it will be useful, but WITHOUT WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE