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

NAME

App::Office::Contacts::Database::Person - 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:

o (None)

Methods

add($person)

Adds $person to the people table.

build_person_record($user_id, $people)

Returns an arrayref of hashrefs for the given $people. Keys in this hashref are:

o communication_type_id
o email_phone
o facebook_tag
o gender_id
o given_names
o homepage
o id
o name
o occupation
o preferred_name
o role_id
o surname
o title_id
o twitter_tag
o upper_name
o visibility_id

delete($id)

Deletes the person with the given $id from the people table.

get_people($user_id, $uc_key)

Returns an arrayref of hashrefs (by calling build_person_record() ) of people whose names match $uc_key.

get_people_for_report()

Returns an arrayref of hashrefs of people.

get_person_id_via_name($name)

Returns the id of the person with the given $name.

get_person_list($user_id, $id)

Returns an arrayref of hashrefs (by calling build_person_record() ) of people whose names are like the person with the given $id.

get_person_via_id($id)

Returns the person with the given $id.

get_persons_emails_and_phones($id)

Returns an arrayref of hashrefs of email addresses and phone numbers for the person with the given $id.

get_persons_occupations($person_id)

Returns an arrayref of hashrefs of occupations for the given $person_id. Keys in this hashref are:

o occupation_id
o occupation_title
o organization_id
o organization_name
o person_id
o person_name

save_person_record($context, $person)

Saves the given $person to the 'people' table. $context is 'add'.

save_person_transaction($context, $person)

Saves the given $person and all the email addresses and phone numberes associated with it.

update($person)

Updates the given $person.

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.

Home page.

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