David Warring > Elive-StandardV2-0.02_1 > Elive::StandardV2::Presentation

Download:
Elive-StandardV2-0.02_1.tar.gz

Dependencies

Annotate this POD

Source  

NAME ^

Elive::StandardV2::Presentation - Presentation entity class

DESCRIPTION ^

This command uploads presentation files, such as Elluminate Live! whiteboard files or Elluminate Plan! files into your ELM repository for use by your Elluminate Live! sessions.

Once uploaded, you will need to "attach" the file to one or more Elluminate Live! sessions using the Elive::StandardV2::Session set_presentation() method.

PROPERTIES ^

presentationId (Int)

Identifier of the presentation file in the ELM repository.

description (Str)

A description of the presentation content.

size (Int)

The size of the presentation file (bytes), once uploaded to the ELM repository.

creatorId (Str)

The identifier of the owner of the presentation file.

filename (Str)

The name of the presentation file including the file extension.

Elluminate Live! supports the following presentation file types:

Note: The filename must be less than 64 characters (including any file extensions)

METHODS ^

upload

Uploads content and creates a new presentation resource. You can either upload a file, or upload binary data for the presentation.

    # 1. upload a local file
    my $presentation = Elive::StandardV2::Presentation->upload('c:\\Documents\intro.wbd');

    # 2. source our own binary content
    open (my $fh, '<', $presentation_path)
        or die "unable to open $presentation_path: $!";
    $fh->binmode;

    my $content = do {local $/ = undef; <$fh>};
    die "no presentation data: $presentation_path"
        unless ($content);

    my $presentation = Elive::StandardV2::Presentation->upload(
             {
                    filename => 'myplan.elpx',
                    creatorId =>  'bob',
                    content => $content,
             },
         );

list

    my $session_presentations = Elive::StandardV2::Presentation->list(
                                   filter => {sessionId => $my_session}
                                );

Lists sessions. You will need to provide a filter that contains at least one of: creatorId, presentationId, description or sessionId.

delete

    $presentation->delete;

Deletes presentation content from the server and removes it from any associated sessions.

syntax highlighting: