Documentation

rewriteUserShortName

rewriteUserShortName(&$select, &$runtime, $format, $entity, $grc=false)

Converts fields with composite user names into the names that are computed on the database level and returned in the specified format. Static method.

Function parameters

Parameter Description
$select Link to the array of selected report fields.
$runtime Link to the array of fields that specify report completion time.
$format User name format. For example, it can be retrieved via the CSite::GetNameFormat() method.
$entity Object of the report basic entity.
$grc Attribute that specifies whether it is requireв or not to add the "GROUP_CONCAT_" prefix in front of the generated completion time field alias. Such prefix denotes the applied operation of enumeration.

Returned value

Value is not returned. Deletes fields with the user name from the $select array and adds the completion time fields instead into the $runtime array.


© «Bitrix24», 2001-2024
Up