kernel/classes/datatypes/ezuser/ezusertype.php
public static function serializeDraft( eZUser $user )
    {
        return json_encode(
            array(
                 'login' => $user->attribute( 'login' ),
                 'password_hash' => $user->attribute( 'password_hash' ),
                 'email' => $user->attribute( 'email' ),
                 'password_hash_type' => $user->attribute( 'password_hash_type' )
            )
        );
    }
public static function serializeDraft( eZUser $user )
    {
        return json_encode(
            array(
                 'login' => $user->attribute( 'login' ),
                 'password_hash' => $user->attribute( 'password_hash' ),
                 'email' => $user->attribute( 'email' ),
                 'password_hash_type' => $user->attribute( 'password_hash_type' )
            )
        );
    }
public static function serializeDraft ( eZUser $ user ) { return json_encode ( array ( 'login' => $ user -> attribute ( 'login' ) , 'password_hash' => $ user -> attribute ( 'password_hash' ) , 'email' => $ user -> attribute ( 'email' ) , 'password_hash_type' => $ user -> attribute ( 'password_hash_type' ) ) ) ; }
Generates a serialized draft of the ezuser content

@param eZUser $user
@return string
Generates a serialized draft of the ezuser content