CBPAllTaskService :: OnAdminInformerInsertItems: Bitrix method

      
<?php 
//  CBPAllTaskService :: OnAdminInformerInsertItems()
//  /dist/bitrix/modules/bizproc/classes/general/taskservice.php:454

    
public static function OnAdminInformerInsertItems()
    {
        global 
$USER;

        if(!
defined("BX_AUTH_FORM"))
        {
            
$tasksCount CUserCounter::GetValue($USER->GetID(), 'bp_tasks');

            if(
$tasksCount 0)
            {
                
$bpAIParams = array(
                    
"TITLE" => GetMessage("BPTS_AI_BIZ_PROC"),
                    
"HTML" => '<span class="adm-informer-strong-text">'.GetMessage("BPTS_AI_EX_TASKS").'</span><br>'.GetMessage("BPTS_AI_TASKS_NUM").' '.$tasksCount,
                    
"FOOTER" => '<a href="/bitrix/admin/bizproc_task_list.php?lang='.LANGUAGE_ID.'">'.GetMessage("BPTS_AI_TASKS_PERF").'</a>',
                    
"COLOR" => "red",
                    
"ALERT" => true
                
);

                
CAdminInformer::AddItem($bpAIParams);
            }
        }
    }