Commit 3176a92667455b7bd772165523e27fae0fa14bf1

Authored by conradverm
1 parent 4aff7398

WSA-93

"Add integration/oem no so that integrators may associate a custom document reference"
Implemented.

Committed By: Conrad Vermeulen
Reviewed By: Megan Watson

git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@7873 c91229c3-7414-0410-bfa2-8a42b809f60b
search2/search/fields/DocumentOemNoField.inc.php 0 → 100644
  1 +<?php
  2 +
  3 +/**
  4 + * $Id:$
  5 + *
  6 + * KnowledgeTree Open Source Edition
  7 + * Document Management Made Simple
  8 + * Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited
  9 + *
  10 + * This program is free software; you can redistribute it and/or modify it under
  11 + * the terms of the GNU General Public License version 3 as published by the
  12 + * Free Software Foundation.
  13 + *
  14 + * This program is distributed in the hope that it will be useful, but WITHOUT
  15 + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
  16 + * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
  17 + * details.
  18 + *
  19 + * You should have received a copy of the GNU General Public License
  20 + * along with this program. If not, see <http://www.gnu.org/licenses/>.
  21 + *
  22 + * You can contact The Jam Warehouse Software (Pty) Limited, Unit 1, Tramber Place,
  23 + * Blake Street, Observatory, 7925 South Africa. or email info@knowledgetree.com.
  24 + *
  25 + * The interactive user interfaces in modified source and object code versions
  26 + * of this program must display Appropriate Legal Notices, as required under
  27 + * Section 5 of the GNU General Public License version 3.
  28 + *
  29 + * In accordance with Section 7(b) of the GNU General Public License version 3,
  30 + * these Appropriate Legal Notices must retain the display of the "Powered by
  31 + * KnowledgeTree" logo and retain the original copyright notice. If the display of the
  32 + * logo is not reasonably feasible for technical reasons, the Appropriate Legal Notices
  33 + * must display the words "Powered by KnowledgeTree" and retain the original
  34 + * copyright notice.
  35 + * Contributor( s): ______________________________________
  36 + *
  37 + */
  38 +
  39 +class DocumentOemNoField extends DBFieldExpr
  40 +{
  41 + public function __construct()
  42 + {
  43 + parent::__construct('oem_no', 'documents', _kt('Integration Id'));
  44 + $this->setAlias('IntegrationId');
  45 + }
  46 +
  47 + public function getInputRequirements()
  48 + {
  49 + return array('value'=>array('type'=>FieldInputType::INT ));
  50 + }
  51 +
  52 + public function is_valid()
  53 + {
  54 + return DefaultOpCollection::validateParent($this, DefaultOpCollection::$is);
  55 + }
  56 +}
  57 +
  58 +?>
0 \ No newline at end of file 59 \ No newline at end of file