[ Index ]
 

Code source de vtiger CRM 5.0.2

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/include/utils/ -> utils.php (sommaire)

(pas de description)

Poids: 2756 lignes (97 kb)
Inclus ou requis: 193 fois
Référencé: 0 fois
Nécessite: 11 fichiers
 include/utils/DeleteUtils.php
 include/FormValidationUtil.php
 include/utils/InventoryUtils.php
 include/utils/CommonUtils.php
 tabdata.php
 include/utils/SearchUtils.php
 include/utils/ListViewUtils.php
 include/ComboUtil.php
 include/database/PearDatabase.php
 include/utils/DetailViewUtils.php
 include/utils/EditViewUtils.php

Définit 94 fonctions

  return_name()
  get_languages()
  get_language_display()
  get_assigned_user_name()
  get_user_array()
  clean()
  safe_map()
  safe_map_named()
  return_app_list_strings_language()
  return_application_language()
  return_module_language()
  return_specified_module_language()
  return_mod_list_strings_language()
  return_theme_language()
  return_session_value_or_default()
  append_where_clause()
  generate_where_statement()
  create_guid()
  create_guid_section()
  ensure_length()
  get_theme_display()
  get_themes()
  get_clear_form_js()
  get_set_focus_js()
  array_csort()
  set_default_config()
  to_html()
  get_assigned_user_or_group_name()
  getTabname()
  getTabModuleName()
  getColumnFields()
  getUserEmail()
  getUserId_Ol()
  getActionid()
  getActionname()
  getUserId()
  getRecordOwnerId()
  insertProfile2field()
  insert_def_org_field()
  getProfile2FieldList()
  getProfile2FieldPermissionList()
  getProfile2AllFieldList()
  getDefOrgFieldList()
  getQuickCreate()
  ChangeStatus()
  getDBInsertDateValue()
  getUnitPrice()
  upload_product_image_file()
  getProductImageName()
  getContactImageName()
  updateSubTotal()
  getInventoryTotal()
  updateProductQty()
  get_account_info()
  get_quickcreate_form()
  get_textmanField()
  get_textwebField()
  get_textField()
  get_textaccField()
  get_textcomboField()
  get_textdateField()
  get_textdurationField()
  getEmailParentsList()
  getPoStatus()
  addToProductStock()
  addToProductDemand()
  deductFromProductStock()
  deductFromProductDemand()
  getProductQtyInStock()
  getProductQtyInDemand()
  getDateFromDateAndtime()
  getBlockTableHeader()
  getTableNameForField()
  getParentRecordOwner()
  getPotentialsRelatedAccounts()
  getEmailsRelatedAccounts()
  getEmailsRelatedLeads()
  getHelpDeskRelatedAccounts()
  getQuotesRelatedAccounts()
  getQuotesRelatedPotentials()
  getSalesOrderRelatedAccounts()
  getSalesOrderRelatedPotentials()
  getSalesOrderRelatedQuotes()
  getInvoiceRelatedAccounts()
  getInvoiceRelatedSalesOrder()
  get_days_n_dates()
  start_end_dates()
  Graph_n_table_format()
  getImageCount()
  getUserImageName()
  getUserImageNames()
  strip_selected_tags()
  useInternalMailer()
  utf8RawUrlDecode()

Fonctions
Fonctions qui ne font pas partie d'une Classe:

return_name(&$row, $first_column, $last_column)   X-Ref
Pas de description

get_languages()   X-Ref
Pas de description

get_language_display($key)   X-Ref
Pas de description

get_assigned_user_name(&$assigned_user_id)   X-Ref
Pas de description

get_user_array($add_blank=true, $status="Active", $assigned_user="",$private="")   X-Ref
Pas de description

clean($string, $maxLength)   X-Ref
Pas de description

safe_map($request_var, & $focus, $always_copy = false)   X-Ref
Copy the specified request variable to the member variable of the specified object.
Do no copy if the member variable is already set.
Portions created by SugarCRM are Copyright (C) SugarCRM, Inc.
All Rights Reserved.
Contributor(s): ______________________________________..


safe_map_named($request_var, & $focus, $member_var, $always_copy)   X-Ref
Copy the specified request variable to the member variable of the specified object.
Do no copy if the member variable is already set.
Portions created by SugarCRM are Copyright (C) SugarCRM, Inc.
All Rights Reserved.
Contributor(s): ______________________________________..


