Elive
view release on metacpan or search on metacpan
lib/Elive/DAO.pm view on Meta::CPAN
Updates may also be passed as parameters:
# change and save foo and bar. All in one go.
$obj->update({foo => 'Foo', bar => 'Bar'});
This method can be called from the class level. You will need to
supply the primary key and all mandatory fields.
=cut
sub update {
my ($self, $_update_data, %opt) = @_;
die "attempted to update deleted record"
if ($self->_deleted);
my %params = %{ $opt{param} || {} };
my %primary_key = map {$_ => 1} ($self->primary_key);
my %updates;
if (! ref $self) {
lib/Elive/Entity/Group.pm view on Meta::CPAN
=head2 update
$group->update({members => [111111,'222222', $alice->userId, $bob]});
$group->update({members => '111111,222222,333333'});
Updates an existing group.
=cut
sub update {
my ($self, $data, %opt) = @_;
#
# updateGroup barfs unless the groupName is included as a parameter.
#
$self->set(%$data);
my @changed = $self->is_changed;
push (@changed, 'name')
unless grep {$_ eq 'name'} @changed;
return $self->SUPER::update( undef, %opt, changed => \@changed);
lib/Elive/Entity/ParticipantList.pm view on Meta::CPAN
=over 4
=item if you specify an empty list, C<reset> method will be called. The
resultant list wont be empty, but will have the moderator as the sole
participant.
=back
=cut
sub update {
my ($self, $update_data, %opt) = @_;
if (defined $update_data) {
die 'usage: $obj->update( \%data, %opt )'
unless (Elive::Util::_reftype($update_data) eq 'HASH');
$self->set( %$update_data )
if (keys %$update_data);
}
lib/Elive/Entity/Preload.pm view on Meta::CPAN
return $db_thawed;
}
=head2 update
The update method is not available for preloads.
=cut
sub update {return shift->_not_available}
sub _guess_mimetype {
my ($class, $filename) = @_;
my $mime_type;
my $guess;
unless ($filename =~ m{\.elpx?}x) { # plan
our $mime_types ||= MIME::Types->new;
$mime_type = $mime_types->mimeTypeOf($filename);
lib/Elive/Entity/Report.pm view on Meta::CPAN
return $class->SUPER::insert( $class->_freeze($insert_data), %opt);
}
=head2 update
The C<update> method is not available for reports.
=cut
sub update {
my ($self, $_spec, %opt) = @_;
my $update_data;
$update_data = $self->BUILDARGS($_spec, %opt)
if $_spec;
#
# always need to supply these fields to the update command,
# whether or not they've actually changed.
#
my %changed;
lib/Elive/Entity/ServerParameters.pm view on Meta::CPAN
boundaryMinutes => 15,
fullPermissions => 1,
supervised => 1,
});
Updates the meeting boundary times, permissions and whether the meeting is
supervised.
=cut
sub update {
my ($self, $update_data, %opt) = @_;
$self->set( %$update_data)
if (keys %$update_data);
#
# Command Toolkit seems to require a setting for fullPermissions (aka
# permissionsOn); always pass it through.
#
my @required = qw/boundaryMinutes fullPermissions supervised/;
my %changed;
lib/Elive/Entity/Session.pm view on Meta::CPAN
# ...or...
$session->boundaryTime(15);
$session->update;
Updates session properties, using the C<updateSession> command.
=cut
sub update {
my $self = shift;
my %update_data = %{ shift() || {} };
my %opt = @_;
my $changed = $opt{changed} || [$ self->is_changed];
if (@$changed || keys %update_data) {
#
# Early ELM 3.x has a habit of wiping defaults. We're better off
# to rewrite the whole record
lib/Elive/Entity/User.pm view on Meta::CPAN
Update an Elluminate user. Everything can be changed, other than userId.
This includes the loginName. However loginNames must all remain unique.
As a safeguard, you'll need to pass C<force =E<gt> 1> to update:
(a) users with a Role Id of 0, i.e. system administrator accounts, or
(b) the login user
=cut
sub update {
my ($self, $data_href, %opt) = @_;
$self->_safety_check(%opt);
return $self->SUPER::update( $data_href, %opt);
}
=head2 change_password
Implements the C<changePassword> SDK method.
lib/Elive/View/Session.pm view on Meta::CPAN
$session->seats(5);
$session->update;
...or equivalently...
$session->update({seats => 5});
=cut
sub update {
my $self = shift;
my %data = %{ shift() || {} };
my %opts = @_;
my $preloads = delete $data{add_preload};
my $delegates = $self->_delegates;
foreach my $delegate (sort keys %$delegates) {
my $delegate_class = $delegates->{$delegate};
( run in 0.300 second using v1.01-cache-2.11-cpan-ec4f86ec37b )