* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *
***************************************************************************/
-require_once('user.func.inc.php');
-
class VCard extends PlVCard
{
private $profile_list = array();
}
// Homes
- $adrs = $pf->getAddresses(Profile::ADDRESS_PERSO);
+ $adrs = $pf->iterAddresses(Profile::ADDRESS_PERSO);
while ($adr = $adrs->next()) {
// TODO : find a way to fetch only the "street" part of the address
$group = $entry->addHome($adr['text'], null, null, $adr['postalCode'],
}
// Pro
- $adrs = $pf->getAddresses(Profile::ADDRESS_PRO);
+ $adrs = $pf->iterAddresses(Profile::ADDRESS_PRO);
while ($adr = $adrs->next()) {
// TODO : link address to company
$group = $entry->addWork(null, null, null, null,
if (!is_null($user)) {
$groups = $user->groups();
if (count($groups)) {
- require_once "directory.enums.inc.php";
$gn = DirEnum::getOptions(DirEnum::GROUPESX);
$gns = array();
foreach (array_keys($groups) as $gid) {
$binets = $pf->getBinets();
if (count($binets)) {
- require_once "directory.enums.inc.php";
$bn = DirEnum::getOptions(DirEnum::BINETS);
$bns = array();
foreach ($binets as $bid) {
$entry->set('X-BINETS', join(', ', $bid));
}
if (!empty($pf->section)) {
- require_once "directory.enums.inc.php";
$sections = DirEnum::getOptions(DirEnum::SECTIONS);
$entry->set('X-SECTION', $sections[$pf->section]);
}