return_app_list_strings_language($language)   X-Ref
Pas de description

return_application_language($language)   X-Ref
Pas de description

return_module_language($language, $module)   X-Ref
Pas de description

return_specified_module_language($language, $module)   X-Ref
Pas de description

return_mod_list_strings_language($language,$module)   X-Ref
Pas de description

return_theme_language($language, $theme)   X-Ref
Pas de description

return_session_value_or_default($varname, $default)   X-Ref
Pas de description

append_where_clause(&$where_clauses, $variable_name, $SQL_name = null)   X-Ref
Creates an array of where restrictions.  These are used to construct a where SQL statement on the query
It looks for the variable in the $_REQUEST array.  If it is set and is not "" it will create a where clause out of it.

param: &$where_clauses - The array to append the clause to
param: $variable_name - The name of the variable to look for an add to the where clause if found
param: $SQL_name - [Optional] If specified, this is the SQL column name that is used.  If not specified, the $variable_name is used as the SQL_name.

generate_where_statement($where_clauses)   X-Ref
Generate the appropriate SQL based on the where clauses.

returns: string where_clause - The final SQL where clause to be executed.
param: $where_clauses - An Array of individual where clauses stored as strings

create_guid()   X-Ref
A temporary method of generating GUIDs of the correct format for our DB.

return: String contianing a GUID in the format: aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee

create_guid_section($characters)   X-Ref
Pas de description

ensure_length(&$string, $length)   X-Ref
Pas de description

get_theme_display($theme)   X-Ref
Return the display name for a theme if it exists.
Portions created by SugarCRM are Copyright (C) SugarCRM, Inc.
All Rights Reserved.
Contributor(s): ______________________________________..


get_themes()   X-Ref
Return an array of directory names.
Portions created by SugarCRM are Copyright (C) SugarCRM, Inc.
All Rights Reserved.
Contributor(s): ______________________________________..


get_clear_form_js()   X-Ref
Create javascript to clear values of all elements in a form.
Portions created by SugarCRM are Copyright (C) SugarCRM, Inc.
All Rights Reserved.
Contributor(s): ______________________________________..


get_set_focus_js()   X-Ref
Create javascript to set the cursor focus to specific vtiger_field in a form
when the screen is rendered.  The vtiger_field name is currently hardcoded into the
the function.
Portions created by SugarCRM are Copyright (C) SugarCRM, Inc.
All Rights Reserved.
Contributor(s): ______________________________________..


array_csort()   X-Ref
Very cool algorithm for sorting multi-dimensional arrays.  Found at http://us2.php.net/manual/en/function.array-multisort.php
Syntax: $new_array = array_csort($array [, 'col1' [, SORT_FLAG [, SORT_FLAG]]]...);
Explanation: $array is the array you want to sort, 'col1' is the name of the column
you want to sort, SORT_FLAGS are : SORT_ASC, SORT_DESC, SORT_REGULAR, SORT_NUMERIC, SORT_STRING
you can repeat the 'col',FLAG,FLAG, as often you want, the highest prioritiy is given to
the first - so the array is sorted by the last given column first, then the one before ...
Example: $array = array_csort($array,'town','age',SORT_DESC,'name');
Portions created by SugarCRM are Copyright (C) SugarCRM, Inc.
All Rights Reserved.
Contributor(s): ______________________________________..


set_default_config(&$defaults)   X-Ref
Pas de description

to_html($string, $encode=true)   X-Ref
Pas de description

get_assigned_user_or_group_name($id,$module)   X-Ref
Pas de description

getTabname($tabid)   X-Ref
Pas de description

getTabModuleName($tabid)   X-Ref
Pas de description

getColumnFields($module)   X-Ref
Pas de description

getUserEmail($userid)   X-Ref
Pas de description

getUserId_Ol($username)   X-Ref
Pas de description

getActionid($action)   X-Ref
Pas de description

getActionname($actionid)   X-Ref
Pas de description

getUserId($record)   X-Ref
Pas de description

getRecordOwnerId($record)   X-Ref
Pas de description

insertProfile2field($profileid)   X-Ref
Pas de description

insert_def_org_field()   X-Ref
Pas de description

