function ServiceNodeMapper() { parent::EntityDataMapper(); $node_mapper = new CompositeMapper(); $node_mapper->registerMapper(new LimbHandle(LIMB_DIR . '/core/data_mappers/TreeNodeDataMapper')); $node_mapper->registerMapper(new LimbHandle(LIMB_DIR . '/core/data_mappers/NodeConnectionMapper')); $this->registerPartMapper('node', $node_mapper); $this->registerPartMapper('service', new LimbHandle(LIMB_DIR . '/core/data_mappers/ServiceLocationMapper')); }
function ContentServiceNodeMapper($table_class_name) { parent::EntityDataMapper(); $node_mapper = new CompositeMapper(); $node_mapper->registerMapper(new LimbHandle(LIMB_DIR . '/core/data_mappers/TreeNodeDataMapper')); $node_mapper->registerMapper(new LimbHandle(LIMB_DIR . '/core/data_mappers/NodeConnectionMapper')); $this->registerPartMapper('node', $node_mapper); $this->registerPartMapper('service', new LimbHandle(LIMB_DIR . '/core/data_mappers/ServiceLocationMapper')); $this->registerPartMapper('content', new LimbHandle(LIMB_DIR . '/core/data_mappers/OneTableObjectMapper', array($table_class_name))); }