NAME
App::Office::Contacts::Database::Organization - 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
This module extends App::Office::Contacts::Database::Base, with these attributes:
Methods
add($organization)
Adds $organization to the organizations table.
build_organization_record($user_id, $organizations)
Returns an arrayref of hashrefs for the given $organizations. Keys in this hashref are:
- o communication_type_id
- o email_phone
- o facebook_tag
- o homepage
- o id
- o name
- o role_id
- o staff
- o twitter_tag
- o visibility_id
delete($id)
Deletes the organization with the given $id from the organizations table.
get_organization_id_via_name($name)
Returns the id of the organization with the given $name.
get_organization_list($user_id, $id)
Returns an arrayref of hashrefs (by calling build_organization_record() ) of organizations whose names are like the organization with the given $id.
get_organization_name($id)
Returns the name of the organization with the given $name.
get_organizations($user_id, $uc_key)
Returns an arrayref of hashrefs (by calling build_organization_record() ) of organizations whose names match $uc_key.
get_organizations_emails_and_phones($id)
Returns an arrayref of hashrefs of email addresses and phone numbers for the organization with the given $id.
get_organizations_for_report($name)
Returns an arrayref of hashrefs of organizations whose names match $name.
get_organizations_staff($organization_id)
Returns an arrayref of hashrefs of staff for the given $organization_id. Keys in this hashref are:
save_organization_record($context, $organization)
Saves the given $organization to the 'organizations' table. $context is 'add'.
save_organization_transaction($context, $organization)
Saves the given $organization and all the email addresses and phone numberes associated with it.
update($organization)
Updates the given $organization.
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