• Модуль: bizproc
  • Путь к файлу: ~/bitrix/modules/bizproc/classes/general/document.php
  • Класс: CBPDocument
  • Вызов: CBPDocument::parseExpression
static function parseExpression($expression)
{
	$matches = null;
	if (is_string($expression) && preg_match(CBPActivity::ValuePattern, $expression, $matches))
	{
		$result = array(
			'object' => $matches['object'],
			'field' => $matches['field'],
			'modifiers' => array()
		);
		if (!empty($matches['mod1']))
			$result['modifiers'][] = $matches['mod1'];
		if (!empty($matches['mod2']))
			$result['modifiers'][] = $matches['mod2'];

		return $result;
	}
	return false;
}