Umm...
Look at this configuration file for example, which I have for a root action handler,
PHP Code:
$config = array(
'body' => array(
'handler' => 'home/',
'classid' => 'HomePageBodyActionHandler',
'configs' => '',
'statics' => array(
'title' => 'Welcome to our Home Page',
'heading' => 'Welcome to our Home Page',
'description' => 'Welcome to our home page, where you can learn more about us...'
) ),
'menu' => array(
'handler' => 'menu/',
'classid' => 'MenuActionHandler',
'configs' => '',
'statics' => ''
)
);
For example, if this was my home page, and this being the root configuration file for the root action handler, then the root has 2 children, ie Body and Menu.
These are pluggable in their nature. I can plugin any action handler without going near any script. There is also the abstraction, that the base action handler doesn't actually expect any configuration file at all.
It is entirely optional in that regards. For example, the Body action handler in it's self has no child action handlers. Why? Well, the array index 'configs' has no file specified, to which configuration that action handler (Body in this case) should use. If I wanted the Body to have child action handlers, I would have something like this in the configuration file, ie
PHP Code:
...
'body' => array(
'handler' => 'home/',
'classid' => 'HomePageBodyActionHandler',
'configs' => 'pathname/leading/to/config/config.php',
'statics' => ...
Then, that configuration file would be fetched, and the Body child action handlers would be created. On, the point of the earlier abstraction of the base action handler, a given action handler in it's self can modify it's child action handlers, and their configuration.
Ie, if there is to be a configuration file passed or not, on the fly... Ultimately the configuration I am saying, does not actually need to come from a file, it could just as well come from the action handler it's self as well 
To me, that is what pluggable means, but other members have their own views on the subject, which at times, has been heavily debated in the past.
Bookmarks