Deprecated Elements

loader.php 5

Element Line Description
\jimport() 787

5.0 Classes should be autoloaded. Use JLoader::registerPrefix() or JLoader::registerNamespace() to register an autoloader for your files.

\JLoader::discover() 96

5.0 Classes should be autoloaded. Use JLoader::registerPrefix() or JLoader::registerNamespace() to register an autoloader for your files.

\JLoader::import() 185

5.0 Classes should be autoloaded. Use JLoader::registerPrefix() or JLoader::registerNamespace() to register an autoloader for your files.

\JLoader::register() 303

5.0 Classes should be autoloaded. Use JLoader::registerPrefix() or JLoader::registerNamespace() to register an autoloader for your files.

\JLoader::loadByPsr4() 510

5.0 Use JLoader::loadByPsr instead

src/Adapter/Adapter.php 1

Element Line Description
\Joomla\CMS\Adapter\Adapter 24

5.0 Will be removed without replacement

src/Adapter/AdapterInstance.php 1

Element Line Description
\Joomla\CMS\Adapter\AdapterInstance 23

5.0 Will be removed without replacement

src/Application/BaseApplication.php 1

Element Line Description
\Joomla\CMS\Application\BaseApplication 27

5.0 Application classes should be based on \Joomla\Application\AbstractApplication

src/Application/CLI/CliInput.php 1

Element Line Description
\Joomla\CMS\Application\CLI\CliInput 19

5.0 Use the joomla/console package instead

src/Application/CLI/CliOutput.php 1

Element Line Description
\Joomla\CMS\Application\CLI\CliOutput 21

5.0 Use the joomla/console package instead

src/Application/CLI/ColorStyle.php 1

Element Line Description
\Joomla\CMS\Application\CLI\ColorStyle 19

5.0 Use the joomla/console package instead

src/Application/CLI/Output/Processor/ColorProcessor.php 1

Element Line Description
\Joomla\CMS\Application\CLI\Output\Processor\ColorProcessor 21

5.0 Use the joomla/console package instead

src/Application/CLI/Output/Processor/ProcessorInterface.php 1

Element Line Description
\Joomla\CMS\Application\CLI\Output\Processor\ProcessorInterface 19

5.0 Use the joomla/console package instead

src/Application/CLI/Output/Stdout.php 1

Element Line Description
\Joomla\CMS\Application\CLI\Output\Stdout 21

5.0 Use the joomla/console package instead

src/Application/CLI/Output/Xml.php 1

Element Line Description
\Joomla\CMS\Application\CLI\Output\Xml 21

5.0 Use the joomla/console package instead

src/Application/CMSApplication.php 3

Element Line Description
\Joomla\CMS\Application\CMSApplication::getCfg() 415

5.0 Use get() instead

\Joomla\CMS\Application\CMSApplication::getInstance() 460

5.0 Use \Joomla\CMS\Factory::getContainer()->get($name) instead

\Joomla\CMS\Application\CMSApplication::isCli() 1221

5.0 Will be removed without replacements

src/Application/CMSApplicationInterface.php 1

Element Line Description
\Joomla\CMS\Application\CMSApplicationInterface::isCli() 132

5.0 Will be removed without replacements

src/Application/CliApplication.php 4

Element Line Description
\Joomla\CMS\Application\CliApplication 35

5.0 Use the ConsoleApplication instead

\Joomla\CMS\Application\CliApplication::__get() 153

5.0 This is a B/C proxy for deprecated read accesses

\Joomla\CMS\Application\CliApplication::getInstance() 216

5.0 Load the app through the container

\Joomla\CMS\Application\CliApplication::isCli() 403

5.0 Will be removed without replacements

src/Application/EventAware.php 1

Element Line Description
\Joomla\CMS\Application\EventAware::triggerEvent() 85

5.0

src/Application/EventAwareInterface.php 2

Element Line Description
\Joomla\CMS\Application\EventAwareInterface 21

