SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 236 | Next

James Kennard

"Mastering Joomla! 1.5 Extension and Framework Development"

PHP and INI formats are restricted to a maximum
depth of zero and one respectively. XML has no depth restrictions.
This might make XML seems like the most suitable; XML, however, is the most
intensive format to parse. Hence, we should use the format that best suits the data
we are storing.
The next three examples demonstrate how we represent the registry tree, which we
defined earlier, in three different formats. Take note of the data loss within the PHP
and INI format examples. This is an example of a PHP string:
class JConfig
{
var $total = '10';
}
?>
This is an example of an INI string:
total=10
[bird]
chaffinch=1
swan=2
[mammal]
badger=3
Chapter 7
[ 177 ]
This is an example of an XML string:



1
2


3

1
3


10

A complete description of the JRegistry class is available in the Appendix.


Pages:
224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248
druga wojna światowa Free English grammar and study guid hotel jelenia góra Russian bride counter strike 1.6