NAME
App::Office::Contacts::Database::Library - A web-based contacts manager
Synopsis
See "Synopsis" in App::Office::Contacts.
Description
App::Office::Contacts implements a utf8-aware, web-based, private and group contacts manager.
Distributions
See "Distributions" in App::Office::Contacts.
Installation
See "Installation" in App::Office::Contacts.
Object attributes
Each instance of this class is a Moo-based object with these attributes:
Methods
build_error_xml($error, $result)
Builds XML for an Ajax response.
Parameters:
- o $error => $string
-
This is a string to display on the status line.
This method prepends 'Error: ' to $error, since that is what the Javascript looks for.
- o $result => An object of type Data::Verifier::Result
build_ok_xml($html)
Builds XML for an Ajax response.
$html is the HTML to display.
build_simple_error_xml($error, $html)
Builds XML for an Ajax response. Parameters:
- o $error => $string
-
This is a string to appear in the status line
This method prepends 'Error: ' to $error, since that is what the Javascript looks for.
- o $html is a string to appear in the result div
-
The name of this result div varies between applications.
For App::Office::Contacts::Import, it is
import_div
.
count_reports()
Returns a count of the number of records in the 'reports' table.
decode_hashref_list(@list)
utf8-decodes the values in a list of hashrefs.
decode_list(@list)
utf8-decodes a list.
get_id2name_map($table_name)
Returns a hashref (for menus) in the form {$id => $name, ...}.
get_name2id_map($table_name)
Returns a hashref in the form {$name => $id, ...}.
get_role_via_id($id)
Returns the name of the role with the given $id.
insert_hash_get_id($table_name, $hashref)
Inserts $hashref into $table_name, and returns the id of the new record.
validate_id($table_name, $id)
Checks if the $table_name contains $id in the primary key column.
validate_name($table_name, $name)
Checks if the $table_name contains $name in the column called 'name'.
FAQ
See "FAQ" in App::Office::Contacts.
Support
See "Support" in App::Office::Contacts.
Author
App::Office::Contacts
was written by Ron Savage <ron@savage.net.au> in 2013.
Copyright
Australian copyright (c) 2013, Ron Savage. All Programs of mine are 'OSI Certified Open Source Software'; you can redistribute them and/or modify them under the terms of The Artistic License V 2, a copy of which is available at: http://www.opensource.org/licenses/index.html