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

NAME

Sakai::Stats::Institutions

ABSTRACT

Library that allows a user id to be mapped to one or more institutions.

METHODS

new

Create, set up, and return an Institutions object.

Given an ldap connection, search string, attributes and base, this method performs the ldap search and returns the result as a perl data structure.

populate_user_insts

Populates the institution map with user id as the key and an array of institutions the uid is a member of as the value.

populate_inst_names

Populates the instid map with institution id as the key and the human readable name for the institution as the value.

ldap_connect

Connect to the LDAP host with the given configuration.

generate_user_insts

This is the top level method for setting up the uid to institutions map.

generate_names_for_ids

This is the top level method for setting up the instid to institution name map.

Method for printing to the provided file handle a representation of the membership count data.

inst_membership_count

Print out the number of people who are members of 1,2,3,4... etc. institutions.

Print the number of unique users from an institution for a given month.

build_instid_counts

Fetches data from a specified database server to construct the instid counts.

unique_for_month

Print out the number of unique users from each institution for a given month.

USAGE

use Sakai::Stats::Institutions;

DESCRIPTION

Library to map users to institutions they are a member of.

REQUIRED ARGUMENTS

None required.

OPTIONS

n/a

DIAGNOSTICS

n/a

EXIT STATUS

0 on success.

CONFIGURATION

None required.

DEPENDENCIES

INCOMPATIBILITIES

None known.

BUGS AND LIMITATIONS

None known.

AUTHOR

Daniel David Parry <perl@ddp.me.uk>

LICENSE AND COPYRIGHT

LICENSE: http://dev.perl.org/licenses/artistic.html

COPYRIGHT: (c) 2011 Daniel David Parry <perl@ddp.me.uk>