Joomla!-开源天空

2009-01-07
您所在的位置: 首页 > Joomla专栏 > 应用 > Joomla! 1.6 版本的近期进展

Joomla! 1.6 版本的近期进展

Joomla! 开源天空  作者:joomla  2008-10-11 23:25
  • 摘要:本文说明了近期Joomla! 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

Remove JAuthorization::_mos_add_acl.

Added JAuthorization::getUserAccessLevels( $section [, $action = 'view'] ).

Added JTableTree as an abstract class for tree-based tables.

JModel has an addition contruction option and internal variable __state_set. This is used to lazy-load model initialisation.

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)


  发表您的文章评论

您的姓名 (昵称)
标题:
评分: 很差一般较好很好
评论:
验证码:
请输入验证码