Bitrix Site Manager

CPostingTemplate::AddPosting

CPostingTemplate::AddPosting(
    array arRubric
);

The method AddPosting generates a subscription issue based on the template.

Parameters

ParameterDescription
arRubric Array of the Mailing list (rubric) fields. The following additional fields are also possible:
  • SITE_ID - the ID of the site from which the rubric originates;
  • START_TIME - time of the last template run in the "FULL" format of the current site;
  • END_TIME - time of the current template run in the "FULL" format of the current site.

Return Values

No return value.

Example



$rubrics = CRubric::GetList(array(), array("ID"=>$ID));
if($arRubric=$rubrics->Fetch())
{
    $arRubric["START_TIME"] = $START_TIME;
    $arRubric["END_TIME"] = $END_TIME;
    $arRubric["SITE_ID"] = $arRubric["LID"];
    CPostingTemplate::AddPosting($arRubric);
}