getProfile2FieldList($fld_module, $profileid)   X-Ref
Pas de description

getProfile2FieldPermissionList($fld_module, $profileid)   X-Ref
Pas de description

getProfile2AllFieldList($mod_array,$profileid)   X-Ref
Pas de description

getDefOrgFieldList($fld_module)   X-Ref
Pas de description

getQuickCreate($tabid,$actionid)   X-Ref
Pas de description

ChangeStatus($status,$activityid,$activity_mode='')   X-Ref
Pas de description

getDBInsertDateValue($value)   X-Ref
Pas de description

getUnitPrice($productid)   X-Ref
Pas de description

upload_product_image_file($mode,$id)   X-Ref
Pas de description

getProductImageName($id,$deleted_array='')   X-Ref
Pas de description

getContactImageName($id)   X-Ref
Pas de description

updateSubTotal($module,$tablename,$colname,$colname1,$entid_fld,$entid,$prod_total)   X-Ref
Pas de description

getInventoryTotal($return_module,$id)   X-Ref
Pas de description

updateProductQty($product_id, $upd_qty)   X-Ref
Pas de description

get_account_info($parent_id)   X-Ref
Pas de description

get_quickcreate_form($fieldlabel,$uitype,$fieldname,$tabid)   X-Ref
Pas de description

get_textmanField($label,$name,$tid)   X-Ref
Pas de description

get_textwebField($label,$name)   X-Ref
Pas de description

get_textField($label,$name)   X-Ref
Pas de description

get_textaccField($label,$name,$tid)   X-Ref
Pas de description

get_textcomboField($label,$name)   X-Ref
Pas de description

get_textdateField($label,$name,$tid)   X-Ref
Pas de description

get_textdurationField($label,$name,$tid)   X-Ref
Pas de description

getEmailParentsList($module,$id)   X-Ref
Pas de description

getPoStatus($po_id)   X-Ref
Pas de description

addToProductStock($productId,$qty)   X-Ref
Pas de description

addToProductDemand($productId,$qty)   X-Ref
Pas de description

deductFromProductStock($productId,$qty)   X-Ref
Pas de description

deductFromProductDemand($productId,$qty)   X-Ref
Pas de description

getProductQtyInStock($product_id)   X-Ref
Pas de description

getProductQtyInDemand($product_id)   X-Ref
Pas de description

getDateFromDateAndtime($date_time)   X-Ref
Pas de description

getBlockTableHeader($header_label)   X-Ref
Pas de description

getTableNameForField($module,$fieldname)   X-Ref
Pas de description

getParentRecordOwner($tabid,$parModId,$record_id)   X-Ref
Pas de description

getPotentialsRelatedAccounts($record_id)   X-Ref
Pas de description

getEmailsRelatedAccounts($record_id)   X-Ref
Pas de description

getEmailsRelatedLeads($record_id)   X-Ref
Pas de description

getHelpDeskRelatedAccounts($record_id)   X-Ref
Pas de description

getQuotesRelatedAccounts($record_id)   X-Ref
Pas de description

getQuotesRelatedPotentials($record_id)   X-Ref
Pas de description

getSalesOrderRelatedAccounts($record_id)   X-Ref
Pas de description

getSalesOrderRelatedPotentials($record_id)   X-Ref
Pas de description

getSalesOrderRelatedQuotes($record_id)   X-Ref
Pas de description

getInvoiceRelatedAccounts($record_id)   X-Ref
Pas de description

getInvoiceRelatedSalesOrder($record_id)   X-Ref
Pas de description

get_days_n_dates($st,$en)   X-Ref
Pas de description

start_end_dates($period)   X-Ref
Pas de description

Graph_n_table_format($period_type,$date_value)   X-Ref
Pas de description

getImageCount($id)   X-Ref
Pas de description

getUserImageName($id)   X-Ref
Pas de description

getUserImageNames()   X-Ref
Pas de description

strip_selected_tags($text, $tags = array()   X-Ref
Pas de description

useInternalMailer()   X-Ref
Pas de description

utf8RawUrlDecode($source)   X-Ref
the function is like unescape in javascript
added by dingjianting on 2006-10-1 for picklist editor




Généré le : Sun Feb 25 10:22:19 2007 par Balluche grâce à PHPXref 0.7