( ;( + 8' X% " % ]" ( &' M% * I" `! P" ! ' ) 8w' % `" * L* ( p+' p% 8# p% ::getApplication()->getInput()->getString($name, $default)); } public static function getUint(string $name, mixed $default = null): int { return (int) (self::convertFromArray($name) ?? JFactory::getApplication()->getInput()->getUint($name, $default)); } public static function getUsername(string $name, mixed $default = null): string { return (string) (self::convertFromArray($name) ?? JFactory::getApplication()->getInput()->getUsername($name, $default)); } public static function getWord(string $name, mixed $default = null): string { return (string) (self::convertFromArray($name) ?? JFactory::getApplication()->getInput()->getWord($name, $default)); } public static function set(string $name, mixed $value): void { JFactory::getApplication()->getInput()->set($name, $value); } public static function setCookie(string $name, mixed $value, array $options = []): void { JFactory::getApplication()->getInput()->cookie->set($name, $value, $options); } private static function convertFromArray(string $name): mixed { $value = JFactory::getApplication()->getInput()->get($name, null); if (is_array($value)) { return $value[0] ?? null; } return null; } }