1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
|
<?php
/**
* DLScripts
*
* LICENSE
*
* This source file is subject to the GNU GENERAL PUBLIC LICENSE that is bundled
* with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://www.gnu.org/copyleft/gpl.html
*
* @category DLScripts
* @package Sponsorennetzwerk V4
* @copyright Copyright (c) 2002-2008 DlScripts (http://www.dlscripts.net)
* @license http://www.gnu.org/copyleft/gpl.html GNU GENERAL PUBLIC LICENSE
*/
class Status
{
private $status_text;
private $status_style;
public function __construct Status()
{
$this->status_text = array(STATUS_UNPAID => 'unbezahlt',
STATUS_ACTIVE => 'aktiv',
STATUS_STOPPED => 'gestoppt',
STATUS_ADMIN_AC => 'Admin-Ac.',
STATUS_UNKNOWN => 'unbekannt');
$this->status_style = array(STATUS_UNPAID => 'unpaid',
STATUS_ACTIVE => 'active',
STATUS_STOPPED => 'stopped',
STATUS_ADMIN_AC => 'admin_ac',
STATUS_UNKNOWN => 'unknown');
}
function getStyle($status_id) { return $this->status_style[$status_id]; }
function getText($status_id) { return $this->status_text[$status_id]; }
function getStyleArray() { return $this->status_style; }
function getTextArray() { return $this->status_text; }
}
?> |