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 232 | Next

James Kennard

"Mastering Joomla! 1.5 Extension and Framework Development"

This helps reduce the overall work that PHP is required to complete.
This provides us with a common way of instantiating globally available
objects that conforms to standards within the Joomla! core.
???
???
???
Extension Design
[ 174 ]
Using the Registry
Joomla! provides us with the class JRegistry; this class enables us to store and
retrieve data using namespaces. Data stored in a JRegistry object is organized using a
hierarchy based on namespaces.
Namespaces are unique hierarchical tree identifiers used to categorize data. Imagine
we want to store the number of sightings of animals in an area. We could use the
following hierarchy:
animal
animal.total
animal.bird
animal.bird.chaffinch
animal.bird.swan
animal.mammal
animal.mammal.badger
animal.mammal.squirrel.red
animal.mammal.squirrel.grey
Based on this example, if we wanted to know how many badgers we have sighted,
we would retrieve the value using the registry path animal.mammal.badger. If we
wanted to know how many mammals we have sighted, we would retrieve the value
using the registry path animal.


Pages:
220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244
hotel jelenia góra Russian bride Free English grammar and study guid powiekszenia wielkoformatowe counter strike 1.6