5.0 This interface will be removed as the Joomla 3.x compatibility layer will be removed

\Joomla\CMS\Application\EventAwareInterface::triggerEvent() 51

5.0

src/Application/WebApplication.php 2

Element Line Description
\Joomla\CMS\Application\WebApplication::getInstance() 107

5.0 Use \Joomla\CMS\Factory::getContainer()->get($name) instead

\Joomla\CMS\Application\WebApplication::loadSession() 299

5.0 The session should be injected as a service.

src/Authentication/Password/MD5Handler.php 1

Element Line Description
\Joomla\CMS\Authentication\Password\MD5Handler 23

5.0 Support for MD5 hashed passwords will be removed

src/Authentication/Password/PHPassHandler.php 1

Element Line Description
\Joomla\CMS\Authentication\Password\PHPassHandler 21

5.0 Support for PHPass hashed passwords will be removed

src/Cache/Cache.php 1

Element Line Description
\Joomla\CMS\Cache\Cache::getInstance() 92

5.0 Use the cache controller factory instead

src/Cache/CacheController.php 2

Element Line Description
\Joomla\CMS\Cache\CacheController::getInstance() 89

5.0 Use the cache controller factory instead

\Joomla\CMS\Cache\CacheController::addIncludePath() 146

5.0 Use the cache controller factory instead

src/Categories/Categories.php 1

Element Line Description
\Joomla\CMS\Categories\Categories::getInstance() 130

5.0 Use the ComponentInterface to get the categories

src/Component/ComponentHelper.php 3

Element Line Description
\JPATH_COMPONENT 355

5.0 without replacement

\JPATH_COMPONENT_SITE 367

5.0 without replacement

\JPATH_COMPONENT_ADMINISTRATOR 379

5.0 without replacement

src/Component/ComponentRecord.php 2

Element Line Description
\Joomla\CMS\Component\ComponentRecord::__get() 88

5.0 Access the item parameters through the getParams() method

\Joomla\CMS\Component\ComponentRecord::__set() 109

5.0 Set the item parameters through the setParams() method

src/Crypt/Cipher/CryptoCipher.php 1

Element Line Description
\Joomla\CMS\Crypt\Cipher\CryptoCipher 22

5.0 Without replacement use SodiumCipher

src/Date/Date.php 2

Element Line Description
\Joomla\CMS\Date\Date::gmt 64

5.0 Without replacement

\Joomla\CMS\Date\Date::stz 75

5.0 Without replacement

src/Document/Document.php 9

Element Line Description
\Joomla\CMS\Document\Document::getInstance() 356

5.0 Use the \Joomla\CMS\Document\FactoryInterface instead

\Joomla\CMS\Document\Document::addScript() 529

5.0 Use WebAssetManager

\Joomla\CMS\Document\Document::addScriptDeclaration() 555

5.0 Use WebAssetManager

\Joomla\CMS\Document\Document::addStyleSheet() 633

5.0 Use WebAssetManager

\Joomla\CMS\Document\Document::addStyleDeclaration() 667

5.0 Use WebAssetManager

\Joomla\CMS\Document\Document::_scripts 146

5.0 Use WebAssetManager

\Joomla\CMS\Document\Document::_script 156

5.0 Use WebAssetManager

\Joomla\CMS\Document\Document::_styleSheets 173

5.0 Use WebAssetManager

\Joomla\CMS\Document\Document::_style 183

5.0 Use WebAssetManager

src/Encrypt/AES/Mcrypt.php 1

Element Line Description
\Joomla\CMS\Encrypt\AES\Mcrypt 22

4.0.0 will be removed in 5.0.0

src/Factory.php 16

Element Line Description
\Joomla\CMS\Factory::getConfig() 159

5.0 Use the configuration object within the application.

\Joomla\CMS\Factory::getSession() 240

5.0 Load the session service from the dependency injection container or via $app->getSession()

