PropertiesDialog :: __construct: Bitrix method

      
<?php 
//  Bitrix\Bizproc\Activity\PropertiesDialog :: __construct()
//  /dist/bitrix/modules/bizproc/lib/activity/propertiesdialog.php:26

    /** @var array */
    
protected $runtimeData = array();

    public function 
__construct($activityFile, array $data null)
    {
        
$this->activityFile $activityFile;

        if (
is_array($data))
        {
            if (isset(
$data['documentType']) && is_array($data['documentType']))
                
$this->setDocumentType($data['documentType']);
            if (isset(
$data['activityName']))
                
$this->setActivityName($data['activityName']);
            if (isset(
$data['workflowTemplate']) && is_array($data['workflowTemplate']))
                
$this->setWorkflowTemplate($data['workflowTemplate']);
            if (isset(
$data['workflowParameters']) && is_array($data['workflowParameters']))
                
$this->setWorkflowParameters($data['workflowParameters']);
            if (isset(
$data['currentValues']) && is_array($data['currentValues']))
                
$this->setCurrentValues($data['currentValues']);
            if (isset(
$data['formName']))
                
$this->setFormName($data['formName']);
            if (isset(
$data['siteId']))
                
$this->setSiteId($data['siteId']);
        }
    }