"V", * * * * Now in customview and report's advance filter this field's criteria will be show like string. * * * */ function ChangeTypeOfData_Filter($table_name, $column_name, $type_of_data) { return Vtiger_Functions::transformFieldTypeOfData($table_name, $column_name, $type_of_data); } /** Clear the Smarty cache files(in Smarty/smarty_c) * * This function will called after migration. * */ function clear_smarty_cache($path = null) { Vtiger_Deprecated::clearSmartyCompiledFiles($path); } /** Get Smarty compiled file for the specified template filename. * * @param $template_file Template filename for which the compiled file has to be returned. * * @return Compiled file for the specified template file. * */ function get_smarty_compiled_file($template_file, $path = null) { return Vtiger_Deprecated::getSmartyCompiledTemplateFile($template_file, $path); } /** Function to carry out all the necessary actions after migration */ function perform_post_migration_activities() { Vtiger_Deprecated::postApplicationMigrationTasks(); } /** Function to get picklist values for the given field that are accessible for the given role. * @ param $tablename picklist fieldname. * It gets the picklist values for the given fieldname * $fldVal = Array(0=>value,1=>value1,-------------,n=>valuen) * @return Array of picklist values accessible by the user. */ function getPickListValues($tablename, $roleid) { return Vtiger_Functions::getPickListValuesFromTableForRole($tablename, $roleid); } /** Function to check the file access is made within web root directory and whether it is not from unsafe directories */ function checkFileAccessForInclusion($filepath) { Vtiger_Deprecated::checkFileAccessForInclusion($filepath); } /** Function to check the file deletion within the deletable (safe) directories*/ function checkFileAccessForDeletion($filepath) { Vtiger_Deprecated::checkFileAccessForDeletion($filepath); } /** Function to check the file access is made within web root directory. */ function checkFileAccess($filepath) { Vtiger_Deprecated::checkFileAccess($filepath); } /** * function to return whether the file access is made within vtiger root directory * and it exists. * @global String $root_directory vtiger root directory as given in config.inc.php file. * @param String $filepath relative path to the file which need to be verified * @return Boolean true if file is a valid file within vtiger root directory, false otherwise. */ function isFileAccessible($filepath) { return Vtiger_Deprecated::isFileAccessible($filepath); } /** Function to get the ActivityType for the given entity id * @param entityid : Type Integer * return the activity type for the given id */ function getActivityType($id) { return Vtiger_Functions::getActivityType($id); } /** Function to get owner name either user or group */ function getOwnerName($id) { return Vtiger_Functions::getOwnerRecordLabel($id); } /** Function to get owner name either user or group */ function getOwnerNameList($idList) { return Vtiger_Functions::getOwnerRecordLabels($idList); } /** * This function is used to get the blockid of the settings block for a given label. * @param $label - settings label * @return string type value */ function getSettingsBlockId($label) { return Vtiger_Deprecated::getSettingsBlockId($label); } /** * this function returns the entity field name for a given module; for e.g. for Contacts module it return concat(lastname, ' ', firstname) * @param string $module - the module name * @return string $fieldsname - the entity field name for the module */ function getEntityField($module) { return Vtiger_Functions::getEntityModuleSQLColumnString($module); } /** * this function returns the entity information for a given module; for e.g. for Contacts module * it returns the information of tablename, modulename, fieldsname and id gets from vtiger_entityname * @param string $module - the module name * @return array $data - the entity information for the module */ function getEntityFieldNames($module) { return Vtiger_Functions::getEntityModuleInfoFieldsFormatted($module); } /** * this function returns the entity field name for a given module; for e.g. for Contacts module it return concat(lastname, ' ', firstname) * @param1 $module - name of the module * @param2 $fieldsName - fieldname with respect to module (ex : 'Accounts' - 'accountname', 'Contacts' - 'lastname','firstname') * @param3 $fieldValues - array of fieldname and its value * @return string $fieldConcatName - the entity field name for the module */ function getEntityFieldNameDisplay($module, $fieldsName, $fieldValues) { return Vtiger_Deprecated::getCurrentUserEntityFieldNameDisplay($module, $fieldsName, $fieldValues); } // vtiger cache utility require_once('include/utils/VTCacheUtils.php'); // vtlib customization: Extended vtiger CRM utlitiy functions require_once('include/utils/VtlibUtils.php'); // END function vt_suppressHTMLTags($string) { return Vtiger_Functions::suppressHTMLTags($string); } function getSqlForNameInDisplayFormat($input, $module, $glue = ' ') { return Vtiger_Deprecated::getSqlForNameInDisplayFormat($input, $module, $glue); } function getModuleSequenceNumber($module, $recordId) { return Vtiger_Deprecated::getModuleSequenceNumber($module, $recordId); } function getInvoiceStatus($invoiceId) { return Vtiger_Functions::getInvoiceStatus($invoiceId); } function decimalFormat($value){ return Vtiger_Functions::formatDecimal($value); } function updateRecordLabel($module,$recordId){ return Vtiger_Functions::updateCRMRecordLabel($module, $recordId); } ?>