org.openpsa.contactwidget
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:
Copyright © 1999-2008 The Midgard Project. Open Content
