kernel/user/ezuseroperationcollection.php
static private function updateUserDraft( $user )
    {
        $userObject = eZContentObject::fetch( $user->id() );

        foreach ( $userObject->dataMap() as $attribute )
        {
            if ( $attribute->ContentClassAttributeIdentifier == 'user_account' )
            {
                $attribute->setAttribute( 'data_text', eZUserType::serializeDraft( $user ) );
                $attribute->store();
                break;
            }
        }
    }
static private function updateUserDraft( $user )
    {
        $userObject = eZContentObject::fetch( $user->id() );

        foreach ( $userObject->dataMap() as $attribute )
        {
            if ( $attribute->ContentClassAttributeIdentifier == 'user_account' )
            {
                $attribute->setAttribute( 'data_text', eZUserType::serializeDraft( $user ) );
                $attribute->store();
                break;
            }
        }
    }
static private function updateUserDraft ( $ user ) { $ userObject = eZContentObject :: fetch ( $ user -> id ( ) ) ; foreach ( $ userObject -> dataMap ( ) as $ attribute ) { if ( $ attribute -> ContentClassAttributeIdentifier == 'user_account' ) { $ attribute -> setAttribute ( 'data_text' , eZUserType :: serializeDraft ( $ user ) ) ; $ attribute -> store ( ) ; break ; } } }
Update the "draft" of a given user

@param $user eZUser
Update the draft of a given user