\Joomla\CMS\Factory::getLanguage() 265

5.0 Load the language service from the dependency injection container or via $app->getLanguage()

\Joomla\CMS\Factory::getDocument() 295

5.0 Load the document service from the dependency injection container or via $app->getDocument()

\Joomla\CMS\Factory::getUser() 327

5.0 Load the user service from the dependency injection container or via $app->getIdentity()

\Joomla\CMS\Factory::getCache() 371

5.0 Use the cache controller factory instead

\Joomla\CMS\Factory::getDbo() 415

5.0 Load the database service from the dependency injection container

\Joomla\CMS\Factory::createConfig() 528

5.0 Use the configuration object within the application.

\Joomla\CMS\Factory::createDbo() 607

5.0 Use the database service in the DI container

\Joomla\CMS\Factory::createLanguage() 738

5.0 Load the language service from the dependency injection container or via $app->getLanguage()

\Joomla\CMS\Factory::createDocument() 766

5.0 Load the document service from the dependency injection container or via $app->getDocument()

\Joomla\CMS\Factory::config 64

5.0 Use the configuration object within the application

\Joomla\CMS\Factory::session 89

5.0 Use the session service in the DI container

\Joomla\CMS\Factory::language 98

5.0 Use the language service in the DI container

\Joomla\CMS\Factory::document 107

5.0 Use the document service in the DI container

\Joomla\CMS\Factory::database 116

5.0 Use the database service in the DI container

src/Form/Form.php 1

Element Line Description
\Joomla\CMS\Form\Form::getInstance() 1835

5.0 Use the FormFactory service from the container

src/HTML/Helpers/Behavior.php 6

Element Line Description
\Joomla\CMS\HTML\Helpers\Behavior::core() 42

5.0 Use Joomla\CMS\WebAsset\WebAssetManager::enable();

\Joomla\CMS\HTML\Helpers\Behavior::formvalidator() 60

5.0 Use the script directly

\Joomla\CMS\HTML\Helpers\Behavior::combobox() 84

5.0 Use the script directly

\Joomla\CMS\HTML\Helpers\Behavior::multiselect() 99

5.0 Use the script directly

\Joomla\CMS\HTML\Helpers\Behavior::keepalive() 125

5.0 Use Joomla\CMS\WebAsset\WebAssetManager::enable();

\Joomla\CMS\HTML\Helpers\Behavior::highlighter() 147

5.0 Use the script directly

src/HTML/Helpers/Bootstrap.php 1

Element Line Description
\Joomla\CMS\HTML\Helpers\Bootstrap::framework() 609

5.0

src/HTML/Helpers/FormBehavior.php 1

Element Line Description
\Joomla\CMS\HTML\Helpers\FormBehavior 25

5.0 Without replacement

src/HTML/Helpers/Jquery.php 1

Element Line Description
\Joomla\CMS\HTML\Helpers\Jquery::framework() 46

5.0 Use Joomla\CMS\WebAsset\WebAssetManager::useAsset();

src/HTML/Helpers/SortableList.php 2

Element Line Description
\Joomla\CMS\HTML\Helpers\SortableList 21

5.0 Sortable List will be deprecated in favour of a new dragula script in 4.0

\Joomla\CMS\HTML\Helpers\SortableList::sortable() 38

5.0 In Joomla 4 call JHtml::_('draggablelist.draggable') and add a class of js-draggable to the tbody element of the table

src/HTML/Helpers/Tag.php 1

Element Line Description
\Joomla\CMS\HTML\Helpers\Tag::ajaxfield() 184

5.0 Without replacement

src/Http/Response.php 1

Element Line Description
\Joomla\CMS\Http\Response 21

5.0 Use Joomla\Http\Response instead

src/Http/TransportInterface.php 1

Element Line Description
\Joomla\CMS\Http\TransportInterface 21

5.0 Implement Joomla\Http\TransportInterface instead

src/Input/Cli.php 7

