Prev | Current Page 25 | Next

James Kennard

"Mastering Joomla! 1.5 Extension and Framework Development"

The output is displayed
in a configurable pop-up window and describes data types, and object properties
and methods.
J!Dump comes as two separate extensions: a component, which we use to configure
the functionality of J!Dump, and a system plugin, which defines functions that we
, use to 'dump' data to the J!Dump popup. Both extensions are required in order for
J!Dump to function correctly.
To use J!Dump the plugin must be published. If it is
not, when we attempt to use the J!Dump functions
we will encounter fatal errors.
The most important function in J!Dump is the dump() function. We can pass
a variable to this function and it will be displayed in the popup. This example
demonstrates how we use the dump() function:
// create example object
$object = new JObject();
$object->set('name', 'example');
// dump object to popup
dump($object, 'Example Object');
Chapter 1
[ 15 ]
Using this will create a popup, which looks like this:
Other functions we can use include dumpMessage() (), dumpSysinfo() (),
dumpTemplate() (), and dumpTrace() ().


Pages:
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
Tango Olsztyn dieta light wierszyki szambo betonowe życzenia ślubne