Commit 8d2072744695a673caa99b95e712adf7c5010f4b

Authored by Conrad Vermeulen
1 parent 6de8556b

KTS-2115

"create unit tests for ktapi"
Fixed.

Reviewed By: Kevin Fourie

git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@6836 c91229c3-7414-0410-bfa2-8a42b809f60b
ktapi/KTAPIConstants.inc.php
1 <? 1 <?
2 -  
3 /** 2 /**
4 - * 3 + * $Id$
  4 + *
5 * The contents of this file are subject to the KnowledgeTree Public 5 * The contents of this file are subject to the KnowledgeTree Public
6 * License Version 1.1.2 ("License"); You may not use this file except in 6 * License Version 1.1.2 ("License"); You may not use this file except in
7 * compliance with the License. You may obtain a copy of the License at 7 * compliance with the License. You may obtain a copy of the License at
@@ -29,10 +29,6 @@ @@ -29,10 +29,6 @@
29 * 29 *
30 */ 30 */
31 31
32 -require_once('../config/dmsDefaults.php');  
33 -require_once(KT_LIB_DIR . '/filelike/fsfilelike.inc.php');  
34 -require_once(KT_LIB_DIR . '/foldermanagement/folderutil.inc.php');  
35 -  
36 // Generic error messages used in the API. There may be some others specific to functionality 32 // Generic error messages used in the API. There may be some others specific to functionality
37 // directly in the code. 33 // directly in the code.
38 // TODO: Check that they are all relevant. 34 // TODO: Check that they are all relevant.
ktapi/KTAPIDocument.inc.php
1 <? 1 <?
  2 +/**
  3 + * $Id$
  4 + *
  5 + * The contents of this file are subject to the KnowledgeTree Public
  6 + * License Version 1.1.2 ("License"); You may not use this file except in
  7 + * compliance with the License. You may obtain a copy of the License at
  8 + * http://www.knowledgetree.com/KPL
  9 + *
  10 + * Software distributed under the License is distributed on an "AS IS"
  11 + * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied.
  12 + * See the License for the specific language governing rights and
  13 + * limitations under the License.
  14 + *
  15 + * All copies of the Covered Code must include on each user interface screen:
  16 + * (i) the "Powered by KnowledgeTree" logo and
  17 + * (ii) the KnowledgeTree copyright notice
  18 + * in the same form as they appear in the distribution. See the License for
  19 + * requirements.
  20 + *
  21 + * The Original Code is: KnowledgeTree Open Source
  22 + *
  23 + * The Initial Developer of the Original Code is The Jam Warehouse Software
  24 + * (Pty) Ltd, trading as KnowledgeTree.
  25 + * Portions created by The Jam Warehouse Software (Pty) Ltd are Copyright
  26 + * (C) 2007 The Jam Warehouse Software (Pty) Ltd;
  27 + * All Rights Reserved.
  28 + * Contributor( s): ______________________________________
  29 + *
  30 + */
  31 +
2 class KTAPI_Document extends KTAPI_FolderItem 32 class KTAPI_Document extends KTAPI_FolderItem
3 { 33 {
4 /** 34 /**
ktapi/KTAPIFolder.inc.php
1 <? 1 <?
2 - 2 +/**
  3 + * $Id$
  4 + *
  5 + * The contents of this file are subject to the KnowledgeTree Public
  6 + * License Version 1.1.2 ("License"); You may not use this file except in
  7 + * compliance with the License. You may obtain a copy of the License at
  8 + * http://www.knowledgetree.com/KPL
  9 + *
  10 + * Software distributed under the License is distributed on an "AS IS"
  11 + * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied.
  12 + * See the License for the specific language governing rights and
  13 + * limitations under the License.
  14 + *
  15 + * All copies of the Covered Code must include on each user interface screen:
  16 + * (i) the "Powered by KnowledgeTree" logo and
  17 + * (ii) the KnowledgeTree copyright notice
  18 + * in the same form as they appear in the distribution. See the License for
  19 + * requirements.
  20 + *
  21 + * The Original Code is: KnowledgeTree Open Source
  22 + *
  23 + * The Initial Developer of the Original Code is The Jam Warehouse Software
  24 + * (Pty) Ltd, trading as KnowledgeTree.
  25 + * Portions created by The Jam Warehouse Software (Pty) Ltd are Copyright
  26 + * (C) 2007 The Jam Warehouse Software (Pty) Ltd;
  27 + * All Rights Reserved.
  28 + * Contributor( s): ______________________________________
  29 + *
  30 + */
3 31
4 class KTAPI_Folder extends KTAPI_FolderItem 32 class KTAPI_Folder extends KTAPI_FolderItem
5 { 33 {
ktapi/KTAPISession.inc.php
1 <? 1 <?
  2 +/**
  3 + * $Id$
  4 + *
  5 + * The contents of this file are subject to the KnowledgeTree Public
  6 + * License Version 1.1.2 ("License"); You may not use this file except in
  7 + * compliance with the License. You may obtain a copy of the License at
  8 + * http://www.knowledgetree.com/KPL
  9 + *
  10 + * Software distributed under the License is distributed on an "AS IS"
  11 + * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied.
  12 + * See the License for the specific language governing rights and
  13 + * limitations under the License.
  14 + *
  15 + * All copies of the Covered Code must include on each user interface screen:
  16 + * (i) the "Powered by KnowledgeTree" logo and
  17 + * (ii) the KnowledgeTree copyright notice
  18 + * in the same form as they appear in the distribution. See the License for
  19 + * requirements.
  20 + *
  21 + * The Original Code is: KnowledgeTree Open Source
  22 + *
  23 + * The Initial Developer of the Original Code is The Jam Warehouse Software
  24 + * (Pty) Ltd, trading as KnowledgeTree.
  25 + * Portions created by The Jam Warehouse Software (Pty) Ltd are Copyright
  26 + * (C) 2007 The Jam Warehouse Software (Pty) Ltd;
  27 + * All Rights Reserved.
  28 + * Contributor( s): ______________________________________
  29 + *
  30 + */
2 31
3 class KTAPI_Session 32 class KTAPI_Session
4 { 33 {
ktapi/ktapi.inc.php
1 <? 1 <?
2 /** 2 /**
3 - * 3 + * $Id$
  4 + *
4 * Implements a cleaner wrapper API for KnowledgeTree. 5 * Implements a cleaner wrapper API for KnowledgeTree.
5 * 6 *
6 * The contents of this file are subject to the KnowledgeTree Public 7 * The contents of this file are subject to the KnowledgeTree Public