/** * Sets value of the field or creates new field by pair $fieldName => $fieldValue. * * @global array<mixed> $_FIELDS Global fields list. * @param mixed $fieldName Name of the field as a string or complex name as * an array. * @param mixed $fieldValue Value of the field. * * @throws \Exception */ public static function setFieldValue($fieldName, $fieldValue) { global $_FIELDS; Naming::setValueWithComplexName($_FIELDS, $fieldName, $fieldValue); }
/** * Sets session variable value. * * @param string $fieldName * @param mixed $fieldValue */ public static function set($fieldName, $fieldValue = true) { Naming::setValueWithComplexName($_SESSION, $fieldName, $fieldValue); }