當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Vtiger_Functions::transformFieldTypeOfData方法代碼示例

本文整理匯總了PHP中Vtiger_Functions::transformFieldTypeOfData方法的典型用法代碼示例。如果您正苦於以下問題:PHP Vtiger_Functions::transformFieldTypeOfData方法的具體用法?PHP Vtiger_Functions::transformFieldTypeOfData怎麽用?PHP Vtiger_Functions::transformFieldTypeOfData使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Vtiger_Functions的用法示例。


在下文中一共展示了Vtiger_Functions::transformFieldTypeOfData方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: ChangeTypeOfData_Filter

/**     function used to change the Type of Data for advanced filters in custom view and Reports
 * *     @param string $table_name - tablename value from field table
 * *     @param string $column_nametable_name - columnname value from field table
 * *     @param string $type_of_data - current type of data of the field. It is to return the same TypeofData
 * *            if the  field is not matched with the $new_field_details array.
 * *     return string $type_of_data - If the string matched with the $new_field_details array then the Changed
 * *	       typeofdata will return, else the same typeofdata will return.
 * *
 * *     EXAMPLE: If you have a field entry like this:
 * *
 * * 		fieldlabel         | typeofdata | tablename            | columnname       |
 * *	        -------------------+------------+----------------------+------------------+
 * *		Potential Name     | I~O        | vtiger_quotes        | potentialid      |
 * *
 * *     Then put an entry in $new_field_details  like this:
 * *
 * *				"vtiger_quotes:potentialid"=>"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);
}
開發者ID:jmangarret,項目名稱:vtigercrm,代碼行數:25,代碼來源:CommonUtils.php


注:本文中的Vtiger_Functions::transformFieldTypeOfData方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。