Element Line Description
\Joomla\CMS\Input\Cli 21

5.0 Use the joomla/console package instead

\Joomla\CMS\Input\Cli::__construct() 51

5.0 Use the joomla/console package instead

\Joomla\CMS\Input\Cli::serialize() 77

5.0 Use the joomla/console package instead

\Joomla\CMS\Input\Cli::unserialize() 101

5.0 Use the joomla/console package instead

\Joomla\CMS\Input\Cli::parseArguments() 127

5.0 Use the joomla/console package instead

\Joomla\CMS\Input\Cli::executable 30

5.0 Use the joomla/console package instead

\Joomla\CMS\Input\Cli::args 40

5.0 Use the joomla/console package instead

src/Input/Cookie.php 3

Element Line Description
\Joomla\CMS\Input\Cookie 21

5.0 Use Joomla\Input\Cookie instead

\Joomla\CMS\Input\Cookie::__construct() 32

5.0 Use Joomla\Input\Cookie instead

\Joomla\CMS\Input\Cookie::set() 89

5.0 Use Joomla\Input\Cookie instead

src/Input/Files.php 6

Element Line Description
\Joomla\CMS\Input\Files 21

5.0 Use Joomla\Input\Files instead

\Joomla\CMS\Input\Files::__construct() 42

5.0 Use Joomla\Input\Files instead

\Joomla\CMS\Input\Files::get() 73

5.0 Use Joomla\Input\Files instead

\Joomla\CMS\Input\Files::decodeData() 114

5.0 Use Joomla\Input\Files instead

\Joomla\CMS\Input\Files::set() 142

5.0 Use Joomla\Input\Files instead

\Joomla\CMS\Input\Files::decodedData 30

5.0 Use Joomla\Input\Files instead

src/Input/Input.php 8

Element Line Description
\Joomla\CMS\Input\Input 31

5.0 Use Joomla\Input\Input instead

\Joomla\CMS\Input\Input::__construct() 60

5.0 Use Joomla\Input\Input instead

\Joomla\CMS\Input\Input::__get() 80

5.0 Use Joomla\Input\Input instead

\Joomla\CMS\Input\Input::getArray() 126

5.0 Use Joomla\Input\Input instead

\Joomla\CMS\Input\Input::getArrayRecursive() 149

5.0 Use Joomla\Input\Input instead

\Joomla\CMS\Input\Input::unserialize() 210

5.0 Use Joomla\Input\Input instead

\Joomla\CMS\Input\Input::allowedGlobals 40

5.0 Use Joomla\Input\Input instead

\Joomla\CMS\Input\Input::inputs 49

5.0 Use Joomla\Input\Input instead

src/Input/Json.php 4

Element Line Description
\Joomla\CMS\Input\Json 24

5.0 Use Joomla\Input\Json instead

\Joomla\CMS\Input\Json::__construct() 42

5.0 Use Joomla\Input\Json instead

\Joomla\CMS\Input\Json::getRaw() 79

5.0 Use Joomla\Input\Json instead

\Joomla\CMS\Input\Json::_raw 31

5.0 Use Joomla\Input\Json instead

src/Language/Language.php 1

Element Line Description
\Joomla\CMS\Language\Language::getInstance() 297

5.0 Use the language factory instead

src/MVC/Model/AdminModel.php 1

Element Line Description
\Joomla\CMS\MVC\Model\AdminModel::editAssociations() 1744

5.0 It is handled by regular save method now.

src/MVC/Model/BaseModel.php 1

Element Line Description
\Joomla\CMS\MVC\Model\BaseModel::addIncludePath() 91

5.0 See LegacyModelLoaderTrait\getInstance

src/MVC/Model/ListModel.php 2

Element Line Description
\Joomla\CMS\MVC\Model\ListModel::filterBlacklist 88

4.0.0 use $filterForbiddenList instead

\Joomla\CMS\MVC\Model\ListModel::listBlacklist 105

