view release on metacpan or search on metacpan
lib/Keystone/Resolver/DB/Object.pm view on Meta::CPAN
return ($linkclass, $linkto, $linkid, $linkfield);
}
# Returns the number of fields modified, dies on error
sub update {
my $this = shift();
my(%maybe_data) = @_;
my %data;
foreach my $key (keys %maybe_data) {
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Khonsu/Syntax.pm view on Meta::CPAN
}
return $file;
}
sub update_highlighting {
my ($self, %highlighting) = @_;
my $highlight = $self->highlight;
$highlight = {%{$highlight}, %highlighting};
$self->highlight($highlight);
return $self;
view all matches for this distribution
view release on metacpan or search on metacpan
lib/DBIx/Class/KiokuDB.pm view on Meta::CPAN
$g->commit;
return $ret;
}
sub update {
my ( $self, @args ) = @_;
my $dir = $self->result_source->schema->kiokudb_handle;
my $lo = $dir->live_objects;
view all matches for this distribution
view release on metacpan or search on metacpan
lib/KiokuDB.pm view on Meta::CPAN
}
sub insert { shift->_insert( 1, @_ ) }
sub insert_nonroot { shift->_insert( 0, @_ ) }
sub update {
my ( $self, @args ) = @_;
my @objects = $self->_register(@args);
my $l = $self->live_objects;
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Koha/Contrib/Mirabel.pm view on Meta::CPAN
return unless $record;
return MARC::Moose::Record::new_from($record, 'Legacy');
}
sub update {
my ($self, $biblionumber, $services) = @_;
say '_' x 40, " #$biblionumber" if $self->verbose;
my $record = $self->get_biblio($biblionumber);
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Konstrukt/Plugin/blog/DBI.pm view on Meta::CPAN
=item * $update - Update the publication date to "now"
=back
=cut
sub update_entry {
my ($self, $id, $title, $description, $content, $private, $update) = @_;
my $dbh = $Konstrukt::DBI->get_connection(@{$self->{db_settings}}) or return undef;
#quoting
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Kubernetes/REST.pm view on Meta::CPAN
$self->_check_response($response, "create " . ref($object));
return $self->_inflate_object($class, $response);
}
sub update {
my ($self, $object) = @_;
my $class = ref($object);
my $metadata = $object->metadata or croak "object must have metadata";
lib/Kubernetes/REST.pm view on Meta::CPAN
$self->_check_response($response, "patch_status $class");
return $self->_inflate_object($class, $response);
}
sub update_status {
my ($self, $object) = @_;
my $class = ref($object);
my $metadata = $object->metadata or croak "object must have metadata";
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Kwiki/Atom.pm view on Meta::CPAN
$entry->add_link($link_edit);
return $entry;
}
sub update_page {
my $page = shift;
my $method = $self->server->request_method;
my $entry = eval { $self->server->atom_body };
if (!$entry) {
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Kwiki/Attachments.pm view on Meta::CPAN
template => 'attachments_widget.html',
show_for => [ 'display', 'edit' ],
);
}
sub update_metadata {
# Updates the modification time of the page.
my $page = $self->pages->current;
$page->metadata->update->store;
}
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Kwiki/Backlinks.pm view on Meta::CPAN
$self = $self->hub->backlinks;
$self->clean_destination_links($page); # redundant but tidy
$self->clean_source_links($page);
}
sub update_hook {
my $page = $self;
my $hook = pop;
$self = $self->hub->backlinks;
# save current as we need to manipulate within update and below
my $current = $self->hub->pages->current;
$self->update($page);
$self->hub->pages->current($current);
}
sub update {
my $page = shift;
my $units;
my $formatter = $self->hub->formatter;
unless ($self->hooked) {
$self->hooked(1);
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Kwiki/GuestBook.pm view on Meta::CPAN
} sort {lc($a) cmp lc($b)} keys %{$user_db};
$user_db->close;
$self->render_screen(pages => \@pages);
}
sub update {
my $hook = pop;
my ($returned) = $hook->returned;
return $returned unless $returned eq '1';
$self = $self->hub->guest_book;
my $preference = shift;
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Kwiki/HatenaAuth.pm view on Meta::CPAN
sub sort_order_hook {
my $hook = pop;
return $hook->returned, 'edit_by_icon';
}
sub update_hook {
return unless ref($self->hub->users->current) eq 'Kwiki::HatenaAuth';
my $meta = $self->hub->pages->current->metadata;
$meta->edit_by_icon($self->hub->users->current->thumbnail_url);
}
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Kwiki/Notify/IRC.pm view on Meta::CPAN
sub register {
my $registry = shift;
$registry->add( hook => 'page:store', post => 'update' );
}
sub update {
no warnings 'once'; # i use package variables below
require POE::Component::IKC::ClientLite;
my $remote = POE::Component::IKC::ClientLite::create_ikc_client(
port => $self->hub->config->notify_irc_daemon_port,
ip => $self->hub->config->notify_irc_daemon_host,
lib/Kwiki/Notify/IRC.pm view on Meta::CPAN
err "unhandled $event";
err " - $_" foreach @$args;
return 0;
}
sub update
{
my ( $kernel, $heap, $page ) = @_[ KERNEL, HEAP, ARG0 ];
eval {
my $msg = sprintf( 'action update: %s by %s',
$page->{title}, $page->{metadata}{edit_by} );
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Kwiki/Purple.pm view on Meta::CPAN
qq(<${element}${level}${nid_value}>);
};
}
}
sub update_nids {
my $hook = pop;
my $page = $self;
$self = $self->hub->purple;
$self->update($page);
}
sub update {
my $page = shift;
my $formatter = $self->hub->formatter;
my %hooks;
unless ($self->hooked) {
$self->hooked(1);
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Kwiki/Search/Plucene.pm view on Meta::CPAN
sub index_path {
$self->plugin_directory . '/plucene_index';
}
sub update_index {
$self->hub->load_class('search')->update_page($self);
}
sub update_page {
my $page = shift;
$self->plucy->delete_document($page->id,$page->content)
if(-d $self->index_path);
$self->plucy->index_document($page->id,$page->content);
}
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Kwiki/Search/Spotlight.pm view on Meta::CPAN
super;
my $reg = shift;
$reg->add(hook => 'page:store', post => 'update_index');
}
sub update_index {
my $search = $self->hub->search;
my $page_name = $self->id;
my $dir = $search->plugin_directory;
io($dir)->mkpath;
system "/bin/cp database/${page_name} ${dir}/${page_name}.txt";
view all matches for this distribution
view release on metacpan or search on metacpan
t/lib/Kwiki/SimpleHook.pm view on Meta::CPAN
my $registry = shift;
$registry->add(hook => 'page:store', pre => 'update_content');
super;
}
sub update_content {
my $page = $self;
my $hook = pop;
$page->content($page->content . "\n\nSimple Hook Hooks Again!\n");
}
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Kwiki/TypeKey.pm view on Meta::CPAN
sub sort_order_hook {
my $hook = pop;
return $hook->returned, 'edit_by_icon';
}
sub update_hook {
my $meta = $self->hub->pages->current->metadata;
$meta->edit_by_icon($self->hub->users->current->icon);
}
sub return_typekey {
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Kwiki/Command.pm view on Meta::CPAN
sub handle_remove {
$self->update_plugins('-', @_);
}
sub update_plugins {
die "This operation must be performed inside a Kwiki installation directory"
unless -f $self->hub->config->plugins_file;
my $mode = shift;
return $self->usage unless @_;
my $plugins_file = $self->hub->config->plugins_file;
view all matches for this distribution
view release on metacpan or search on metacpan
#-------------------------------------------------------------------------
# IN: 1 instantiated LCC object
sub update { shift->_backend_method( 'update',@_ ) } #update
#-------------------------------------------------------------------------
# IN: 1 instantiated object
# 2 reference to hash with provider credentials (id and password)
# 3 handle to write XML to or reference to list of handles to write to
# (default: just return the resulting XML)
# OUT: 1 resulting XML
sub update_notification_xml {
# Obtain the object
# Obtain the credentials
# Obtain the handles to write to
# Initialize the XML
view all matches for this distribution
view release on metacpan or search on metacpan
lib/LCFG/Build/PkgSpec.pm view on Meta::CPAN
$self->version($dev_version);
return $self->version;
}
sub update_release {
my ($self) = @_;
my $release = $self->release;
if ( !defined $release ) {
lib/LCFG/Build/PkgSpec.pm view on Meta::CPAN
$self->release($release);
return;
}
sub update_date {
my ($self) = @_;
my $now = DateTime->now->strftime('%d/%m/%y %T');
$self->date($now);
return;
}
sub update_major {
my ($self) = @_;
return $self->_update_version('major');
}
sub update_minor {
my ($self) = @_;
return $self->_update_version('minor');
}
sub update_micro {
my ($self) = @_;
return $self->_update_version('micro');
}
sub _update_version {
view all matches for this distribution
view release on metacpan or search on metacpan
lib/LCFG/Build/VCS.pm view on Meta::CPAN
$tag =~ s/\-/_/g;
return $tag;
}
sub update_changelog {
my ( $self, $version, $options ) = @_;
$options //= {};
$options->{dryrun} = $self->dryrun;
$options->{id} = $self->id;
lib/LCFG/Build/VCS.pm view on Meta::CPAN
}
return;
}
sub update_lcfg_changelog {
my ( $logfile, $options ) = @_;
$options //= {};
$options->{date} ||= DateTime->now->ymd;
lib/LCFG/Build/VCS.pm view on Meta::CPAN
# These update_*_changelog subroutines are also used externally from
# places which do not have access to the VCS object so they are not
# class methods.
sub update_debian_changelog {
my ( $logfile, $options ) = @_;
$options //= {};
$options->{urgency} ||= 'low';
$options->{distribution} ||= 'unstable';
view all matches for this distribution
view release on metacpan or search on metacpan
bin/pmdistupdate view on Meta::CPAN
SEE ALSO
LEOCHARRE::Dev - parent package
}}
sub update_makefile {
my $dist = shift;
chdir $dist or die("Cannot chdir into $dist, $!");
`pmmakefile > Makefile.PL`;
print "+ makefile\n";
}
sub update_manifest {
my $dist = shift;
chdir $dist or die("Cannot chdir into $dist, $!");
`pmmanifest > MANIFEST`;
print "+ manifest\n";
}
sub update_cvs {
my $dist = shift;
chdir $dist or die("Cannot chdir into $dist, $!");
`cvs commit -m ''`;
print "+ cvs\n";
}
sub update_changes {
my $dist = shift;
chdir $dist or die("Cannot chdir into $dist, $!");
if( my @changes = grep { /^changes$/i } lsf($dist) ){
debug("changefile: @changes");
view all matches for this distribution
view release on metacpan or search on metacpan
lib/LIMS/Controller.pm view on Meta::CPAN
} else {
$self->update_session;
}
}
}
sub update_session {
my $self = shift;
$self->alter_session_id(1);
}
sub close_session {
my $self = shift;
view all matches for this distribution
view release on metacpan or search on metacpan
lib/LINE/Bot/Audience.pm view on Meta::CPAN
my $res = $self->request(get => 'audienceGroup/' . $opts->{audienceGroupId}, +{});
LINE::Bot::API::Response::AudienceData->new(%{ $res });
}
sub update_authority_level {
my ($self, $opts) = @_;
my $res = $self->request(put => 'audienceGroup/authorityLevel', +{
'authorityLevel' => $opts->{authorityLevel},
});
view all matches for this distribution
view release on metacpan or search on metacpan
lib/LPDS/Renderer.pm view on Meta::CPAN
# update axis ticks
$self->update_all_axis;
}
sub update_axis {
my $self = shift;
my $name = shift;
confess "no axis named $name" if !exists $self->axes->{$name};
my $axis = $self->axes->{$name};
lib/LPDS/Renderer.pm view on Meta::CPAN
}
$axis->try_modify_min_max(%extreme);
}
sub update_all_axis {
my $self = shift;
$self->update_axis($_) foreach keys %{ $self->axes };
}
sub request_model_render {
view all matches for this distribution
view release on metacpan or search on metacpan
Util/Util.pm view on Meta::CPAN
);
# autoload declarations
sub cache_is_valid;
sub update_cache;
sub upd_cache;
sub daemon2_cache;
sub share_open;
sub ex_open;
sub close_file;
Util/Util.pm view on Meta::CPAN
returns: true on success
false if failed
=cut
sub update_cache {
my ($lnf,$htm,$sht) = @_;
return undef unless exists $lnf->{html_cache_file};
@_ = ($lnf->{html_cache_file},'',$htm,$sht);
goto &upd_cache;
}
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Lab/Moose/Instrument/AttoCube_AMC.pm view on Meta::CPAN
return $response;
}
sub updateOffsets {
my ($self, $offset_axis0, $offset_axis1, $offset_axis2, %args) = validated_list(
offset_axis0 => {optional => 0,},
offset_axis1 => {optional => 0,},
offset_axis2 => {optional => 0,},
);
lib/Lab/Moose/Instrument/AttoCube_AMC.pm view on Meta::CPAN
return $response;
}
sub updateTimeFromInternet {
my $self = shift;
my $response = $self->request(method => 'com.attocube.system.updateTimeFromInternet');
$self->handle_error($response);
view all matches for this distribution
view release on metacpan or search on metacpan
lib/LabKey/Query.pm view on Meta::CPAN
-useragent => an instance of LWP::UserAgent (if not provided, a new instance will be created)
-timeout => timeout in seconds (used when creating a new LWP::UserAgent)
=cut
sub updateRows {
my %args = @_;
my @required = ('-queryName', '-schemaName', '-rows');
_checkRequiredParams(\%args, \@required);
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Langertha/Engine/AnthropicBase.pm view on Meta::CPAN
isa => 'Str',
predicate => 'has_inference_geo',
);
sub update_request {
my ( $self, $request ) = @_;
$request->header('x-api-key', $self->api_key);
$request->header('content-type', 'application/json');
$request->header('anthropic-version', $self->api_version);
}
view all matches for this distribution