Actions

J2.5

Difference between revisions of "Managing Component Updates (Component release files)"

From Joomla! Documentation

m (Contributors)
(Remove 1.6 and 1.7 tags)
(29 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{review}}
+
{{version/tutor|2.5}}{{Chunk:Managing Component Updates - Contents}}{{review}}
This tutorial is for Joomla {{JVer|1.6}}
+
== Articles in this series ==
+
* [[Managing_Component_Updates_with_Joomla!1.6_-_Part_1|Overview]]
+
* [[Managing_Component_Updates_with_Joomla!1.6_-_Part_2|Manifest file]]
+
* [[Managing_Component_Updates_with_Joomla!1.6_-_Part_3|Script.php]]
+
* [[Managing_Component_Updates_with_Joomla!1.6_-_Part_4|Update SQL files]]
+
* [[Managing_Component_Updates_with_Joomla!1.6_-_Part_5|Component release files]]
+
* [[Managing_Component_Updates_with_Joomla!1.6_-_Part_6|How to use this example]]
+
 
+
 
== Component Release Files ==
 
== Component Release Files ==
Included in this example are zip files for three releases. You will need to download all three to exercise the features of this example.
+
Included in this example are zip files for four releases. You will need to download all four to exercise the features of this example.
  
 
=== Version 1.0 ===
 
=== Version 1.0 ===
 
The zip file can be downloaded from  
 
