[ Index ]

PHP Cross Reference of vtigercrm-6.1.0

title

Body

[close]

/include/utils/ -> CommonUtils.php (summary)

(no description)

File Size: 500 lines (18 kb)
Included or required: 21 times
Referenced: 0 times
Includes or requires: 8 files
 include/utils/VTCacheUtils.php
 includes/runtime/Cache.php
 include/utils/VtlibUtils.php
 include/utils/utils.php
 include/ListView/ListViewController.php
 include/utils/RecurringType.php
 include/QueryGenerator/QueryGenerator.php
 include/utils/EmailTemplate.php

Defines 74 functions

  is_admin()
  parse_calendardate()
  from_html()
  fck_from_html()
  popup_from_html()
  fetchCurrency()
  getCurrencyName()
  getTabid()
  getFieldid()
  getTabOwnedBy()
  getSalesEntityType()
  getAccountName()
  getProductName()
  getPotentialName()
  getContactName()
  getFullNameFromQResult()
  getFullNameFromArray()
  getCampaignName()
  getVendorName()
  getQuoteName()
  getPriceBookName()
  getSoName()
  getGroupName()
  getUserName()
  getUserFullName()
  getParentName()
  getValidDisplayDate()
  getNewDisplayDate()
  getCurrencySymbolandCRate()
  getTermsandConditions()
  br2nl()
  getBlockId()
  getParentTabFromModule()
  getParentTab()
  setObjectValuesFromRequest()
  create_tab_data_file()
  create_parenttab_data_file()
  getEntityName()
  decideFilePath()
  validateImageFile()
  getTemplateDetails()
  getMergedDescription()
  getSingleFieldValue()
  get_announcements()
  getrecurringObjValue()
  getTranslatedString()
  getTranslatedCurrencyString()
  getTicketComments()
  makeRandomPassword()
  getCvIdOfAll()
  getTagCloudView()
  SaveTagCloudView()
  ChangeTypeOfData_Filter()
  clear_smarty_cache()
  get_smarty_compiled_file()
  perform_post_migration_activities()
  getPickListValues()
  checkFileAccessForInclusion()
  checkFileAccessForDeletion()
  checkFileAccess()
  isFileAccessible()
  getActivityType()
  getOwnerName()
  getOwnerNameList()
  getSettingsBlockId()
  getEntityField()
  getEntityFieldNames()
  getEntityFieldNameDisplay()
  vt_suppressHTMLTags()
  getSqlForNameInDisplayFormat()
  getModuleSequenceNumber()
  getInvoiceStatus()
  decimalFormat()
  updateRecordLabel()

Functions
Functions that are not part of a class:

is_admin($user)   X-Ref
No description

parse_calendardate($local_format)   X-Ref
No description

from_html($string, $encode = true)   X-Ref
No description

fck_from_html($string)   X-Ref
No description

popup_from_html($string, $encode = true)   X-Ref
No description

fetchCurrency($id)   X-Ref
No description

getCurrencyName($currencyid, $show_symbol = true)   X-Ref
No description

getTabid($module)   X-Ref
No description

getFieldid($tabid, $fieldname, $onlyactive = true)   X-Ref
No description

getTabOwnedBy($module)   X-Ref
No description

getSalesEntityType($crmid)   X-Ref
No description

getAccountName($account_id)   X-Ref
No description

getProductName($product_id)   X-Ref
No description

getPotentialName($potential_id)   X-Ref
No description

getContactName($contact_id)   X-Ref
No description

getFullNameFromQResult($result, $row_count, $module)   X-Ref
No description

getFullNameFromArray($module, $fieldValues)   X-Ref
No description

getCampaignName($campaign_id)   X-Ref
No description

getVendorName($vendor_id)   X-Ref
No description

getQuoteName($quote_id)   X-Ref
No description

getPriceBookName($pricebookid)   X-Ref
No description

getSoName($so_id)   X-Ref
No description

getGroupName($groupid)   X-Ref
No description

getUserName($userid)   X-Ref
No description

getUserFullName($userid)   X-Ref
No description

getParentName($parent_id)   X-Ref
No description

getValidDisplayDate($cur_date_val)   X-Ref
No description

getNewDisplayDate()   X-Ref
No description

getCurrencySymbolandCRate($id)   X-Ref
No description

getTermsandConditions()   X-Ref
No description

br2nl($str)   X-Ref
No description

