Commit fb8e00770bbb1905217e3c71249f312694735a0a
1 parent
1d97ab25
Merged in from DEV trunk...
KTS-2015 "Change license of ktwsapi to BSD licence" Added back comments. Committed By: Kevin Reviewed By: Conrad git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/STABLE/trunk@6691 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
8 changed files
with
224 additions
and
208 deletions
ktwsapi/php/examples/ktws_eg_add_document.php
| 1 | <? | 1 | <? |
| 2 | - | ||
| 3 | /** | 2 | /** |
| 3 | + * Copyright (c) 2007, The Jam Warehouse Software (Pty) Ltd. | ||
| 4 | * | 4 | * |
| 5 | - * This is a sample of how to add a document to the repository. | 5 | + * All rights reserved. |
| 6 | * | 6 | * |
| 7 | - * The contents of this file are subject to the KnowledgeTree Public | ||
| 8 | - * License Version 1.1.2 ("License"); You may not use this file except in | ||
| 9 | - * compliance with the License. You may obtain a copy of the License at | ||
| 10 | - * http://www.knowledgetree.com/KPL | ||
| 11 | - * | ||
| 12 | - * Software distributed under the License is distributed on an "AS IS" | ||
| 13 | - * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. | ||
| 14 | - * See the License for the specific language governing rights and | ||
| 15 | - * limitations under the License. | 7 | + * Redistribution and use in source and binary forms, with or without |
| 8 | + * modification, are permitted provided that the following conditions are met: | ||
| 16 | * | 9 | * |
| 17 | - * All copies of the Covered Code must include on each user interface screen: | ||
| 18 | - * (i) the "Powered by KnowledgeTree" logo and | ||
| 19 | - * (ii) the KnowledgeTree copyright notice | ||
| 20 | - * in the same form as they appear in the distribution. See the License for | ||
| 21 | - * requirements. | ||
| 22 | - * | ||
| 23 | - * The Original Code is: KnowledgeTree Open Source | ||
| 24 | - * | ||
| 25 | - * The Initial Developer of the Original Code is The Jam Warehouse Software | ||
| 26 | - * (Pty) Ltd, trading as KnowledgeTree. | ||
| 27 | - * Portions created by The Jam Warehouse Software (Pty) Ltd are Copyright | ||
| 28 | - * (C) 2007 The Jam Warehouse Software (Pty) Ltd; | ||
| 29 | - * All Rights Reserved. | ||
| 30 | - * Contributor( s): ______________________________________ | 10 | + * i) Redistributions of source code must retain the above copyright notice, |
| 11 | + * this list of conditions and the following disclaimer. | ||
| 12 | + * ii) Redistributions in binary form must reproduce the above copyright | ||
| 13 | + * notice, this list of conditions and the following disclaimer in the | ||
| 14 | + * documentation and/or other materials provided with the distribution. | ||
| 15 | + * iii) Neither the name of the The Jam Warehouse Software (Pty) Ltd nor the | ||
| 16 | + * names of its contributors may be used to endorse or promote products | ||
| 17 | + * derived from this software without specific prior written permission. | ||
| 31 | * | 18 | * |
| 19 | + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | ||
| 20 | + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | ||
| 21 | + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | ||
| 22 | + * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR | ||
| 23 | + * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, | ||
| 24 | + * EXEMPLARY, OR CONSEQUENTIAL DAMAGES ( INCLUDING, BUT NOT LIMITED TO, | ||
| 25 | + * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR | ||
| 26 | + * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF | ||
| 27 | + * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT ( INCLUDING | ||
| 28 | + * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS | ||
| 29 | + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
| 30 | + */ | ||
| 31 | + | ||
| 32 | +/* | ||
| 33 | + * This is a sample of how to add a document to the repository. | ||
| 32 | */ | 34 | */ |
| 33 | 35 | ||
| 34 | require_once('../ktwsapi.inc.php'); | 36 | require_once('../ktwsapi.inc.php'); |
| @@ -48,4 +50,4 @@ $root->add_document('c:/temp/test.doc'); | @@ -48,4 +50,4 @@ $root->add_document('c:/temp/test.doc'); | ||
| 48 | 50 | ||
| 49 | $ktapi->logout(); | 51 | $ktapi->logout(); |
| 50 | 52 | ||
| 51 | -?> | ||
| 52 | \ No newline at end of file | 53 | \ No newline at end of file |
| 54 | +?> |
ktwsapi/php/examples/ktws_eg_anonymous.php
| 1 | <? | 1 | <? |
| 2 | - | ||
| 3 | /** | 2 | /** |
| 3 | + * Copyright (c) 2007, The Jam Warehouse Software (Pty) Ltd. | ||
| 4 | * | 4 | * |
| 5 | - * Demonstrates how to create an anonymous session. | 5 | + * All rights reserved. |
| 6 | * | 6 | * |
| 7 | - * The contents of this file are subject to the KnowledgeTree Public | ||
| 8 | - * License Version 1.1.2 ("License"); You may not use this file except in | ||
| 9 | - * compliance with the License. You may obtain a copy of the License at | ||
| 10 | - * http://www.knowledgetree.com/KPL | ||
| 11 | - * | ||
| 12 | - * Software distributed under the License is distributed on an "AS IS" | ||
| 13 | - * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. | ||
| 14 | - * See the License for the specific language governing rights and | ||
| 15 | - * limitations under the License. | 7 | + * Redistribution and use in source and binary forms, with or without |
| 8 | + * modification, are permitted provided that the following conditions are met: | ||
| 16 | * | 9 | * |
| 17 | - * All copies of the Covered Code must include on each user interface screen: | ||
| 18 | - * (i) the "Powered by KnowledgeTree" logo and | ||
| 19 | - * (ii) the KnowledgeTree copyright notice | ||
| 20 | - * in the same form as they appear in the distribution. See the License for | ||
| 21 | - * requirements. | ||
| 22 | - * | ||
| 23 | - * The Original Code is: KnowledgeTree Open Source | ||
| 24 | - * | ||
| 25 | - * The Initial Developer of the Original Code is The Jam Warehouse Software | ||
| 26 | - * (Pty) Ltd, trading as KnowledgeTree. | ||
| 27 | - * Portions created by The Jam Warehouse Software (Pty) Ltd are Copyright | ||
| 28 | - * (C) 2007 The Jam Warehouse Software (Pty) Ltd; | ||
| 29 | - * All Rights Reserved. | ||
| 30 | - * Contributor( s): ______________________________________ | 10 | + * i) Redistributions of source code must retain the above copyright notice, |
| 11 | + * this list of conditions and the following disclaimer. | ||
| 12 | + * ii) Redistributions in binary form must reproduce the above copyright | ||
| 13 | + * notice, this list of conditions and the following disclaimer in the | ||
| 14 | + * documentation and/or other materials provided with the distribution. | ||
| 15 | + * iii) Neither the name of the The Jam Warehouse Software (Pty) Ltd nor the | ||
| 16 | + * names of its contributors may be used to endorse or promote products | ||
| 17 | + * derived from this software without specific prior written permission. | ||
| 31 | * | 18 | * |
| 19 | + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | ||
| 20 | + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | ||
| 21 | + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | ||
| 22 | + * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR | ||
| 23 | + * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, | ||
| 24 | + * EXEMPLARY, OR CONSEQUENTIAL DAMAGES ( INCLUDING, BUT NOT LIMITED TO, | ||
| 25 | + * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR | ||
| 26 | + * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF | ||
| 27 | + * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT ( INCLUDING | ||
| 28 | + * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS | ||
| 29 | + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
| 30 | + */ | ||
| 31 | + | ||
| 32 | +/* | ||
| 33 | + * Demonstrates how to create an anonymous session. | ||
| 32 | */ | 34 | */ |
| 33 | 35 | ||
| 34 | require_once('../ktwsapi.inc.php'); | 36 | require_once('../ktwsapi.inc.php'); |
| @@ -51,4 +53,4 @@ $root=$ktapi->get_root_folder(); | @@ -51,4 +53,4 @@ $root=$ktapi->get_root_folder(); | ||
| 51 | 53 | ||
| 52 | $ktapi->logout(); | 54 | $ktapi->logout(); |
| 53 | 55 | ||
| 54 | -?> | ||
| 55 | \ No newline at end of file | 56 | \ No newline at end of file |
| 57 | +?> |
ktwsapi/php/examples/ktws_eg_checkin.php
| 1 | <? | 1 | <? |
| 2 | - | ||
| 3 | /** | 2 | /** |
| 3 | + * Copyright (c) 2007, The Jam Warehouse Software (Pty) Ltd. | ||
| 4 | * | 4 | * |
| 5 | - * Demonstrates document checkout and checkin | 5 | + * All rights reserved. |
| 6 | * | 6 | * |
| 7 | - * The contents of this file are subject to the KnowledgeTree Public | ||
| 8 | - * License Version 1.1.2 ("License"); You may not use this file except in | ||
| 9 | - * compliance with the License. You may obtain a copy of the License at | ||
| 10 | - * http://www.knowledgetree.com/KPL | ||
| 11 | - * | ||
| 12 | - * Software distributed under the License is distributed on an "AS IS" | ||
| 13 | - * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. | ||
| 14 | - * See the License for the specific language governing rights and | ||
| 15 | - * limitations under the License. | 7 | + * Redistribution and use in source and binary forms, with or without |
| 8 | + * modification, are permitted provided that the following conditions are met: | ||
| 16 | * | 9 | * |
| 17 | - * All copies of the Covered Code must include on each user interface screen: | ||
| 18 | - * (i) the "Powered by KnowledgeTree" logo and | ||
| 19 | - * (ii) the KnowledgeTree copyright notice | ||
| 20 | - * in the same form as they appear in the distribution. See the License for | ||
| 21 | - * requirements. | ||
| 22 | - * | ||
| 23 | - * The Original Code is: KnowledgeTree Open Source | ||
| 24 | - * | ||
| 25 | - * The Initial Developer of the Original Code is The Jam Warehouse Software | ||
| 26 | - * (Pty) Ltd, trading as KnowledgeTree. | ||
| 27 | - * Portions created by The Jam Warehouse Software (Pty) Ltd are Copyright | ||
| 28 | - * (C) 2007 The Jam Warehouse Software (Pty) Ltd; | ||
| 29 | - * All Rights Reserved. | ||
| 30 | - * Contributor( s): ______________________________________ | 10 | + * i) Redistributions of source code must retain the above copyright notice, |
| 11 | + * this list of conditions and the following disclaimer. | ||
| 12 | + * ii) Redistributions in binary form must reproduce the above copyright | ||
| 13 | + * notice, this list of conditions and the following disclaimer in the | ||
| 14 | + * documentation and/or other materials provided with the distribution. | ||
| 15 | + * iii) Neither the name of the The Jam Warehouse Software (Pty) Ltd nor the | ||
| 16 | + * names of its contributors may be used to endorse or promote products | ||
| 17 | + * derived from this software without specific prior written permission. | ||
| 31 | * | 18 | * |
| 19 | + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | ||
| 20 | + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | ||
| 21 | + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | ||
| 22 | + * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR | ||
| 23 | + * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, | ||
| 24 | + * EXEMPLARY, OR CONSEQUENTIAL DAMAGES ( INCLUDING, BUT NOT LIMITED TO, | ||
| 25 | + * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR | ||
| 26 | + * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF | ||
| 27 | + * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT ( INCLUDING | ||
| 28 | + * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS | ||
| 29 | + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
| 30 | + */ | ||
| 31 | + | ||
| 32 | +/* | ||
| 33 | + * Demonstrates document checkout and checkin | ||
| 32 | */ | 34 | */ |
| 33 | 35 | ||
| 34 | require_once('../ktwsapi.inc.php'); | 36 | require_once('../ktwsapi.inc.php'); |
| @@ -74,4 +76,4 @@ if (PEAR::isError($result)) | @@ -74,4 +76,4 @@ if (PEAR::isError($result)) | ||
| 74 | 76 | ||
| 75 | $ktapi->logout(); | 77 | $ktapi->logout(); |
| 76 | 78 | ||
| 77 | -?> | ||
| 78 | \ No newline at end of file | 79 | \ No newline at end of file |
| 80 | +?> |
ktwsapi/php/examples/ktws_eg_create_folder.php
| 1 | <? | 1 | <? |
| 2 | - | ||
| 3 | /** | 2 | /** |
| 3 | + * Copyright (c) 2007, The Jam Warehouse Software (Pty) Ltd. | ||
| 4 | * | 4 | * |
| 5 | - * Demonstrates creating a folder in an active session. | 5 | + * All rights reserved. |
| 6 | * | 6 | * |
| 7 | - * The contents of this file are subject to the KnowledgeTree Public | ||
| 8 | - * License Version 1.1.2 ("License"); You may not use this file except in | ||
| 9 | - * compliance with the License. You may obtain a copy of the License at | ||
| 10 | - * http://www.knowledgetree.com/KPL | ||
| 11 | - * | ||
| 12 | - * Software distributed under the License is distributed on an "AS IS" | ||
| 13 | - * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. | ||
| 14 | - * See the License for the specific language governing rights and | ||
| 15 | - * limitations under the License. | 7 | + * Redistribution and use in source and binary forms, with or without |
| 8 | + * modification, are permitted provided that the following conditions are met: | ||
| 16 | * | 9 | * |
| 17 | - * All copies of the Covered Code must include on each user interface screen: | ||
| 18 | - * (i) the "Powered by KnowledgeTree" logo and | ||
| 19 | - * (ii) the KnowledgeTree copyright notice | ||
| 20 | - * in the same form as they appear in the distribution. See the License for | ||
| 21 | - * requirements. | ||
| 22 | - * | ||
| 23 | - * The Original Code is: KnowledgeTree Open Source | ||
| 24 | - * | ||
| 25 | - * The Initial Developer of the Original Code is The Jam Warehouse Software | ||
| 26 | - * (Pty) Ltd, trading as KnowledgeTree. | ||
| 27 | - * Portions created by The Jam Warehouse Software (Pty) Ltd are Copyright | ||
| 28 | - * (C) 2007 The Jam Warehouse Software (Pty) Ltd; | ||
| 29 | - * All Rights Reserved. | ||
| 30 | - * Contributor( s): ______________________________________ | 10 | + * i) Redistributions of source code must retain the above copyright notice, |
| 11 | + * this list of conditions and the following disclaimer. | ||
| 12 | + * ii) Redistributions in binary form must reproduce the above copyright | ||
| 13 | + * notice, this list of conditions and the following disclaimer in the | ||
| 14 | + * documentation and/or other materials provided with the distribution. | ||
| 15 | + * iii) Neither the name of the The Jam Warehouse Software (Pty) Ltd nor the | ||
| 16 | + * names of its contributors may be used to endorse or promote products | ||
| 17 | + * derived from this software without specific prior written permission. | ||
| 31 | * | 18 | * |
| 19 | + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | ||
| 20 | + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | ||
| 21 | + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | ||
| 22 | + * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR | ||
| 23 | + * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, | ||
| 24 | + * EXEMPLARY, OR CONSEQUENTIAL DAMAGES ( INCLUDING, BUT NOT LIMITED TO, | ||
| 25 | + * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR | ||
| 26 | + * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF | ||
| 27 | + * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT ( INCLUDING | ||
| 28 | + * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS | ||
| 29 | + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
| 30 | + */ | ||
| 31 | + | ||
| 32 | +/* | ||
| 33 | + * Demonstrates creating a folder in an active session. | ||
| 32 | */ | 34 | */ |
| 33 | 35 | ||
| 34 | require_once('../ktwsapi.inc.php'); | 36 | require_once('../ktwsapi.inc.php'); |
| @@ -65,4 +67,4 @@ if (PEAR::isError($subfolder)) | @@ -65,4 +67,4 @@ if (PEAR::isError($subfolder)) | ||
| 65 | exit; | 67 | exit; |
| 66 | } | 68 | } |
| 67 | 69 | ||
| 68 | -?> | ||
| 69 | \ No newline at end of file | 70 | \ No newline at end of file |
| 71 | +?> |
ktwsapi/php/examples/ktws_eg_doc_info.php
| 1 | <? | 1 | <? |
| 2 | - | ||
| 3 | /** | 2 | /** |
| 3 | + * Copyright (c) 2007, The Jam Warehouse Software (Pty) Ltd. | ||
| 4 | * | 4 | * |
| 5 | - * Demonstrates using an active session and getting document info and metadata. | 5 | + * All rights reserved. |
| 6 | * | 6 | * |
| 7 | - * The contents of this file are subject to the KnowledgeTree Public | ||
| 8 | - * License Version 1.1.2 ("License"); You may not use this file except in | ||
| 9 | - * compliance with the License. You may obtain a copy of the License at | ||
| 10 | - * http://www.knowledgetree.com/KPL | ||
| 11 | - * | ||
| 12 | - * Software distributed under the License is distributed on an "AS IS" | ||
| 13 | - * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. | ||
| 14 | - * See the License for the specific language governing rights and | ||
| 15 | - * limitations under the License. | 7 | + * Redistribution and use in source and binary forms, with or without |
| 8 | + * modification, are permitted provided that the following conditions are met: | ||
| 16 | * | 9 | * |
| 17 | - * All copies of the Covered Code must include on each user interface screen: | ||
| 18 | - * (i) the "Powered by KnowledgeTree" logo and | ||
| 19 | - * (ii) the KnowledgeTree copyright notice | ||
| 20 | - * in the same form as they appear in the distribution. See the License for | ||
| 21 | - * requirements. | ||
| 22 | - * | ||
| 23 | - * The Original Code is: KnowledgeTree Open Source | ||
| 24 | - * | ||
| 25 | - * The Initial Developer of the Original Code is The Jam Warehouse Software | ||
| 26 | - * (Pty) Ltd, trading as KnowledgeTree. | ||
| 27 | - * Portions created by The Jam Warehouse Software (Pty) Ltd are Copyright | ||
| 28 | - * (C) 2007 The Jam Warehouse Software (Pty) Ltd; | ||
| 29 | - * All Rights Reserved. | ||
| 30 | - * Contributor( s): ______________________________________ | 10 | + * i) Redistributions of source code must retain the above copyright notice, |
| 11 | + * this list of conditions and the following disclaimer. | ||
| 12 | + * ii) Redistributions in binary form must reproduce the above copyright | ||
| 13 | + * notice, this list of conditions and the following disclaimer in the | ||
| 14 | + * documentation and/or other materials provided with the distribution. | ||
| 15 | + * iii) Neither the name of the The Jam Warehouse Software (Pty) Ltd nor the | ||
| 16 | + * names of its contributors may be used to endorse or promote products | ||
| 17 | + * derived from this software without specific prior written permission. | ||
| 31 | * | 18 | * |
| 19 | + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | ||
| 20 | + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | ||
| 21 | + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | ||
| 22 | + * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR | ||
| 23 | + * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, | ||
| 24 | + * EXEMPLARY, OR CONSEQUENTIAL DAMAGES ( INCLUDING, BUT NOT LIMITED TO, | ||
| 25 | + * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR | ||
| 26 | + * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF | ||
| 27 | + * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT ( INCLUDING | ||
| 28 | + * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS | ||
| 29 | + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
| 30 | + */ | ||
| 31 | + | ||
| 32 | +/* | ||
| 33 | + * Demonstrates using an active session and getting document info and metadata. | ||
| 32 | */ | 34 | */ |
| 33 | 35 | ||
| 34 | require_once('../ktwsapi.inc.php'); | 36 | require_once('../ktwsapi.inc.php'); |
ktwsapi/php/examples/ktws_eg_folder_listing.php
| 1 | <? | 1 | <? |
| 2 | - | ||
| 3 | /** | 2 | /** |
| 3 | + * Copyright (c) 2007, The Jam Warehouse Software (Pty) Ltd. | ||
| 4 | * | 4 | * |
| 5 | - * Demonstrates document checkout and checkin | 5 | + * All rights reserved. |
| 6 | * | 6 | * |
| 7 | - * The contents of this file are subject to the KnowledgeTree Public | ||
| 8 | - * License Version 1.1.2 ("License"); You may not use this file except in | ||
| 9 | - * compliance with the License. You may obtain a copy of the License at | ||
| 10 | - * http://www.knowledgetree.com/KPL | ||
| 11 | - * | ||
| 12 | - * Software distributed under the License is distributed on an "AS IS" | ||
| 13 | - * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. | ||
| 14 | - * See the License for the specific language governing rights and | ||
| 15 | - * limitations under the License. | 7 | + * Redistribution and use in source and binary forms, with or without |
| 8 | + * modification, are permitted provided that the following conditions are met: | ||
| 16 | * | 9 | * |
| 17 | - * All copies of the Covered Code must include on each user interface screen: | ||
| 18 | - * (i) the "Powered by KnowledgeTree" logo and | ||
| 19 | - * (ii) the KnowledgeTree copyright notice | ||
| 20 | - * in the same form as they appear in the distribution. See the License for | ||
| 21 | - * requirements. | ||
| 22 | - * | ||
| 23 | - * The Original Code is: KnowledgeTree Open Source | ||
| 24 | - * | ||
| 25 | - * The Initial Developer of the Original Code is The Jam Warehouse Software | ||
| 26 | - * (Pty) Ltd, trading as KnowledgeTree. | ||
| 27 | - * Portions created by The Jam Warehouse Software (Pty) Ltd are Copyright | ||
| 28 | - * (C) 2007 The Jam Warehouse Software (Pty) Ltd; | ||
| 29 | - * All Rights Reserved. | ||
| 30 | - * Contributor( s): ______________________________________ | 10 | + * i) Redistributions of source code must retain the above copyright notice, |
| 11 | + * this list of conditions and the following disclaimer. | ||
| 12 | + * ii) Redistributions in binary form must reproduce the above copyright | ||
| 13 | + * notice, this list of conditions and the following disclaimer in the | ||
| 14 | + * documentation and/or other materials provided with the distribution. | ||
| 15 | + * iii) Neither the name of the The Jam Warehouse Software (Pty) Ltd nor the | ||
| 16 | + * names of its contributors may be used to endorse or promote products | ||
| 17 | + * derived from this software without specific prior written permission. | ||
| 31 | * | 18 | * |
| 19 | + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | ||
| 20 | + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | ||
| 21 | + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | ||
| 22 | + * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR | ||
| 23 | + * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, | ||
| 24 | + * EXEMPLARY, OR CONSEQUENTIAL DAMAGES ( INCLUDING, BUT NOT LIMITED TO, | ||
| 25 | + * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR | ||
| 26 | + * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF | ||
| 27 | + * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT ( INCLUDING | ||
| 28 | + * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS | ||
| 29 | + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
| 30 | + */ | ||
| 31 | + | ||
| 32 | +/* | ||
| 33 | + * Demonstrates document checkout and checkin | ||
| 32 | */ | 34 | */ |
| 33 | 35 | ||
| 34 | require_once('../ktwsapi.inc.php'); | 36 | require_once('../ktwsapi.inc.php'); |
| @@ -69,4 +71,4 @@ foreach($listing as $folderitem) | @@ -69,4 +71,4 @@ foreach($listing as $folderitem) | ||
| 69 | print "$title $item_type $mime_display\n"; | 71 | print "$title $item_type $mime_display\n"; |
| 70 | } | 72 | } |
| 71 | 73 | ||
| 72 | -?> | ||
| 73 | \ No newline at end of file | 74 | \ No newline at end of file |
| 75 | +?> |
ktwsapi/php/ktwsapi.inc.php
| 1 | <? | 1 | <? |
| 2 | - | ||
| 3 | /** | 2 | /** |
| 3 | + * Copyright (c) 2007, The Jam Warehouse Software (Pty) Ltd. | ||
| 4 | * | 4 | * |
| 5 | - * This is the object model for the KnowledgeTree WebService. | 5 | + * All rights reserved. |
| 6 | * | 6 | * |
| 7 | - * The contents of this file are subject to the KnowledgeTree Public | ||
| 8 | - * License Version 1.1.2 ("License"); You may not use this file except in | ||
| 9 | - * compliance with the License. You may obtain a copy of the License at | ||
| 10 | - * http://www.knowledgetree.com/KPL | ||
| 11 | - * | ||
| 12 | - * Software distributed under the License is distributed on an "AS IS" | ||
| 13 | - * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. | ||
| 14 | - * See the License for the specific language governing rights and | ||
| 15 | - * limitations under the License. | 7 | + * Redistribution and use in source and binary forms, with or without |
| 8 | + * modification, are permitted provided that the following conditions are met: | ||
| 16 | * | 9 | * |
| 17 | - * All copies of the Covered Code must include on each user interface screen: | ||
| 18 | - * (i) the "Powered by KnowledgeTree" logo and | ||
| 19 | - * (ii) the KnowledgeTree copyright notice | ||
| 20 | - * in the same form as they appear in the distribution. See the License for | ||
| 21 | - * requirements. | ||
| 22 | - * | ||
| 23 | - * The Original Code is: KnowledgeTree Open Source | ||
| 24 | - * | ||
| 25 | - * The Initial Developer of the Original Code is The Jam Warehouse Software | ||
| 26 | - * (Pty) Ltd, trading as KnowledgeTree. | ||
| 27 | - * Portions created by The Jam Warehouse Software (Pty) Ltd are Copyright | ||
| 28 | - * (C) 2007 The Jam Warehouse Software (Pty) Ltd; | ||
| 29 | - * All Rights Reserved. | ||
| 30 | - * Contributor( s): ______________________________________ | 10 | + * i) Redistributions of source code must retain the above copyright notice, |
| 11 | + * this list of conditions and the following disclaimer. | ||
| 12 | + * ii) Redistributions in binary form must reproduce the above copyright | ||
| 13 | + * notice, this list of conditions and the following disclaimer in the | ||
| 14 | + * documentation and/or other materials provided with the distribution. | ||
| 15 | + * iii) Neither the name of the The Jam Warehouse Software (Pty) Ltd nor the | ||
| 16 | + * names of its contributors may be used to endorse or promote products | ||
| 17 | + * derived from this software without specific prior written permission. | ||
| 31 | * | 18 | * |
| 19 | + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | ||
| 20 | + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | ||
| 21 | + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | ||
| 22 | + * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR | ||
| 23 | + * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, | ||
| 24 | + * EXEMPLARY, OR CONSEQUENTIAL DAMAGES ( INCLUDING, BUT NOT LIMITED TO, | ||
| 25 | + * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR | ||
| 26 | + * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF | ||
| 27 | + * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT ( INCLUDING | ||
| 28 | + * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS | ||
| 29 | + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
| 30 | + */ | ||
| 31 | + | ||
| 32 | +/* | ||
| 33 | + * This is the object model for the KnowledgeTree WebService. | ||
| 32 | */ | 34 | */ |
| 33 | 35 | ||
| 34 | // TODO: add more validation based on information already returned. this can prevent all validation being done server side and minimise a little traffic possibly... | 36 | // TODO: add more validation based on information already returned. this can prevent all validation being done server side and minimise a little traffic possibly... |
| @@ -1296,4 +1298,4 @@ class KTWSAPI | @@ -1296,4 +1298,4 @@ class KTWSAPI | ||
| 1296 | } | 1298 | } |
| 1297 | } | 1299 | } |
| 1298 | 1300 | ||
| 1299 | -?> | ||
| 1300 | \ No newline at end of file | 1301 | \ No newline at end of file |
| 1302 | +?> |
ktwsapi/php/ktwsapi_cfg.inc.php
| 1 | <? | 1 | <? |
| 2 | /** | 2 | /** |
| 3 | - * This is the basic configuration for the KnowledgeTree WebService object model | 3 | + * Copyright (c) 2007, The Jam Warehouse Software (Pty) Ltd. |
| 4 | + * | ||
| 5 | + * All rights reserved. | ||
| 6 | + * | ||
| 7 | + * Redistribution and use in source and binary forms, with or without | ||
| 8 | + * modification, are permitted provided that the following conditions are met: | ||
| 9 | + * | ||
| 10 | + * i) Redistributions of source code must retain the above copyright notice, | ||
| 11 | + * this list of conditions and the following disclaimer. | ||
| 12 | + * ii) Redistributions in binary form must reproduce the above copyright | ||
| 13 | + * notice, this list of conditions and the following disclaimer in the | ||
| 14 | + * documentation and/or other materials provided with the distribution. | ||
| 15 | + * iii) Neither the name of the The Jam Warehouse Software (Pty) Ltd nor the | ||
| 16 | + * names of its contributors may be used to endorse or promote products | ||
| 17 | + * derived from this software without specific prior written permission. | ||
| 18 | + * | ||
| 19 | + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | ||
| 20 | + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | ||
| 21 | + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | ||
| 22 | + * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR | ||
| 23 | + * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, | ||
| 24 | + * EXEMPLARY, OR CONSEQUENTIAL DAMAGES ( INCLUDING, BUT NOT LIMITED TO, | ||
| 25 | + * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR | ||
| 26 | + * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF | ||
| 27 | + * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT ( INCLUDING | ||
| 28 | + * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS | ||
| 29 | + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
| 4 | */ | 30 | */ |
| 5 | 31 | ||
| 6 | /* | 32 | /* |
| 7 | - * The contents of this file are subject to the KnowledgeTree Public | ||
| 8 | - * License Version 1.1.2 ("License"); You may not use this file except in | ||
| 9 | - * compliance with the License. You may obtain a copy of the License at | ||
| 10 | - * http://www.knowledgetree.com/KPL | ||
| 11 | - * | ||
| 12 | - * Software distributed under the License is distributed on an "AS IS" | ||
| 13 | - * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. | ||
| 14 | - * See the License for the specific language governing rights and | ||
| 15 | - * limitations under the License. | ||
| 16 | - * | ||
| 17 | - * All copies of the Covered Code must include on each user interface screen: | ||
| 18 | - * (i) the "Powered by KnowledgeTree" logo and | ||
| 19 | - * (ii) the KnowledgeTree copyright notice | ||
| 20 | - * in the same form as they appear in the distribution. See the License for | ||
| 21 | - * requirements. | ||
| 22 | - * | ||
| 23 | - * The Original Code is: KnowledgeTree Open Source | ||
| 24 | - * | ||
| 25 | - * The Initial Developer of the Original Code is The Jam Warehouse Software | ||
| 26 | - * (Pty) Ltd, trading as KnowledgeTree. | ||
| 27 | - * Portions created by The Jam Warehouse Software (Pty) Ltd are Copyright | ||
| 28 | - * (C) 2007 The Jam Warehouse Software (Pty) Ltd; | ||
| 29 | - * All Rights Reserved. | ||
| 30 | - * Contributor( s): ______________________________________ | ||
| 31 | - * | 33 | + * This is the basic configuration for the KnowledgeTree WebService object model |
| 32 | */ | 34 | */ |
| 33 | 35 | ||
| 34 | // Path to PEAR libraries | 36 | // Path to PEAR libraries |
| @@ -43,4 +45,4 @@ define('KTWebServiceURL', 'http://ktdms.trunk'); | @@ -43,4 +45,4 @@ define('KTWebServiceURL', 'http://ktdms.trunk'); | ||
| 43 | define('KTWebService_WSDL', KTWebServiceURL . '/ktwebservice/?wsdl'); | 45 | define('KTWebService_WSDL', KTWebServiceURL . '/ktwebservice/?wsdl'); |
| 44 | define('KTUploadURL', KTWebServiceURL . '/ktwebservice/upload.php'); | 46 | define('KTUploadURL', KTWebServiceURL . '/ktwebservice/upload.php'); |
| 45 | 47 | ||
| 46 | -?> | ||
| 47 | \ No newline at end of file | 48 | \ No newline at end of file |
| 49 | +?> |