Main menu
WalkswithMeJoomlaCheck Joomla Updates Programmatically

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 Joomla 3.x all are LTS model and there is no STS from Joomla 3.x .

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.


// "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

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  libraries\joomla\updater\update.php

The function is

loadFromXML()
.

Then simply check the view file in  administrator\components\com_joomlaupdate\views\default\ of  “com_joomlaupdate” have the following sections.


$model = $this->getModel();
$this->assign('updateInfo', $model->getUpdateInformation());

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 *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

 

FacebookTwitterGoogle+RSS