<?php
// Bitrix\Bizproc\Activity\PropertiesDialog :: getCurrentValue()
// /dist/bitrix/modules/bizproc/lib/activity/propertiesdialog.php:245
public function getCurrentValue($valueKey, $default = null)
{
if (is_array($valueKey))
{
if ($default === null && isset($valueKey['Default']))
{
$default = $valueKey['Default'];
}
$valueKey = isset($valueKey['FieldName']) ? $valueKey['FieldName'] : '';
}
$values = $this->getCurrentValues();
return (is_array($values) && isset($values[$valueKey])) ? $values[$valueKey] : $default;
}