Documentation

GetAdminListViewHTML

string
CIBlockProperty*::GetAdminListViewHTML(
array arProperty,
array value,
array strHTMLControlName
);

The method must return safe HTML for displaying property value in the admin section element list. Static method when using standard properties. Must be static for properties, created by client when using php7.

Note: this method is called when building list of elements.

Call parameters

Parameter Description
arProperty
Property metadata. See Structure for Iblock Module Tables
valueProperty value. Array type:
array(
"VALUE" => value,
"DESCRIPTION" => description,
);
strHTMLControlNameNames of control elements for filling in property value and its description. Array type:
array(
"VALUE" => html safe name for value,
"DESCRIPTION" => html safe name for description,
"MODE" => can have the value "FORM_FILL" when calling from the element edit form or "iblock_element_admin" when editing in the element list view mode as well as "EDIT_FORM" when editing iblock.
"FORM_NAME" => form name to have the in-built control element.
);

Returned value

String.

See Also

Examples

<?
class CIBlockPropertyMyDateTime
{
function GetAdminListViewHTML($arProperty, $value, $strHTMLControlName)
{
if(strlen($value["VALUE"])>0)
return str_replace(" ", "&nbsp;", htmlspecialcharsex($value["VALUE"]));
else
return '&nbsp;';
}
}
?>


© «Bitrix24», 2001-2024