Source for file structureelementclass.php

Documentation is available at structureelementclass.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: structureelementclass.php,v 1.4 2005/01/27 10:11:42 jan Exp $
10 */
11
12 require_once('basicclass.php');
13
14 class structureelement extends basic {
15
16 function structureelement() {
17 $this->basic();
18 $this->setsupertype('structure');
19 $this->addcolumn('name',0,UI_STRING);
20 $this->addcolumn('pageid',0,UI_RELATION,'document');
21 $this->addcolumn('url',0,UI_STRING);
22 $this->addcolumn('binfile1',0,UI_BINFILE);
23 $this->addcolumn('binfile2',0,UI_HIDDEN);
24 $this->addcolumn('binfile3',0,UI_HIDDEN);
25 $this->addcolumn('showtype',0,UI_COMBO);
26 $this->addcolumn('target',0,UI_STRING);
27 $this->addcolumn('image1',0,UI_HIDDEN); # compatibility
28 $this->addcolumn('image2',0,UI_HIDDEN); # compatibility
29 $this->addcolumn('image3',0,UI_HIDDEN); # compatibility
30 $this->addcolumn('templateid',0,UI_HIDDEN,'template');
31 $this->addcolumn('structureid',0,UI_HIDDEN,'structure');
32
33 $this->removeview('category');
34 }
35
36 function initLayout() {
37 parent::initLayout();
38 $this->addcolumnstyle('binfile1','width: 357px;');
39 $this->addcolumnstyle('showtype','width: 357px;');
40 }
41
42 }

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