Author Topic

Dave Dykshoorn

Thursday 21 August 2003 3:01:56 pm

Comment38620

I figured it out.

$user = &eZUser::currentUser();
$userObject = &$user->attribute( "contentobject" );
$datamap = &$userObject->attribute ( "data_map" );

foreach ($datamap as $key => $value)
{
if ($key == 'my_enum')
{
$enumObjectContent = $value->attribute('content');
$SelectedEnums = $enumObjectContent->ObjectEnumerations;
}
}

$SelectedEnums contains all of the enums that were selected.

print_r is a personal friend of mine. :)