view release on metacpan or search on metacpan
lib/Catalyst/Plugin/Session/State/Cookie.pm view on Meta::CPAN
$c->update_session_cookie( $c->make_session_cookie( $sid ) );
return $c->maybe::next::method($sid);
}
sub update_session_cookie {
my ( $c, $updated ) = @_;
unless ( $c->cookie_is_rejecting( $updated ) ) {
my $cookie_name = $c->_session_plugin_config->{cookie_name};
$c->response->cookies->{$cookie_name} = $updated;
view all matches for this distribution
view release on metacpan or search on metacpan
t/lib/SessionExpiry/Controller/Root.pm view on Meta::CPAN
my ($self, $c) = @_;
$c->session;
$c->res->output($c->session_expires);
}
sub update_session : Global {
my ($self, $c) = @_;
$c->session->{foo} ++;
$c->res->output($c->session->{foo});
}
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Catalyst/Plugin/Starch/Cookie.pm view on Meta::CPAN
This is called automatically by the C<finalize_headers> step in Catalyst. This method
is provided if you want to override the behavior.
=cut
sub update_session_cookie {
my ($c) = @_;
return if !$c->_has_sessionid();
my $cookie_name = $c->starch->cookie_name();
$c->res->cookies->{ $cookie_name } = $c->starch_state->cookie_args();
return;
view all matches for this distribution
view release on metacpan or search on metacpan
lib/CatalystX/CMS/File.pm view on Meta::CPAN
B<NOTE:> This is not the same as the SVN::Class->update method!
If you want that method, use the up() alias instead.
=cut
sub update {
my $self = shift;
if ( !-s $self ) {
croak "cannot update an empty file";
}
$self->write(@_);
view all matches for this distribution
view release on metacpan or search on metacpan
lib/CatalystX/CRUD/Object/RDBO.pm view on Meta::CPAN
Calls delegate->save().
=cut
sub update {
shift->delegate->save(@_);
}
=head2 delete
view all matches for this distribution
view release on metacpan or search on metacpan
lib/CatalystX/CRUD/ModelAdapter/DBIC.pm view on Meta::CPAN
Calls update() on I<dbic_object>.
=cut
sub update {
my ( $self, $c, $object ) = @_;
$object->update;
}
=head2 delete( I<context>, I<dbic_object> )
view all matches for this distribution
view release on metacpan or search on metacpan
lib/CatalystX/CRUD/Controller.pm view on Meta::CPAN
Alias for save(), just for consistency with the U in CRUD.
=cut
sub update : PathPart Chained('fetch') Args(0) {
my ( $self, $c ) = @_;
$self->save($c);
}
=head2 rm
view all matches for this distribution
view release on metacpan or search on metacpan
lib/CatalystX/ListFramework.pm view on Meta::CPAN
$c->stash->{kind} = $kind;
$c->stash->{id} = $id; # the update form adds this to the URL
$c->stash->{template} = 'detail.tt';
}
sub update :Local {
my ($self, $c, $kind, $id) = @_;
my $lf = CatalystX::ListFramework->new($kind, $c);
$lf->update_from_query({'me.id' => $id});
$c->res->redirect("/listandsearch/$kind");
}
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/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);
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/Catmandu/Path/simple.pm view on Meta::CPAN
) . "return ${data_var};";
$self->_eval_sub($body, args => $args, captures => $captures);
}
sub updater {
my ($self, %opts) = @_;
my $path = $self->split_path;
my $data_var = $self->_generate_var;
my $captures = {};
my $args = [$data_var];
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/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.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