Commit 120add1d094a570640194f2c843d561ccc706c3e

Authored by nbm
1 parent 754d1772

Remove unused (and never used) code.


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@3977 c91229c3-7414-0410-bfa2-8a42b809f60b
lib/documentmanagement/MDCondition.inc deleted
1   -<?php
2   -
3   -require_once(KT_LIB_DIR . "/ktentity.inc");
4   -
5   -require_once(KT_LIB_DIR . "/documentmanagement/DocumentField.inc");
6   -require_once(KT_LIB_DIR . "/documentmanagement/MetaData.inc");
7   -
8   -class MDConditionNode extends KTEntity {
9   - /** boilerplate DB code. */
10   - /** primary key */
11   - var $iId = -1;
12   - var $iFieldId;
13   - var $sName;
14   - var $iParentNode;
15   -
16   - var $_aFieldToSelect = array(
17   - "iId" => "id",
18   - "iFieldId" => "document_field_id",
19   - "iLookupId" => "metadata_lookup_id",
20   - "sName" => "name", // this can be null - if it isn't we are looking at a rooted subtree
21   - );
22   -
23   - var $_bUsePearError = true;
24   -
25   - function getID() { return $this->iId; }
26   - function setID($iId) { $this->iId = $iId; }
27   - function getFieldId() { return $this->iFieldId; }
28   - function setFieldId($iFieldId) { $this->iFieldId = $iFieldId; }
29   - function getLookupId() { return $this->iLookupId; }
30   - function setLookupId($iLookupId) { $this->$iLookupId = $iLookupId; }
31   -
32   - function _table () {
33   - global $default;
34   - return $default->metadata_condition_table;
35   - }
36   -
37   - // Static Functions (dull)
38   - function &get($iId) { return KTEntityUtil::get("MDConditionNode", $iId); }
39   - function &createFromArray($aOptions) { return KTEntityUtil::createFromArray("MDConditionNode", $aOptions); }
40   - function &getList($sWhereClause = null) { global $default; return KTEntityUtil::getList2("MDConditionNode", $sWhereClause); }
41   -
42   - /** end boilerplate. anything interesting goes below here. */
43   -
44   -}
45   -
46   -class MDConditionChain extends KTEntity {
47   - /** boilerplate DB code. */
48   - /** primary key */
49   - var $iId = -1;
50   - var $iParentCondition;
51   - var $iChildCondition;
52   -
53   - var $_aFieldToSelect = array(
54   - "iId" => "id",
55   - "iChildCondition" => "child_condition",
56   - "iParentCondition" => "parent_condition",
57   - );
58   -
59   - var $_bUsePearError = true;
60   -
61   - function getID() { return $this->iId; }
62   - function setID($iId) { $this->iId = $iId; }
63   - function getParentConditionId() { return $this->iParentCondition; }
64   - function setParentConditionId($iParentCondition) { $this->$iParentCondition = $iParentCondition; }
65   - function getChildConditionId() { return $this->iChildCondition; }
66   - function setChildConditionId($iChildCondition) { $this->$iChildCondition = $iParentCondition; }
67   -
68   - function _table () {
69   - global $default;
70   - return $default->md_condition_chain_table;
71   - }
72   -
73   - // Static Functions (dull)
74   - function &get($iId) { return KTEntityUtil::get("MDConditionChain", $iId); }
75   - function &createFromArray($aOptions) { return KTEntityUtil::createFromArray("MDConditionChain", $aOptions); }
76   - function &getList($sWhereClause = null) { global $default; return KTEntityUtil::getList2("MDConditionChain", $sWhereClause); }
77   -
78   - /** end boilerplate. anything interesting goes below here. */
79   -
80   -}
lib/visualpatterns/PatternImage.inc deleted
1   -<?php
2   -/**
3   - * $Id$
4   - *
5   - * Given an image URL, this class will render it inside a single cell table.
6   - *
7   - * Copyright (c) 2003 Jam Warehouse http://www.jamwarehouse.com
8   - *
9   - * This program is free software; you can redistribute it and/or modify
10   - * it under the terms of the GNU General Public License as published by
11   - * the Free Software Foundation; either version 2 of the License, or
12   - * (at your option) any later version.
13   - *
14   - * This program is distributed in the hope that it will be useful,
15   - * but WITHOUT ANY WARRANTY; without even the implied warranty of
16   - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17   - * GNU General Public License for more details.
18   - *
19   - * You should have received a copy of the GNU General Public License
20   - * along with this program; if not, write to the Free Software
21   - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22   - *
23   - * @version $Revision$
24   - * @author Rob Cherry, Jam Warehouse (Pty) Ltd, South Africa
25   - * @package lib.visualpatterns
26   - */
27   -class PatternImage {
28   -
29   - /** Image URL */
30   - var $sImgURL;
31   - /** Image width */
32   - var $iImgWidth;
33   - /** Image height */
34   - var $iImgHeigth;
35   -
36   - /**
37   - * Class constructor
38   - */
39   - function PatternImage($sNewImgURL) {
40   - $this->sImgURL = $sNewImgURL;
41   - }
42   -
43   - /**
44   - * Set the width and height of the image
45   -
46   - * @param $iNewWidth Image width
47   - * @param $iNewHeigth Image heigth
48   - */
49   - function setImgSize($iNewWidth, $iNewHeight) {
50   - $this->iImgWidth = $iNewWidth;
51   - $this->iImgHeight = $iNewHeight;
52   - }
53   -
54   - /**
55   - * Renders the image
56   - *
57   - * @return String to be used in HTML
58   - */
59   - function & render() {
60   - if (isset($this->sImgWidth) && isset($this->sImgWidth)) {
61   - return "<img src=\"".$this->sImgURL."\" width=\"". $this->iImgWidth."\" height=\"".$this->iImgHeight."\" align=\"center\" border=\"0\" />";
62   - }
63   - return "<img src=\"".$this->sImgURL."\" align=\"center\" border=\"0\" />";
64   - }
65   -
66   -
67   -}
68   -
69   -?>
70 0 \ No newline at end of file