/** * Removes fields from global fields list. * * @param array<string> $fieldNames Names of all boolean checkboxes what need * fixes (may be list of complex field names). */ public static function removeFields($fieldNames) { global $_FIELDS; foreach ($fieldNames as $fieldName) { Naming::unsetValueWithComplexName($_FIELDS, $fieldName); } }
/** * Sets session variable value. * * @param string $fieldName * @param mixed $fieldValue */ public static function set($fieldName, $fieldValue = true) { Naming::setValueWithComplexName($_SESSION, $fieldName, $fieldValue); }