Getting started

For Kit Builders

Using Tools

Tools are a way to add generic functionalities to Kits. They are named instances loading their configuration from the kit they belong to.

They are retrieved as Kit instance members :

// getting the "example" kit instance $kit=&webappkit::getKit('example'); // calling method "connect" of the kit's tool member "dblink" $kit->dblink->connect();

Here the example kit provide a service which it does not implement itself through its dblink member tool. Only the service configuration data is taken from the kit, source code is provided by another kit listed as a dependancy.

How it works

Kit's metadata file lists Tools. Keys are Tool names and value their class :

[tools] name = "class"

Kit may then provide a configuration file for the Tool which have to be named name.tool.ini