getBlockId($tabid, $label)   X-Ref
This function is used to get the blockid of the customblock for a given module.
Takes the input parameter as $tabid - module tabid and $label - custom label
This returns string type value


getParentTabFromModule($module)   X-Ref
This function is used to get the Parent Tab name for a given module.
Takes the input parameter as $module - module name
This returns value string type


getParentTab()   X-Ref
This function is used to get the Parent Tab name for a given module.
Takes no parameter but gets the vtiger_parenttab value from form request
This returns value string type


setObjectValuesFromRequest($focus)   X-Ref
This function is used to set the Object values from the REQUEST values.

param: object reference $focus - reference of the object

create_tab_data_file()   X-Ref
No description

create_parenttab_data_file()   X-Ref
Function to write the vtiger_parenttabid and name to a flat file parent_tabdata.txt so that the data
is obtained from the file instead of repeated queries
returns null


getEntityName($module, $ids_list, $compute=true)   X-Ref
No description

decideFilePath()   X-Ref
This function is used to decide the File Storage Path in where we will upload the file in the server.
return string $filepath  - filepath inwhere the file should be stored in the server will be return


validateImageFile($file_details)   X-Ref
This function is used to check whether the attached file is a image file or not

param: string $file_details  - vtiger_files array which contains all the uploaded file details

getTemplateDetails($templateid)   X-Ref
This function is used to get the Email Template Details like subject and content for particular template.

param: integer $templateid  - Template Id for an Email Template

getMergedDescription($description, $id, $parent_type)   X-Ref
This function is used to merge the Template Details with the email description

param: string $description  -body of the mail(ie template)
param: integer $tid  - Id of the entity
param: string $parent_type - module of the entity

getSingleFieldValue($tablename, $fieldname, $idname, $id)   X-Ref
No description

get_announcements()   X-Ref
No description

getrecurringObjValue()   X-Ref
Function to get recurring info depending on the recurring type
return  $recurObj       - Object of class RecurringType


getTranslatedString($str, $module = 'Vtiger')   X-Ref
No description

getTranslatedCurrencyString($str)   X-Ref
Get translated currency name string.

param: String $str - input currency name
return: String $str - translated currency name

getTicketComments($ticketid)   X-Ref
No description

makeRandomPassword()   X-Ref
No description

getCvIdOfAll($module)   X-Ref
This function is used to get cvid of default "all" view for any module.

return: a cvid of a module

getTagCloudView($id = "")   X-Ref
No description

SaveTagCloudView($id = "")   X-Ref
No description

ChangeTypeOfData_Filter($table_name, $column_name, $type_of_data)   X-Ref
No description

clear_smarty_cache($path = null)   X-Ref
No description

get_smarty_compiled_file($template_file, $path = null)   X-Ref
No description

perform_post_migration_activities()   X-Ref
No description

getPickListValues($tablename, $roleid)   X-Ref
No description

checkFileAccessForInclusion($filepath)   X-Ref
No description

checkFileAccessForDeletion($filepath)   X-Ref
No description

checkFileAccess($filepath)   X-Ref
No description

isFileAccessible($filepath)   X-Ref
function to return whether the file access is made within vtiger root directory
and it exists.

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.

getActivityType($id)   X-Ref
No description

getOwnerName($id)   X-Ref
No description

getOwnerNameList($idList)   X-Ref
No description

getSettingsBlockId($label)   X-Ref
This function is used to get the blockid of the settings block for a given label.

param: $label - settings label
return: string type value

getEntityField($module)   X-Ref
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

getEntityFieldNames($module)   X-Ref
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

getEntityFieldNameDisplay($module, $fieldsName, $fieldValues)   X-Ref
this function returns the entity field name for a given module; for e.g. for Contacts module it return concat(lastname, ' ', firstname)

return: string $fieldConcatName - the entity field name for the module

vt_suppressHTMLTags($string)   X-Ref
No description

getSqlForNameInDisplayFormat($input, $module, $glue = ' ')   X-Ref
No description

getModuleSequenceNumber($module, $recordId)   X-Ref
No description

getInvoiceStatus($invoiceId)   X-Ref
No description

decimalFormat($value)   X-Ref
No description

updateRecordLabel($module,$recordId)   X-Ref
No description



Generated: Fri Nov 28 20:08:37 2014 Cross-referenced by PHPXref 0.7.1