AddStatusChangeHandler: Bitrix method

      
<?php 
//  AddStatusChangeHandler()
//  /dist/bitrix/modules/bizproc/classes/general/activity.php:1059

    
public function AddStatusChangeHandler($event$eventHandler)
    {
        if (!
is_array($this->arStatusChangeHandlers))
            
$this->arStatusChangeHandlers = array();

        if (!
array_key_exists($event$this->arStatusChangeHandlers))
            
$this->arStatusChangeHandlers[$event] = array();

        
$this->arStatusChangeHandlers[$event][] = $eventHandler;
    }