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

NAME

App::Office::Contacts::Util::Validator - 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:

o app

Is a copy of the calling app object, and must be passed in to new().

E.g. It will be an instance of App::Office::Contacts::Controller::Exporter::Person, etc.

o config

Is a hashref of config items, passed in to new().

o db

Is an instance of a App::Office::Contacts::Database-based object, and must be passed in to new().

o query

Is a CGI-style object, and must be passed in to new().

Further, each attribute name is also a method name.

Methods

add_note()

Validates CGI form parameters when adding a Note.

add_occupation()

Validates CGI form parameters when adding an Occupation.

add_organization()

Validates CGI form parameters when adding an Organization.

add_person()

Validates CGI form parameters when adding a Person.

add_staff()

Validates CGI form parameters when adding a Staff member.

app()

Returns a copy of the calling app object passed in to new().

check_entity_id($result)

check_organization_id($organization_id)

check_organization_name($name)

check_person_id($person_id)

check_person_name($name)

check_sid($sid)

clean_user_data()

config()

Retturns a hashref of config items passed in to new().

db()

Returns an instance of a App::Office::Contacts::Database-based object passed in to new().

delete_note()

Validates CGI form parameters when deleting a Note.

delete_occupation()

Validates CGI form parameters when deleting an Occupation.

delete_staff()

Validates CGI form parameters when deleting a Staff member.

find_organization()

find_person()

log_result($result)

organization_profile()

person_profile()

query()

Returns the CGI-style object passed in to new().

report()

update_note()

Validates CGI form parameters when updating a Note.

update_organization()

Validates CGI form parameters when updating an Organization.

update_person()

Validates CGI form parameters when updating a Person.

validate_organization_id()

Validates just the organization_id and the sid (Session Id within Data::Session within App::Office::Contacts::Database).

validate_person_id()

Validates just the person_id and the sid (See App::Office::Contacts::Controller::Exporter::Person).

validate_upload()

Validates CGI form parameters when uploading a file (see App::Office::Contacts::Import::vCards).

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