The zip file can be downloaded from  
[http://joomlacode.org/gf/download/frsrelease/14931/65113/democompupdate_10.zip democompupdate_10.zip].
+
[http://joomlacode.org/gf/download/frsrelease/16495/74511/democompupdate_10.zip democompupdate_10.zip].
 
It contains files:
 
It contains files:
 
* democompupdate_10/democompupdate.xml
 
* democompupdate_10/democompupdate.xml
Line 29: Line 20:
 
=== Version 1.0.j3 ===
 
=== Version 1.0.j3 ===
 
The zip file can be downloaded from  
 
The zip file can be downloaded from  
[http://joomlacode.org/gf/download/frsrelease/14940/65135/democompupdate_10j3.zip democompupdate_10j3.zip].  It is identical to version 1.0, except that is requires Joomla 3.0.  The intent is that this will cause an abort of the install or update.
+
[http://joomlacode.org/gf/download/frsrelease/16495/74512/democompupdate_10j3.zip democompupdate_10j3.zip].  It is identical to version 1.0, except that is requires Joomla 30.0.  The intent is that this will cause an abort of the install or update.
Diff's of ''democompupdate_10.zip'' and ''democompupdate_10j3.zip'' show how files have changed.
+
Diff's of ''democompupdate_10'' and ''democompupdate_10j3'' show how files have changed.
 
<blockquote>
 
<blockquote>
 
<pre>
 
<pre>
diff -r democompupdate_10/script.php democompupdate_10j3/script.php
+
diff -r democompupdate_10/democompupdate.xml democompupdate_10j3/democompupdate.xml
20c20
+
2c2
< // this component does not work with Joomla releases prior to 1.6
+
< <extension type="component" version="1.6" method="new">
 
---
 
---
> // this component does not work with Joomla releases prior to 3.0
+
> <extension type="component" version="30.0" method="new">
23,24c23,24
+
< if( version_compare( $jversion->getShortVersion(), '1.6', 'lt' ) ) {
+
< Jerror::raiseWarning(null, 'Cannot install com_democompupdate in a Joomla release prior to 1.6');
+
---
+
> if( version_compare( $jversion->getShortVersion(), '3.0', 'lt' ) ) {
+
> Jerror::raiseWarning(null, 'Cannot install com_democompupdate in a Joomla release prior to 3.0');
+
 
</pre>
 
</pre>
 
</blockquote>
 
</blockquote>
 +
 
=== Version 1.1.1 ===
 
=== Version 1.1.1 ===
 +
 
The zip file can be downloaded from  
 
The zip file can be downloaded from  
[http://joomlacode.org/gf/download/frsrelease/14932/65114/democompupdate_111.zip democompupdate_111.zip].
+
[http://joomlacode.org/gf/download/frsrelease/16495/74513/democompupdate_111.zip democompupdate_111.zip].
Diff's of ''democompupdate_10.zip'' and ''democompupdate_111.zip'' show how files have changed.
+
Diff's of ''democompupdate_10'' and ''democompupdate_111'' show how files have changed.
 
<blockquote>
 
<blockquote>
 
<pre>
 
<pre>
Line 68: Line 55:
 
---
 
---
 
> <version>1.1.1</version>
 
> <version>1.1.1</version>
diff -r democompupdate_10/script.php democompupdate_111/script.php
 
11c11
 
< private $release = '1.0';
 
---
 
> private $release = '1.1.1';
 
 
diff -r democompupdate_10/site/views/democompupdate/view.html.php democompupdate_111/site/views/democompupdate/view.html.php
 
diff -r democompupdate_10/site/views/democompupdate/view.html.php democompupdate_111/site/views/democompupdate/view.html.php
 
25c25
 
25c25
Line 78: Line 60:
 
---
 
---
 
> $myRev = '1.1.1';
 
> $myRev = '1.1.1';
 +
 
</pre>
 
</pre>
 
</blockquote>
 
</blockquote>
Line 83: Line 66:
 
=== Version 1.3 ===
 
=== Version 1.3 ===
 
The zip file can be downloaded from  
 
The zip file can be downloaded from  
[http://joomlacode.org/gf/download/frsrelease/14933/65115/democompupdate_13.zip democompupdate_13.zip].
+
[http://joomlacode.org/gf/download/frsrelease/16495/74514/democompupdate_13.zip democompupdate_13.zip].
Diff's of ''democompupdate_111.zip'' and ''democompupdate_13.zip'' show how files have changed.
+
Diff's of ''democompupdate_111'' and ''democompupdate_13'' show how files have changed.
 
<blockquote>
 
<blockquote>
 
<pre>
 
<pre>
Line 102: Line 85:
 
---
 
---
 
> <version>1.3</version>
 
> <version>1.3</version>
diff -r democompupdate_111/script.php democompupdate_13/script.php
 
11c11
 
< private $release = '1.1.1';
 
---
 
> private $release = '1.3';
 
 
diff -r democompupdate_111/site/views/democompupdate/view.html.php democompupdate_13/site/views/democompupdate/view.html.php
 
diff -r democompupdate_111/site/views/democompupdate/view.html.php democompupdate_13/site/views/democompupdate/view.html.php
 
25c25
 
25c25
Line 118: Line 96:
 
*[[User:sm990|Kim Eckert]]
 
*[[User:sm990|Kim Eckert]]
  
[[category:Joomla! 1.6]]
+
[[Category:Joomla! 1.6]]
[[Category:Tutorials]]
+
[[Category:Joomla! 1.7]]
 +
[[Category:Joomla! 2.5]]
 
[[Category:Component Development]]
 
[[Category:Component Development]]

Revision as of 07:03, 29 April 2013

Contents

Copyedit.png
This Page Needs Your Help

This page is tagged because it NEEDS REVIEW. You can help the Joomla! Documentation Wiki by contributing to it.
More pages that need help similar to this one are here. NOTE-If you feel the need is satistified, please remove this notice.


Component Release Files

Included in this example are zip files for four releases. You will need to download all four to exercise the features of this example.

Version 1.0

The zip file can be downloaded from democompupdate_10.zip. It contains files:

  • democompupdate_10/democompupdate.xml
  • democompupdate_10/script.php
  • democompupdate_10/admin/sql/install_data.sql
  • democompupdate_10/admin/sql/uninstall.sql
  • democompupdate_10/admin/sql/updates/1.0.sql
  • democompupdate_10/site/controller.php
  • democompupdate_10/site/democompupdate.php
  • democompupdate_10/site/models/democompupdate.php
  • democompupdate_10/site/views/democompupdate/view.html.php
  • democompupdate_10/site/views/democompupdate/tmpl/default.php

Version 1.0.j3

The zip file can be downloaded from democompupdate_10j3.zip. It is identical to version 1.0, except that is requires Joomla 30.0. The intent is that this will cause an abort of the install or update. Diff's of democompupdate_10 and democompupdate_10j3 show how files have changed.

diff -r democompupdate_10/democompupdate.xml democompupdate_10j3/democompupdate.xml
2c2
< <extension type="component" version="1.6" method="new">
---
> <extension type="component" version="30.0" method="new">

Version 1.1.1

The zip file can be downloaded from democompupdate_111.zip. Diff's of democompupdate_10 and democompupdate_111 show how files have changed.

diff -r democompupdate_10/admin/sql/install_data.sql democompupdate_111/admin/sql/install_data.sql
10c10
< (1,'1.0');
---
> (1,'1.1.1');
Only in democompupdate_111/admin/sql/updates: 1.1.1.sql
Only in democompupdate_111/admin/sql/updates: 1.1.sql
diff -r democompupdate_10/democompupdate.xml democompupdate_111/democompupdate.xml
2c2
< <extension type="component" version="1.6" method="new">
---
> <extension type="component" version="1.6" method="upgrade">
8c8
<    <version>1.0</version>
---
>    <version>1.1.1</version>
diff -r democompupdate_10/site/views/democompupdate/view.html.php democompupdate_111/site/views/democompupdate/view.html.php
25c25
<            $myRev = '1.0';
---
>            $myRev = '1.1.1';

Version 1.3

The zip file can be downloaded from democompupdate_13.zip. Diff's of democompupdate_111 and democompupdate_13 show how files have changed.

diff -r democompupdate_111/admin/sql/install_data.sql democompupdate_13/admin/sql/install_data.sql
10c10,12
< (1,'1.1.1');
---
> (1,'1.1.1'),
> (2,'1.2.1'),
> (3,'1.3');
Only in democompupdate_13/admin/sql/updates: 1.2.1.sql
Only in democompupdate_13/admin/sql/updates: 1.2.sql
Only in democompupdate_13/admin/sql/updates: 1.3.sql
diff -r democompupdate_111/democompupdate.xml democompupdate_13/democompupdate.xml
8c8
<    <version>1.1.1</version>
---
>    <version>1.3</version>
diff -r democompupdate_111/site/views/democompupdate/view.html.php democompupdate_13/site/views/democompupdate/view.html.php
25c25
<            $myRev = '1.1.1';
---
>            $myRev = '1.3';

Contributors