Skip to content

Commit

Permalink
Merged in update branch
Browse files Browse the repository at this point in the history
git-svn-id: http://joomlacode.org/svn/joomla/development/trunk@11194 6f6e1ebd-4c2b-0410-823f-f34bde69bce9
  • Loading branch information
pasamio committed Oct 22, 2008
1 parent 0f1ca49 commit 6a3da60
Show file tree
Hide file tree
Showing 145 changed files with 10,095 additions and 719 deletions.
170 changes: 170 additions & 0 deletions CHANGELOG.php
Expand Up @@ -98,23 +98,76 @@
- Removed JAuthorization::_mos_add_acl
+ Added JAuthorization::getUserAccessLevels

06-Oct-2008 Sam Moffatt
+ Added targetplatform and targetplatformversion to collection extension definition
^ Target platform version now supports regexp for both collection and extension updates
^ Changed component discover_install to return extension ID

04-Oct-2008 Toby Patterson
# Fixed final step of installation, completed removal of patTemplates from Installer
- Removed global $mainframe from the framework files, except where other extensions will be loaded

03-Oct-2008 Sam Moffatt
+ Added extra triggers to example installer plugin
^ Changed installer on onBeforeExtensionInstall trigger call to work as documented
+ Added SCP support to JFactory::getStream
^ Fixed a few JFile::write instance not using stream in the filesystem tree
^ Changed some of the warning messages to be more descriptive
# Fixed extraneous database in SQL file
^ Added filtering to the product name (from JVersion) when comparing to avoid case or symbol issues in update code

02-Oct-2008 Toby Patterson
- Fixed bug with JFTP and check for connection
# [#12699] Refactor installation application
- Most patTemplate code removed
- Migrator currently broken, may be redesigned, discussion pending

02-Oct-2008 Sam Moffatt
- Removed File Stream class
+ Added htaccess.txt file for administrator/backups folder to protect it
+ Added some todos
! JStream support is complete
+ Started primitive work on supporting more than just FTP (e.g. SCP)
+ Added various options to the stream class to handle operations like copies
^ Changed JFile and JFolder to support streams
^ Changed tar and zip archivers to write files out using stream support
+ Component installer deletes old files
^ Changed component install and update functions to return extension ID

30-Sep-2008 Sam Moffatt
+ Added JInstaller::findDeletedFiles

29-Sep-2008 Chantal Bisson
- Removed duplicates of the language files for com_contactdirectory
# Fixed notice about $this->type not initialized on line 199 /administrator/components/com_categories/models/categories.php
# Fixed notice about $filter not initialized on line 23 /administrator/components/com_categories/views/tmpl/default.php
^ Changed check() contactdirectory/tables/contact.php posible to add contacts with the same name
^ Changed view for category and categories in com_contactdirectory
# Fixed redirect with router after sending mail in com_contactdirectory

29-Sep-2008 Sam Moffatt
+ Added JUtility::array_unshift_ref to allow unshifting of references
+ Added filter and context support to JStream

