Calculettes pour l'hydraulique
log.class.php
Aller à la documentation de ce fichier.
1
<?php
2
/**
3
* \file log.section.php
4
*
5
* Copyright 2011 dorch <dorch@dorch-xps>
6
*
7
* This program is free software; you can redistribute it and/or modify
8
* it under the terms of the GNU General Public License as published by
9
* the Free Software Foundation; either version 2 of the License, or
10
* (at your option) any later version.
11
*
12
* This program is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
* GNU General Public License for more details.
16
*
17
* You should have received a copy of the GNU General Public License
18
* along with this program; if not, write to the Free Software
19
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
20
* MA 02110-1301, USA.
21
*/
22
23
24
class
cLog
{
25
public
$txt
;
26
27
function
__construct
() {
28
$this->txt =
''
;
29
}
30
31
public
function
Add
($sTxt,$bErr=
false
) {
32
spip_log($sTxt,
'hydraulic'
,_LOG_INFO);
33
$this->txt .=
'<li'
;
34
if
($bErr) {$this->txt .=
' class="hyd_erreur"'
;}
35
$this->txt .=
'>'
.$sTxt.
'</li>'
;
36
}
37
38
public
function
Result
() {
39
if
($this->txt!=
''
) {
40
return
'<div class="hyd_log">
41
<div class="titre">'
._T(
'hydraulic:log_titre'
).
'</div>
42
<ul>'
.$this->txt.
'
43
</ul>
44
</div>'
;
45
}
else
{
46
return
''
;
47
}
48
}
49
}
50
?>
cLog\Add
Add($sTxt, $bErr=false)
Definition:
log.class.php:31
cLog\$txt
$txt
Definition:
log.class.php:25
cLog
Definition:
log.class.php:24
cLog\Result
Result()
Definition:
log.class.php:38
cLog\__construct
__construct()
Definition:
log.class.php:27
hyd_inc
log.class.php
Généré par
1.8.13