view release on metacpan or search on metacpan
lib/Catmandu/Adlib/API.pm view on Meta::CPAN
Catmandu::NotImplemented->throw(
message => 'Adding items is not supported.'
);
}
sub update {
my ($self, $id, $data) = @_;
Catmandu::NotImplemented->throw(
message => 'Updating items is not supported.'
);
}
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Catmandu/AlephX.pm view on Meta::CPAN
when you supply the argument 'marc', an xml document will be created for you,
and stored in the argument 'xml_full_req'. 'marc' must be an array of arrays.
When you already supplied 'xml_full_req', it will be overwritten.
=cut
sub update_doc {
my($self,%args)=@_;
my $doc_num = $args{doc_num} || $args{doc_number};
delete $args{$_} for qw(doc_number doc_num);
$args{doc_num} = $self->format_doc_num($doc_num);
lib/Catmandu/AlephX.pm view on Meta::CPAN
say STDERR join("\n",@{$u->errors});
}
=cut
sub update_item {
my($self,%args)=@_;
require Catmandu::AlephX::Op::UpdateItem;
$args{op} = Catmandu::AlephX::Op::UpdateItem->op();
my $res = $self->ua->request(\%args,"POST");
Catmandu::AlephX::Op::UpdateItem->parse($res->content_ref(),\%args);
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Catmandu/CA/API.pm view on Meta::CPAN
lang => $self->lang
);
return $r->put(encode_json($data));
}
sub update {
my ($self, $id, $data) = @_;
my $r = Catmandu::CA::API::Request->new(
url => $self->url,
url_query => sprintf('service.php/item/%s/id/%s', $self->model, $id),
username => $self->username,
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Catmandu/Store/FedoraCommons/DC.pm view on Meta::CPAN
my $perl = $self->deserialize($data);
{ _id => $pid , %$perl };
}
sub update {
my ($self,$obj) = @_;
my $pid = $obj->{_id};
return undef unless $pid;
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Catmandu/Store/RKD/Bag.pm view on Meta::CPAN
Catmandu::NotImplemented->throw(
message => 'Adding item to store not supported.'
);
}
sub update {
my ($self, $id, $data) = @_;
Catmandu::NotImplemented->throw(
message => 'Updating item in store not supported.'
);
}
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Catmandu/Store/Resolver/Bag.pm view on Meta::CPAN
} else {
$self->pid($response->{'data'}->{'persistentURIs'}->[0]);
}
}
sub update {
my ($self, $id, $data) = @_;
my $response = $self->api->put($id, $data);
if (defined($response->{'data'}->{'work_pid'})) {
$self->pid($response->{'data'}->{'work_pid'});
} else {
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Catmandu/Store/AAT/Bag.pm view on Meta::CPAN
Catmandu::NotImplemented->throw(
message => 'Adding item to store not supported.'
);
}
sub update {
my ($self, $id, $data) = @_;
Catmandu::NotImplemented->throw(
message => 'Updating item in store not supported.'
);
}
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Catmandu/Store/Datahub/API.pm view on Meta::CPAN
});
return undef;
}
}
sub update {
my ($self, $id, $data) = @_;
if (not defined $id) {
Catmandu::BadArg->throw(
'message' => "Record could not be updated. Missing 'id'."
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Catmandu/Store/REST/Bag.pm view on Meta::CPAN
sub delete {
my ($self, $id) = @_;
return $self->api->delete($id);
}
sub update {
my ($self, $id, $data) = @_;
return $self->api->put($id, $data);
}
sub delete_all {
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Catmandu/Store/RKD/Bag.pm view on Meta::CPAN
Catmandu::NotImplemented->throw(
message => 'Adding item to store not supported.'
);
}
sub update {
my ($self, $id, $data) = @_;
Catmandu::NotImplemented->throw(
message => 'Updating item in store not supported.'
);
}
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Catmandu/Store/VIAF/Bag.pm view on Meta::CPAN
Catmandu::NotImplemented->throw(
message => 'Adding item to store not supported.'
);
}
sub update {
my ($self, $id, $data) = @_;
Catmandu::NotImplemented->throw(
message => 'Updating item in store not supported.'
);
}
view all matches for this distribution
view release on metacpan or search on metacpan
lib/CellBIS/SQL/Abstract.pm view on Meta::CPAN
return ["INSERT INTO ${table_name}($field_col) VALUES $value_col",
@value_data];
}
sub update {
my $self = shift;
my $arg_len = scalar @_;
if ($arg_len > 2 || $arg_len >= 5) {
my $method_name = '_qUpdate_arg' . $arg_len;
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Chandra/Game/Tetris/Engine.pm view on Meta::CPAN
$self->score(0);
$self->lines(0);
$self->level(1);
}
sub update_score {
my ($self, $cleared) = @_;
return unless $cleared;
my @points = (0, 100, 300, 500, 800);
my $pts = ($points[$cleared] // 800) * $self->level;
$self->score($self->score + $pts);
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Chandra/Component.pm view on Meta::CPAN
delete $_comp_registry{$cid};
return $self;
}
sub update {
my ($self) = @_;
my $app = comp__app $self;
return $self unless $app && comp__mounted $self;
my $cid = $self->_ensure_cid;
lib/Chandra/Component.pm view on Meta::CPAN
}
# Update only a sub-section of the component by a stable CSS selector.
# The selector is relative to the component's root element.
# The $html should already have actions rewritten.
sub update_part {
my ($self, $sub_id, $html) = @_;
my $app = comp__app $self;
return $self unless $app && comp__mounted $self;
$html = $self->_rewrite_actions($html);
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Chat/iFly.pm view on Meta::CPAN
Updates the iFly servers with all the configured settings you passed into the constructor of this object. This must be called when you first start using this module, and also each time that you make changes to your settings.
=cut
sub update_settings {
my ($self) = @_;
return $self->post('/z/', {
api_key => $self->api_key,
enable_chatroom => $self->enable_chatroom,
theme => $self->theme,
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Chef/Knife/Cmd/Vault.pm view on Meta::CPAN
push @cmd, $values if $values;
push @cmd, @opts;
$self->run(@cmd);
}
sub update {
my ($self, $vault, $item, $values, %options) = @_;
my @opts = $self->handle_options(%options);
my @cmd = (qw/knife vault update/, $vault, $item);
push @cmd, $values if $values;
push @cmd, @opts;
view all matches for this distribution
view release on metacpan or search on metacpan
Examples/GDS2Tool/gds2tool view on Meta::CPAN
$G_viewWindow -> raise();
}
}
################################################################################
sub updateInfoText
{
my $append = shift;
my $text = shift;
if (Exists($G_infoWindow))
{
view all matches for this distribution
view release on metacpan or search on metacpan
t/autodbTestObject.pm view on Meta::CPAN
my @tables=@_? @_: @{$self->tables};
my $old_counts=$self->{old_counts} || ($self->_old_counts(@tables));
# $old_counts=norm_counts(map {$_=>$old_counts->{$_}} @tables);
$old_counts;
}
sub update_counts {
my($self,$new_counts)=@_;
my $old_counts=$self->old_counts;
my @tables=keys %$new_counts;
@$old_counts{@tables}=@$new_counts{@tables};
}
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Class/Classless/DBI.pm view on Meta::CPAN
DBIx::Interpolate::attr(Columns=>{})
);
}
sub update_table {
my($self,$next,$vars) = @_;
return $self->dbx->do('
UPDATE', $self->table, 'SET', $vars->{values}, '
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Class/DBI/Cacheable.pm view on Meta::CPAN
If changes are made to the database via direct SQL calls the cache will be out-of-sync
with the real database.
=cut
sub update {
my $self = shift;
my $key = $self->getCacheKey;
my $result = $self->SUPER::update(@_);
$self->setCache($key);
return $result;
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Class/DBI/FormBuilder.pm view on Meta::CPAN
If called on a class, will first retrieve the relevant object (via C<retrieve_from_form>).
=cut
sub update_from_form
{
my ( $proto, $form ) = @_;
my $them = ref( $proto ) ? $proto : $proto->retrieve_from_form( $form );
lib/Class/DBI/FormBuilder.pm view on Meta::CPAN
If none exists (or if no values for primary keys are supplied), a new object is created.
=cut
sub update_or_create_from_form
{
my ( $them, $form ) = @_;
Carp::croak "update_or_create_from_form can only be called as a class method" if ref $them;
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Class/DBI/FromCGI.pm view on Meta::CPAN
$class->__untaint_types(\%types);
}
sub cgi_update_errors { %{ shift->{_cgi_update_error} || {} } }
sub update_from_cgi {
my $self = shift;
die "update_from_cgi cannot be called as a class method" unless ref $self;
__PACKAGE__->_run_update($self, @_);
}
view all matches for this distribution
view release on metacpan or search on metacpan
FromForm.pm view on Meta::CPAN
Update object.
=cut
sub update_from_form {
my $self = shift;
die "update_from_form cannot be called as a class method" unless ref $self;
__PACKAGE__->_run_update( $self, @_ );
}
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Class/DBI/Frozen/301.pm view on Meta::CPAN
sub _column_placeholder {
my ($self, $column) = @_;
return $self->find_column($column)->placeholder;
}
sub update {
my $self = shift;
my $class = ref($self)
or return $self->_croak("Can't call update as a class method");
$self->call_trigger('before_update');
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Class/DBI/Lite.pm view on Meta::CPAN
}# end if()
}# end do_transaction()
#==============================================================================
sub update
{
my $s = shift;
confess "$s\->update cannot be called without an object" unless ref($s);
return 1 unless eval { keys(%{ $s->{__Changed} }) };
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Class/DBI/MockDBD.pm view on Meta::CPAN
}
return 1;
}
sub update {
my $self = shift;
my $class = ref($self)
or return $self->_croak("Class::DBI::MockDBD -- Can't call update as a class method");
$self->call_trigger('before_update');
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Class/DBI/Sweet.pm view on Meta::CPAN
}
return $self->SUPER::insert(@_);
}
sub update {
my $self = shift;
if ( $self->cache ) {
$self->cache->remove( $self->cache_key );
$self->cache->set( $self->_staleness_cache_key, time() );
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Class/DBI.pm view on Meta::CPAN
sub _column_placeholder {
my ($self, $column) = @_;
return $self->find_column($column)->placeholder;
}
sub update {
my $self = shift;
my $class = ref($self)
or return $self->_croak("Can't call update as a class method");
$self->call_trigger('before_update');
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Class/ExtraAttributes.pm view on Meta::CPAN
my $object = MyObject->new;
$object->foo($value);
my $value = $object->foo;
sub update { # in case you want persistence for extra attributes
my $object= shift;
$object->SUPER::update(@_);
my @extra= Class::ExtraAttributes->attributes;
# perform update for extra attributes
view all matches for this distribution
view release on metacpan or search on metacpan
my ($self) = @_ ;
return sort keys %{$self->{catalog_list}} ;
}
#internal
sub update_catalog_list
{
my $self = shift ;
# reset and update catalog lists (which is somewhat different from rebuild)
delete $self->{catalog} ;
view all matches for this distribution