Share » Forums » Developer » Change User Attribute

Change User Attribute

Change User Attribute

Thursday 17 September 2009 6:25:17 am - 1 reply

Modified on Thursday 17 September 2009 6:26:46 am by Daniel B

Author Message

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') );
 

 

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu