function perform() { if (!is_a($this->service_node, 'ContentServiceNode')) { return LIMB_STATUS_ERROR; } $content =& $this->service_node->getContentPart(); $map_content_command = new MapDataspaceToObjectCommand($this->content_map, $content); $map_content_command->perform(); $map_service_node_command = new MapDataspaceToServiceNodeCommand($this->service_node); $map_service_node_command->perform(); return LIMB_STATUS_OK; }
function perform() { if (!is_a($this->service_node, 'ServiceNode')) { return LIMB_STATUS_ERROR; } $node =& $this->service_node->getNodePart(); $service =& $this->service_node->getServicePart(); $this->_processPath(); $node_map = array('parent_node_id' => 'parent_id', 'identifier' => 'identifier'); $map_node_command = new MapDataspaceToObjectCommand($node_map, $node); $map_node_command->perform(); $service_map = array('title' => 'title', 'service_name' => 'name'); $map_service_command = new MapDataspaceToObjectCommand($service_map, $service); $map_service_command->perform(); return LIMB_STATUS_OK; }
function performDefaultMapDataspaceToEntity() { include_once LIMB_DIR . '/core/commands/MapDataspaceToObjectCommand.class.php'; $command = new MapDataspaceToObjectCommand(array_flip($this->content_map), $this->entity); return $command->perform(); }