Dump: Bitrix method

      
<?php 
//  Dump()
//  /dist/bitrix/modules/bizproc/classes/general/activity.php:952

    
public function Dump($level 3)
    {
        
$result str_repeat("    "$level).$this->ToString()."\n";

        if (
is_subclass_of($this"CBPCompositeActivity"))
        {
            
/** @var CBPActivity $activity */
            
foreach ($this->arActivities as $activity)
                
$result .= $activity->Dump($level 1);
        }

        return 
$result;
    }