Difference between revisions of "Version 1.6 Developer Notes"
From Joomla! Documentation
Masterchief (talk | contribs) (New page: {{incomplete}} {{RightTOC}} Category:Development Compilation of developer notes on changes in 1.6. == Framework == JDatabase::setQuery casts the sql variable to a string. This allow...) |
|||
Line 11: | Line 11: | ||
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' ); | ||
+ | |||
+ | JFile::write uses 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 == | == Components == |
Revision as of 21:56, 10 September 2008
This page has been archived. This page contains information for an unsupported Joomla! version or is no longer relevant. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.
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 Pasamio (talk| contribs) 15 years ago. (Purge)
Compilation of developer notes on changes in 1.6.
Framework[edit]
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' );
JFile::write uses 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