Open Source Content Management Framework

org.openpsa.contactwidget

  1. Features:
  2. Documentation:
    1. Contact display widget

org.openpsa.contactwidget is a MidCOM purecode component providing contact information display to MidCOM components.

Features:

  • Display contact details of any person record
  • hCard compatible, machine-readable output
  • Gravatar support for remote contact photos
  • Edgar integration for Jabber instant messaging presence display

Documentation:

To use the contactwidget you need to include the library into the _autoload_libraries array of your component's interface class:

$this->_autoload_libraries = Array(
    'midcom.helper.datamanager',
    'org.openpsa.contactwidget',
);

Then simply load a person record, and pass it to the contactwidget for display:

<?php
// Fetch the person
$person = new midcom_db_person(1);

// Display the contact
$contact = new org_openpsa_contactwidget($person);
$contact->show();
?>

This will look like the following:

view_openpsa-contactwidget

Contact display widget

See org.openpsa.contactwidget in CVS.

Designed by Nemein, hosted by Anykey