本文整理匯總了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);
}