Version 1.6 Developer Notes

From Joomla! Documentation
(Difference between revisions)
Jump to: navigation, search
Line 4: Line 4:
  
 
Compilation of developer notes on changes in 1.6.
 
Compilation of developer notes on changes in 1.6.
 +
 +
== Schema ==
 +
 +
Added ACL tables (todo - list them)
 +
Removed jos_groups table
  
 
== Framework ==
 
== Framework ==
Line 15: Line 20:
  
 
== Components ==
 
== Components ==
 +
 +
=== Join for access level ===
 +
 +
Before:
 +
<pre>LEFT JOIN #__groups AS g ON g.id = c.access</pre>
 +
 +
After:
 +
<pre>LEFT JOIN #__core_acl_axo_groups AS g ON g.value = a.access</pre>
  
  
Line 21: Line 34:
  
 
== Legacy Mode ==
 
== Legacy Mode ==
 +
 +
Only available in legacy mode (to be dropped in future versions):
 +
 +
* <code>global $mainframe</code> - Use <code>$app = &JFactory::getApplication()</code> instead.
 +
* JTemplate (patTemplate completely deprecated)
  
  
 
== Files/Features Dropped ==
 
== Files/Features Dropped ==

Revision as of 21:21, 9 October 2008

Note

Please note that the content on this page is currently incomplete. Please treat it as a work in progress.

This article was last edited by Masterchief (talk| contribs) 4 years ago. (Purge)

Contents

Compilation of developer notes on changes in 1.6.

Schema

Added ACL tables (todo - list them) Removed jos_groups table

Framework

JDatabase::setQuery casts the sql variable to a string. This allows you to pass an object that implements the __toString magic method.

JModel::getState will now take an optional second argument to set the default. $value = $model->getState( 'foo', 'bar' );

Both JFile::write and JFTP::write now use a reference for its second argument. Code like JFile::write($filename,'string'); will fail, however $data = 'string'; JFile::write($filename, $data); will work for both 1.5 and 1.6

Components

Join for access level

Before:

LEFT JOIN #__groups AS g ON g.id = c.access

After:

LEFT JOIN #__core_acl_axo_groups AS g ON g.value = a.access


Administrator:Users

Legacy Mode

Only available in legacy mode (to be dropped in future versions):

  • global $mainframe - Use $app = &JFactory::getApplication() instead.
  • JTemplate (patTemplate completely deprecated)


Files/Features Dropped

Personal tools
Namespaces

Variants
Actions
Navigation
Joomla! Sites
Toolbox