Home | Wiki | OI 1.x Docs | OI 2.x Docs |
OpenInteract2::Manage::Website::ThemeDump - Dump a theme to a themeball
#!/usr/bin/perl
use strict; use OpenInteract2::Manage;
my $website_dir = '/home/httpd/mysite'; my $task = OpenInteract2::Manage->new( 'dump_theme', { website_dir => $website_dir, theme_id => 5, theme_file => 'my_themeball' } ); my $status = $task->execute; print "Dumped? $status->{is_ok}\n", "Filename $status->{filename}\n", "$status->{message}\n"; }
This task dumps a theme to a "themeball" which can be installed to any other OpenInteract system.
In addition to 'website_dir' you must define:
ID of theme you want to dump
Filename for dumped theme (will be overwritten if it exists).
In addition to the normal entries, each status hashref includes:
Set to the filename used for the dump; empty if the action failed.
Copyright (c) 2002-2003 Chris Winters. All rights reserved.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Chris Winters <chris@cwinters.com>
Generated from the OpenInteract 1.99_03 source.