Skip to content
Guilherme Barile edited this page Feb 27, 2014 · 1 revision

The application initialization file is included automatically by the framework and should define the domains, plugins and other code dependencies.

register_domain(id, params)

Domains are defined using the register_domain(id, params) directive. The only required parameter is which class should handle this domain's requests, other configuration parameters are handler-specific.

register_domain(<id>, array(
    "handler" => <OW_HandlerImpl>
);

Objectiveweb includes the TableStore and ObjectStore handlers by default, additional handlers can be implemented by extending the OW_Handler class.

Services

    "with" => array(<service>, ...)

Defaults to array('acl', 'attachments')

TableStore parameters

array(
    "handler" => "Tablestore"

SQL Table

    "table" => <sql table name>

hasMany

    "hasMany" => array(
        "table" => <foreign table>
    )

hasOne

    "hasOne" => array(
        "table" => <foreign table>
    )

belongsTo

    "belongsTo" => array(
        "table" => <foreign table>
    )

Table inheritance

    "extends" => <primary table>

Clone this wiki locally