25-Sep-2008 Sam Moffatt
+ Added File Stream class
+ Added extension installer plugin triggers (see http://docs.joomla.org/Extension_Installer/Triggers)

24-Sep-2008 Sam Moffatt
^ bzip2 and gzip archive formats now run stream
^ tar archive handler uses streams
^ updated to references to point to www.php.net instead of au.php.net

22-Sep-2008 Sam Moffatt
! Archives (particularly tar and bzip2) may be broken in this revision
+ Added file system helper class with various FTP, stream and filter related operations
+ Added stream class to replace old FTP layer system; uses PHP streams instead
+ Added streams folder to hold custom J! streams
+ Added support folder to hold support files for custom J! streams
^ Changed JFile::write and JFTP::write to use references to gain back some memory
^ Changed JObject::setProperties to use the set function to set values instead of directly setting them
^ Changed JInstallerHelper's error tracking to check the previous state of track_errors before setting and resetting it
+ Added JVersion::getUserAgent to hold user agent generation

22-Sep-2008 Chantal Bisson
^ Changed the column 'name' in the #__contactdirectory_fields table to 'alias'
Expand Down Expand Up @@ -146,6 +199,113 @@
- Remove old 1.5 RC sql diffs
^ JModel::getState will now take an optional second argument to set a default
^ JDatbase::setQuery cast the sql variable to a string allowing for the __toString interface to be used if an object is passed

18-Aug-2008 Sam Moffatt
+ Added purge cached updates to installer controller
^ Changed jos_extensions state field to use a -1 (discovered), 0 (normal installed), 1 ()
^ Added support for checks against installed extensions or possible new extensions
^ Cleaned up extensions list view
+ Added find option for extensions
^ Collection updates now work properly
+ Added Update table
^ Fixed updater to support linking updates to an update site

13-Aug-2008 Sam Moffatt
^ Work on collection and extension update adapters
+ Added ability for adapter to add extra update sites to list on the fly

12-Aug-2008 Sam Moffatt
+ Added stringstream library
+ Added updater and dependency stubs
^ Update view now works
+ Created an adapter and adapterinstance template
+ Moved migration SQL to its own file

10-Aug-2008 Sam Moffatt
^ Changed "Install/Uninstall" to be "Extension Manager"

08-Aug-2008 Sam Moffatt
^ Typo fix for loading template language
+ Added start of updater

01-Aug-2008 Sam Moffatt
+ Added extension based language file support
# Changed libraries/joomla/language/language.php to not overwrite strings with default
^ Working on component discover_install functionality

30-Jul-2008 Sam Moffatt
+ Added plugin, module and library discover and discover_install functionality
^ Use checkbox for discovered extensions
^ Fixed plugins display to exclude 'discovered' extensions
# Fixed issue where menu would pick up discovered and installed extensions if an extension was available in both states

29-Jul-2008 Sam Moffatt
+ Added discover_install functionality to templates and com_installer
+ Added purge functionality for discovery cache
+ Started on discover_install for component installation adapter

25-Jul-2008 Sam Moffatt
+ Added a state field and some indicies to the jos_extensions table
+ Added discover and discover_install support in the installer class
+ Discover tab in admininistrator:com_installer now goes somewhere
+ Discover function works for templates
+ Added an icon to the Khepri template CSS

23-Jul-2008 Sam Moffatt
^ Plugins now have their own directory with their group
+ Plugins now have install triggers and SQL support
+ Packages can handle folders as well as archives
^ Altered #__extensions.data to be called 'custom_data' and 'system_data'


22-Jul-2008 Sam Moffatt
^ Clean installation now adding entries for plugins, modules and components
- Removed plugins table completely
+ Modules now can use SQL and have full install, update and uninstall triggers
+ Modules now have an update function
^ Changed the parseSQLQueries code to use extension_root instead of extension_administrator
^ Changed component installer adapter to set extension_root to extension_administrator
- Removed old comments
# Fixed rollback bug in installer handler for extensions
+ Added File and SQL adapters as copies of libraries and components respectively (nonfunctional)
^ Set svn:keywords recursively to Id for /libraries/joomla/installer

21-Jul-2008 Sam Moffatt
+ Gave modules install trigger set
^ Changed triggers to use elements (e.g. com_alpha) instead of clean names to ensure uniqueness
+ Added warnings tab
^ Converting plugins to extensions in more places
^ Changed version string
^ Changed components menu to use extenions table instead of components

18-Jul-2008 Sam Moffatt
+ Components now use the extensions table for install and uninstall
+ Added a simple migration script for components, modules, plugins

17-Jul-2008 Sam Moffatt
^ Converting plugins to use jos_extensions on install and uninstall
^ Converted com_plugins to use jos_extensions

16-Jul-2008 Sam Moffatt
- Hid old extension specific tabs from com_installer
+ Added 'discover' tab to find new extensions/installed extensions
$ Added language strings
^ Changed modules to use jos_extensions on uninstall
^ Changed libraries to use jos_extensions when installing and uninstalling

15-Jul-2008 Sam Moffatt
+ Added jos_extensions table
+ Added 'manage' tab to installer
^ Changed modules to use jos_extensions on install

14-Jul-2008 Sam Moffatt
^ Strings in extension installs can now be translated
^ Merged in the 1.5.4 language installer changes

10-Jul-2008 Sam Moffatt
# Fixed [#10374] setAdapter pass by reference from 1.5 bug tracker
- Removed excess calls to set the extension.message in the component adapter
^ Changed some legacy references to mosinstall to extension

25-Jun-2008 Johan Janssens
- Removed libraries/bitfolge/vcard
Expand All @@ -159,6 +319,16 @@
08-Jun-2008 Johan Janssens
- Removed deprecated functions from JApplication

05-Jun-2008 Sam Moffatt
+ Added packages to installer UI
^ Altered package format in manifest handler
^ Altered library format in manifest handler

28-May-2008 Sam Moffatt
+ Added libraries to system
+ Added packages to system (non-functional UI)
^ Changed language files to handle new features

19-May-2008 Johan Janssens
- Removed phpinputfilter library
- Removed phputf8, moved mbstring and iconv implementation into JString
Expand Down
2 changes: 2 additions & 0 deletions administrator/backups/htaccess.txt
@@ -0,0 +1,2 @@
Order Allow,Deny
Deny from All
22 changes: 12 additions & 10 deletions administrator/components/com_admin/admin.xml
@@ -1,12 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<install type="component" version="1.5.0">
<extension type="component" version="1.6">
<name>Admin</name>
<author>Joomla! Project</author>
<creationDate>March 2008</creationDate>
<copyright>(C) 2005 - 2008 Open Source Matters. All rights reserved.</copyright>
<license>http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL</license>
<authorEmail>admin@joomla.org</authorEmail>
<authorUrl>www.joomla.org</authorUrl>
<version>1.5.0</version>
<description>This component manages sections</description>
</install>
<author>Joomla! Project</author>
<creationDate>March 2008</creationDate>
<copyright>(C) 2005 - 2008 Open Source Matters. All rights reserved.</copyright>
<license>http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL</license>
<authorEmail>admin@joomla.org</authorEmail>
<authorUrl>www.joomla.org</authorUrl>
<version>1.6.0</version>
<description>This component handles displaying the CHANGELOG, the help system and system information</description>
<administrator />
</extension>

19 changes: 10 additions & 9 deletions administrator/components/com_categories/categories.xml
@@ -1,12 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<install type="component" version="1.5.0">
<extension type="component" version="1.6">
<name>Categories</name>
<author>Joomla! Project</author>
<author>Joomla! Project</author>
<creationDate>December 2007</creationDate>
<copyright>(C) 2005 - 2008 Open Source Matters. All rights reserved.</copyright>
<license>http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL</license>
<authorEmail>admin@joomla.org</authorEmail>
<authorUrl>www.joomla.org</authorUrl>
<version>1.5.0</version>
<description>This component manages sections</description>
</install>
<copyright>(C) 2005 - 2008 Open Source Matters. All rights reserved.</copyright>
<license>http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL</license>
<authorEmail>admin@joomla.org</authorEmail>
<authorUrl>www.joomla.org</authorUrl>
<version>1.6.0</version>
<description>This component manages categories</description>
<administrator />
</extension>
11 changes: 11 additions & 0 deletions administrator/components/com_checkin/checkin.xml
@@ -0,0 +1,11 @@
<extension type="component" version="1.6">
<name>Checkin</name>
<author>Joomla! Project</author>
<copyright>(C) 2005 - 2008 Open Source Matters. All rights reserved.</copyright>
<license>http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL</license>
<authorEmail>admin@joomla.org</authorEmail>
<authorUrl>www.joomla.org</authorUrl>
<version>1.6.0</version>
<description>Checkin Component</description>
<administrator />
</extension>
3 changes: 3 additions & 0 deletions administrator/components/com_config/controllers/component.php
Expand Up @@ -49,7 +49,10 @@ function edit()

// load the component's language file
$lang = & JFactory::getLanguage();
// 1.5 or core
$lang->load( $component );
// 1.6 support for component specific languages
$lang->load( 'joomla', JPATH_ADMINISTRATOR.DS.'components'.DS.$component);

$model = $this->getModel('Component' );
$view = $this->getView('Component');
Expand Down
5 changes: 3 additions & 2 deletions administrator/components/com_config/helpers/html/config.php
Expand Up @@ -201,9 +201,10 @@ public static function editors($selected = '', $name = 'editor')
$db = &JFactory::getDBO();
$db->setQuery(
'SELECT element AS value, name AS text'
.' FROM #__plugins'
.' FROM #__extensions'
.' WHERE folder = '.$db->Quote('editors')
.' AND published = 1'
.' AND type = "plugin" '
.' AND enabled = 1'
.' ORDER BY ordering, name'
);
$options = $db->loadObjectList();
Expand Down
79 changes: 77 additions & 2 deletions administrator/components/com_installer/controller.php
Expand Up @@ -92,6 +92,35 @@ function manage()
$view->setModel( $model, true );
$view->display();
}

