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