noalyss Version-9
periode_ledger.class.php
Go to the documentation of this file.
1<?php
2
3/*
4 * This file is part of NOALYSS.
5 *
6 * PhpCompta is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * NOALYSS is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with PhpCompta; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 */
20// Copyright (2016) Author Dany De Bontridder <dany@alchimerys.be>
21
22/**
23 * @file
24 * @brief Manage the periode of a specific ledger
25 */
26/**
27 * @brief Manage the periode of a specif ledger, wrap the SQL Class Jrn_Periode_SQL
28 * @see Periode
29 * @see Periode_Ledger_Table
30 *
31 */
33{
35 function __construct(Jrn_periode_SQL $p_jrn_periode_sql)
36 {
37 $this->m_jrn_periode_sql=$p_jrn_periode_sql;
38 }
39 public function get_jrn_periode_sql()
40 {
42 }
43
45 {
46 $this->m_jrn_periode_sql=$m_jrn_periode_sql;
47 }
48 /**
49 * Close the month / periode for the ledger ,
50 * Call Periode->close()
51 * @see Periode::close
52 */
53 function close()
54 {
56 $jrn_periode_sql=$this->m_jrn_periode_sql;
57 $periode=new Periode($cn,$jrn_periode_sql->getp("p_id"));
58 $periode->set_ledger($this->m_jrn_periode_sql->getp("jrn_def_id"));
59 $periode->close();
60 }
61 /**
62 * Reopen the month / periode for the ledger ,
63 * Call Periode->reopen()
64 * @see Periode::reopen
65 */
66 function reopen()
67 {
69 $periode=new Periode($cn,$this->m_jrn_periode_sql->getp("p_id"));
70 $periode->jrn_def_id=$this->m_jrn_periode_sql->getp("jrn_def_id");
71 $periode->reopen();
72 }
73}
74
static connect()
abstract of the table public.jrn_periode
Manage the periode of a specif ledger, wrap the SQL Class Jrn_Periode_SQL.
set_jrn_periode_sql($m_jrn_periode_sql)
close()
Close the month / periode for the ledger , Call Periode->close()
reopen()
Reopen the month / periode for the ledger , Call Periode->reopen()
__construct(Jrn_periode_SQL $p_jrn_periode_sql)
For the periode tables parm_periode and jrn_periode.