Check Joomla Updates Programmatically

Check Joomla Updates Programmatically  ? is that possible ? Yes its possible in Joomla , I think you guys noticed the Joomla administrator panel that shows new update  available!. This latest version checking is handled by Joomla “com_joomlaupdate”.

There are several version of Joomla available like Stable release , Short Term Support (STS) and Long Term Support (LTS)etc. Now Joomla latest versions like [label style=”3″]Joomla 3.x[/label] all are LTS model and there is no STS from [label style=”3″]Joomla 3.x[/label] .

In WordPress we will get direct link to download, But Joomla don’t have such a link until now. So checking latest Joomla version programmatically using this method.

Check Joomla Updates Programmatically
Check Joomla Updates Programmatically

Check Joomla Updates Programmatically  working based on few XML files check the following options.

[code style=”1″]

// “Long Term Support (LTS) branch – Recommended”

http://update.joomla.org/core/list.xml

// “Short term support (STS) branch”

http://update.joomla.org/core/sts/list_sts.xml

// “Testing”

http://update.joomla.org/core/test/list_test.xml

[/code]

In Joomla Admin panel this checking is in “com_joomlaupdate” Also Joomla using its updater library for parsing the XML to show the download link and other details.

The file name and path is [label style=”3″] libraries\joomla\updater\update.php [/label]

The function is [code style=”1″]loadFromXML()[/code] .

Then simply check the view file in [label style=”3″] administrator\components\com_joomlaupdate\views\default\[/label] of  “com_joomlaupdate” have the following sections.

[code style=”1″]

$model = $this->getModel();

$this->assign(‘updateInfo’, $model->getUpdateInformation());

[/code]

Then simply check the model function “getUpdateInformation()” it loads the above Joomla update library and parsing the XML to read the latest version of Joomla.

I hope this article gives some idea about Check Joomla Updates Programmatically.

Happy reading ..  🙂 🙂 🙂

Leave a Reply

Your email address will not be published. Required fields are marked *