[ Index ] |
PHP Cross Reference of vtigercrm-6.1.0 |
[Summary view] [Print] [Text view]
1 <?php 2 /*+********************************************************************************** 3 * The contents of this file are subject to the vtiger CRM Public License Version 1.0 4 * ("License"); You may not use this file except in compliance with the License 5 * The Original Code is: vtiger CRM Open Source 6 * The Initial Developer of the Original Code is vtiger. 7 * Portions created by vtiger are Copyright (C) vtiger. 8 * All Rights Reserved. 9 ************************************************************************************/ 10 include_once ('vtlib/Vtiger/Utils.php'); 11 12 /** 13 * Provides API to work with vtiger CRM Webservice (available from vtiger 5.1) 14 * @package vtlib 15 */ 16 class Vtiger_Webservice { 17 18 /** 19 * Helper function to log messages 20 * @param String Message to log 21 * @param Boolean true appends linebreak, false to avoid it 22 * @access private 23 */ 24 static function log($message, $delim=true) { 25 Vtiger_Utils::Log($message, $delim); 26 } 27 28 /** 29 * Initialize webservice for the given module 30 * @param Vtiger_Module Instance of the module. 31 */ 32 static function initialize($moduleInstance) { 33 if($moduleInstance->isentitytype) { 34 // TODO: Enable support when webservice API support is added. 35 if(function_exists('vtws_addDefaultModuleTypeEntity')) { 36 vtws_addDefaultModuleTypeEntity($moduleInstance->name); 37 self::log("Initializing webservices support ...DONE"); 38 } 39 } 40 } 41 42 /** 43 * Initialize webservice for the given module 44 * @param Vtiger_Module Instance of the module. 45 */ 46 static function uninitialize($moduleInstance) { 47 if($moduleInstance->isentitytype) { 48 // TODO: Enable support when webservice API support is added. 49 if(function_exists('vtws_deleteWebserviceEntity')) { 50 vtws_deleteWebserviceEntity($moduleInstance->name); 51 self::log("De-Initializing webservices support ...DONE"); 52 } 53 } 54 } 55 } 56 ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Fri Nov 28 20:08:37 2014 | Cross-referenced by PHPXref 0.7.1 |