Forums / Developer / Change User Attribute / Comment51779
Daniel B
Thursday 17 September 2009 6:47:51 am
thats work...
//get the Object $object = eZContentObject::fetch(57); //get the data map from this object $dataMap = $object->attribute('data_map'); //set attribute $dataMap['ldap_groups']->setAttribute( "data_text", 'otto'); $dataMap['ldap_groups']->store(); //store the object! $object->store(); //clear the view cache for this object eZContentCacheManager::clearObjectViewCache( $object->attribute('id') );