# Copyright (c) 2003 bivio Software, Inc. All Rights Reserved. # # Visit http://www.bivio.biz for more info. # # This library is free software; you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation; either version 2.1 of the # License, or (at your option) any later version. # # This library is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # Lesser General Public License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with this library; If not, you may get a copy from: # http://www.opensource.org/licenses/lgpl-license.html # # $Id: AdmBulletinConfirmationForm.pm,v 2.1 2006/10/16 21:08:04 moeller Exp $ package Bivio::Biz::Model::AdmBulletinConfirmationForm; use strict; $Bivio::Biz::Model::AdmBulletinConfirmationForm::VERSION = sprintf('%d.%02d', q$Revision: 2.1 $ =~ /\d+/g); $_ = $Bivio::Biz::Model::AdmBulletinConfirmationForm::VERSION; =head1 NAME Bivio::Biz::Model::AdmBulletinConfirmationForm - confirm bulletin =head1 RELEASE SCOPE bOP =head1 SYNOPSIS use Bivio::Biz::Model::AdmBulletinConfirmationForm; =cut =head1 EXTENDS L =cut use Bivio::Biz::FormModel; @Bivio::Biz::Model::AdmBulletinConfirmationForm::ISA = ('Bivio::Biz::FormModel'); =head1 DESCRIPTION C =cut #=IMPORTS #=VARIABLES =head1 METHODS =cut =for html =head2 execute_ok() Saves the 'confirmed' state into the order context. =cut sub execute_ok { my($self) = @_; $self->put_context_fields(confirmed_bulletin => 1) if $self->unsafe_get('ok_button'); $self->put_context_fields(test_mode => $self->unsafe_get('test_button') ? 1 : 0); return; } =for html =head2 internal_initialize() : hash_ref; B =cut sub internal_initialize { my($self) = @_; my($info) = { require_context => 1, version => 1, visible => [ { name => 'test_button', type => 'OKButton', constraint => 'NONE', }, { name => 'edit_button', type => 'OKButton', constraint => 'NONE', }, ], }; return $self->merge_initialize_info( $self->SUPER::internal_initialize, $info); } #=PRIVATE SUBROUTINES =head1 COPYRIGHT Copyright (c) 2003 bivio Software, Inc. All Rights Reserved. Visit http://www.bivio.biz for more info. This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; If not, you may get a copy from: http://www.opensource.org/licenses/lgpl-license.html =head1 VERSION $Id: AdmBulletinConfirmationForm.pm,v 2.1 2006/10/16 21:08:04 moeller Exp $ =cut 1;