Bitrix Site Manager

CMain::AddBufferContent

CMain::AddBufferContent(
 callback function,
 mixed parameter_1,
 mixed parameter_2,
 ...
 mixed parameter_N
)

The method AddBufferContent is used to create delay functions.

Parameters

ParameterDescription
function Name of the function that is to be delayed. For global functions, pass the function name in this parameter. For class methods, pass an array having a class name in the first entry and a method name in the second one.
parameter_1
...
parameter_N
Parameters which are to be passed to the function.

See Also

Example



<?
function myShowProperty($property_id, $default_value=false)
{
    global $APPLICATION;
    echo $APPLICATION->AddBufferContent(Array(&$APPLICATION, "GetProperty"), 
    $property_id, $default_value);
}
?>
<?
function myShowTitle($property_name="title", $strip_tags = true)
{
    global $APPLICATION;
    echo $APPLICATION->AddBufferContent(Array(&$APPLICATION, "GetTitle"), 
    $property_name, $strip_tags);
}
?>
<?
function myShowPanel()
{
    global $APPLICATION;
    echo $APPLICATION->AddBufferContent(Array(&$APPLICATION, "GetPanel"));
}
?>