/**
* Discover handler
*/
function discover() {
$model = &$this->getModel('discover');
$view = &$this->getView( 'discover' );
$model->discover();
$ftp =& JClientHelper::setCredentialsFromRequest('ftp');
$view->assignRef('ftp', $ftp);
$view->setModel( $model, true );
$view->display();
}

function discover_install() {
$model = &$this->getModel('discover');
$view = &$this->getView( 'discover' );
$model->discover_install();
$ftp =& JClientHelper::setCredentialsFromRequest('ftp');
$view->assignRef('ftp', $ftp);
$view->setModel( $model, true );
$view->display();
}

function discover_purge() {
$model = &$this->getModel('discover');
$model->purge();
$this->setRedirect('index.php?option=com_installer&task=manage&type=discover', $model->_message);
}

/**
* Enable an extension (If supported)
Expand Down Expand Up @@ -158,8 +187,7 @@ function disable()
* @return void
* @since 1.5
*/
function remove()
{
function remove() {
// Check for request forgeries
JRequest::checkToken() or jexit( 'Invalid Token' );

Expand All @@ -184,4 +212,51 @@ function remove()
$view->setModel( $model, true );
$view->display();
}

// Should probably use multiple controllers here
function update()
{
// Check for request forgeries
JRequest::checkToken() or jexit( 'Invalid Token' );

$type = JRequest::getWord('type', 'components');
$model = &$this->getModel( $type );
$view = &$this->getView( $type );

$ftp =& JClientHelper::setCredentialsFromRequest('ftp');
$view->assignRef('ftp', $ftp);

$uid = JRequest::getVar('uid', array(), '', 'array');

JArrayHelper::toInteger($uid, array());
$result = $model->update($uid);

$view->setModel( $model, true );
$view->display();
}

function update_find() {
// Find updates
// Check for request forgeries
JRequest::checkToken() or jexit( 'Invalid Token' );

$type = JRequest::getWord('type', 'components');
$model = &$this->getModel( $type );
$view = &$this->getView( $type );

$ftp =& JClientHelper::setCredentialsFromRequest('ftp');
$view->assignRef('ftp', $ftp);
$model->purge();
$result = $model->findUpdates();

$view->setModel( $model, true );
$view->display();
}

function update_purge() {
// Purge updates
$model = &$this->getModel('update');
$model->purge();
$this->setRedirect('index.php?option=com_installer&task=manage&type=update', $model->_message);
}
}

0 comments on commit 6a3da60

Please sign in to comment.