Source for file stylesheetclass.php

Documentation is available at stylesheetclass.php


1 <?php
2 /**
3 * @author Jan H. Andersen <jha@ipwsystems.dk>
4 * @author Martin R. Larsen <mrl@ipwsystems.dk>
5 * @copyright {@link http://www.ipwsystems.dk/ IPW Systems a.s}
6 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
7 * @package METAjour
8 * @subpackage core
9 * $Id: stylesheetclass.php,v 1.4 2005/01/03 05:18:37 jan Exp $
10 */
11
12 require_once('basicclass.php');
13
14 class stylesheet extends basic {
15
16 var $ERR_STYLENAMEEXIST = 1;
17 var $ERR_STYLENAMEEMPTY = 2;
18 var $ERR_STYLENOTSELECTED = 3;
19 var $ERR_STYLEUPLOADATTACK = 4;
20 var $ERR_STYLENOSTANDARD = 5;
21
22 function stylesheet() {
23 $this->basic();
24 $this->setobjecttable('stylesheets');
25 $this->addcolumn('name',0,UI_STRING);
26 $this->addcolumn('content',0,UI_TEXT);
27 $this->addview('default');
28 }
29
30 function errortext() {
31 switch($this->errorcode) {
32 case $this->ERR_STYLENAMEEXIST :
33 return "Der findes allerede en typografi med det angivne navn";
34 case $this->ERR_STYLENAMEEMPTY :
35 return "Der skal angives et navn for typografien";
36 case $this->ERR_STYLENOTSELECTED :
37 return "Der skal vælges en typografi";
38 case $this->ERR_STYLEUPLOADATTACK :
39 return "Ugyldig destination";
40 case $this->ERR_STYLENOSTANDARD :
41 return "Husk at angive en ny typografi som standard";
42 }
43 }
44
45 }

Documentation generated on Thu, 9 Jun 2005 06:53:48 +0200 by phpDocumentor 1.2.3