4.0.0 use $listForbiddenList instead

src/Menu/AbstractMenu.php 1

Element Line Description
\Joomla\CMS\Menu\AbstractMenu::getInstance() 106

5.0 Use the MenuFactoryInterface from the container instead

src/Object/CMSObject.php 6

Element Line Description
\Joomla\CMS\Object\CMSObject 22

4.0.0 Use \stdClass or \Joomla\Registry\Registry instead.

\Joomla\CMS\Object\CMSObject::__toString() 57

3.1.4 Classes should provide their own __toString() implementation.

\Joomla\CMS\Object\CMSObject::getError() 141

3.1.4 JError has been deprecated

\Joomla\CMS\Object\CMSObject::getErrors() 176

3.1.4 JError has been deprecated

\Joomla\CMS\Object\CMSObject::setError() 236

3.1.4 JError has been deprecated

\Joomla\CMS\Object\CMSObject::_errors 31

3.1.4 JError has been deprecated

src/Pathway/Pathway.php 1

Element Line Description
\Joomla\CMS\Pathway\Pathway::getInstance() 60

5.0 Get the instance from the application, eg. $application->getPathway()

src/Plugin/CMSPlugin.php 1

Element Line Description
\Joomla\CMS\Plugin\CMSPlugin::allowLegacyListeners 76

src/Session/Session.php 1

Element Line Description
\Joomla\CMS\Session\Session::getInstance() 160

5.0 Load the session service from the dependency injection container or via $app->getSession()

src/Table/Table.php 2

Element Line Description
\Joomla\CMS\Table\Table::getInstance() 276

5.0 Use the MvcFactory instead

\Joomla\CMS\Table\Table::addIncludePath() 334

5.0 Should not be used anymore as tables are loaded through the MvcFactory

src/Toolbar/Button/BasicButton.php 1

Element Line Description
\Joomla\CMS\Toolbar\Button\BasicButton::fetchButton() 43

5.0 Use render() instead.

src/Toolbar/Button/ConfirmButton.php 1

Element Line Description
\Joomla\CMS\Toolbar\Button\ConfirmButton::fetchButton() 58

5.0 Use render() instead.

src/Toolbar/Button/CustomButton.php 1

Element Line Description
\Joomla\CMS\Toolbar\Button\CustomButton::fetchButton() 52

5.0 Use render() instead.

src/Toolbar/Button/HelpButton.php 1

Element Line Description
\Joomla\CMS\Toolbar\Button\HelpButton::fetchButton() 66

5.0 Use render() instead.

src/Toolbar/Button/LinkButton.php 1

Element Line Description
\Joomla\CMS\Toolbar\Button\LinkButton::fetchButton() 66

5.0 Use render() instead.

src/Toolbar/Button/SeparatorButton.php 1

Element Line Description
\Joomla\CMS\Toolbar\Button\SeparatorButton::fetchButton() 40

5.0 Use render() instead.

src/Toolbar/Button/StandardButton.php 1

Element Line Description
\Joomla\CMS\Toolbar\Button\StandardButton::fetchButton() 70

5.0 Use render() instead.

src/Toolbar/Toolbar.php 3

Element Line Description
\Joomla\CMS\Toolbar\Toolbar::getInstance() 133

5.0 Use the ToolbarFactoryInterface instead

\Joomla\CMS\Toolbar\Toolbar::addButtonPath() 401

5.0 ToolbarButton classes should be autoloaded

\Joomla\CMS\Toolbar\Toolbar::getButtonPath() 440

5.0 ToolbarButton classes should be autoloaded

src/Toolbar/ToolbarButton.php 1

Element Line Description
\Joomla\CMS\Toolbar\ToolbarButton::fetchButton() 261

5.0 Use render() instead.

src/User/User.php 1

Element Line Description
\Joomla\CMS\User\User::getInstance() 257

5.0 Load the user service from the dependency injection container or via $app->getIdentity()