<?php
/**
 * File: $Id$
 *
 * Return the properties for an item
 *
 * @package Xaraya eXtensible Management System
 * @copyright (C) 2003 by the Xaraya Development Team.
 * @license GPL <http://www.gnu.org/licenses/gpl.html>
 * @link http://www.xaraya.com
 *
 * @subpackage dynamicdata module
 * @author mikespub <mikespub@xaraya.com>
*/
/**
// TODO: move this to some common place in Xaraya (base module ?)
 * return the properties for an item
 *
 * @param $args array containing the items or fields to show
 * @returns array
 * @return array containing a reference to the properties of the item
 */
function dynamicdata_userapi_getitemfordisplay($args)
{
    $args['getobject'] = 1;
    $object = & xarModAPIFunc('dynamicdata','user','getitem',$args);
    if (isset($object)) {
        $properties = & $object->getProperties();
    } else {
        $properties = array();
    }
    return array(& $properties);
}

?>