This needs to be `$input = JFactory::getApplication()->input;`