46 lines
1.3 KiB
Perl
46 lines
1.3 KiB
Perl
# Selima Website Content Management System
|
|
# LastLv.pm: The last-level accounting subject list.
|
|
|
|
# Copyright (c) 2007-2018 imacat.
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
|
|
# Author: imacat <imacat@mail.imacat.idv.tw>
|
|
# First written: 2007-09-22
|
|
|
|
package Selima::List::Accounting::Subjects::LastLv;
|
|
use 5.008;
|
|
use strict;
|
|
use warnings;
|
|
use base qw(Selima::List::Accounting::Subjects);
|
|
|
|
use Selima::DataVars qw(:l10n :lninfo);
|
|
use Selima::GetLang;
|
|
|
|
# new: Initialize the handler
|
|
sub new : method {
|
|
local ($_, %_);
|
|
my ($self, $class);
|
|
($class, @_) = @_;
|
|
$_[1] = "acctsubj" if !defined $_[1];
|
|
$self = $class->SUPER::new(@_);
|
|
if (@ALL_LINGUAS == 1) {
|
|
$self->{"view"} = "acctsubj_lastlv_list";
|
|
} else {
|
|
$self->{"view"} = "acctsubj_lastlv_list_" . getlang LN_DATABASE;
|
|
}
|
|
return $self;
|
|
}
|
|
|
|
return 1;
|