Version 1.6 Developer Notes: Difference between revisions
From Joomla! Documentation
Masterchief (talk | contribs) No edit summary |
|||
| Line 11: | Line 11: | ||
== Framework == | == Framework == | ||
=== JAuthorization === | |||
Remove <code>JAuthorization::_mos_add_acl</code>. | |||
Added <code>JAuthorization::getUserAccessLevels( $section [, $action = 'view'] )</code>. | |||
=== JDatabase === | |||
JDatabase::setQuery casts the sql variable to a string. This allows you to pass an object that implements the __toString magic method. | JDatabase::setQuery casts the sql variable to a string. This allows you to pass an object that implements the __toString magic method. | ||
=== JFile === | |||
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 | |||
=== JModel === | |||
JModel::getState will now take an optional second argument to set the default. | JModel::getState will now take an optional second argument to set the default. | ||
$value = $model->getState( 'foo', 'bar' ); | $value = $model->getState( 'foo', 'bar' ); | ||
JModel has an addition contruction option and internal variable <code>__state_set</code>. This is used to lazy-load model initialisation. | |||
=== New API === | |||
Added <code>JTableTree</code> as an abstract class for tree-based tables. | Added <code>JTableTree</code> as an abstract class for tree-based tables. | ||
Made JObject abstract. It can no longer be directly instantiated. Use JStdClass instead. | Made JObject abstract. It can no longer be directly instantiated. Use JStdClass instead. | ||
Revision as of 22:27, 18 October 2008
This article or section is incomplete, which means it may be lacking information. You are welcome to assist in its completion by editing it as well. If this article or section has not been edited in several days, please consider helping complete the content.
This article was last edited by Masterchief (talk| contribs) 17 years ago. (Purge)
Compilation of developer notes on changes in 1.6.
Schema
Added ACL tables (todo - list them) Removed jos_groups table
Framework
JAuthorization
Remove JAuthorization::_mos_add_acl.
Added JAuthorization::getUserAccessLevels( $section [, $action = 'view'] ).
JDatabase
JDatabase::setQuery casts the sql variable to a string. This allows you to pass an object that implements the __toString magic method.
JFile
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
JModel
JModel::getState will now take an optional second argument to set the default. $value = $model->getState( 'foo', 'bar' );
JModel has an addition contruction option and internal variable __state_set. This is used to lazy-load model initialisation.
New API
Added JTableTree as an abstract class for tree-based tables.
Made JObject abstract. It can no longer be directly instantiated. Use JStdClass instead.
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
TODO
Don't forget to do this:
- Access Level links in backend lists need to be refactored to support the new levels available in the jos_core_acl_axo_groups table.