Socialtext::WikiObject::Factory(3pm)

Socialtext::WikiObject::Factory3pm

Create an approprate wikiobject from magic tags

Usage

  # Set a magic tag to define WikiObject subclass
  $rester->put_page($page_name, $page_text);
  $rester->put_pagetag($page_name, '.wikiobject=YAML');
  # Use the factory to create the appropriate class
  my $wo = Socialtext::WikiObject::Factory->new(
               rester => $rester,
               page => $page_name,
           );
  isa_ok $wo, 'Socialtext::WikiObject::YAML';

Overview

Socialtext::WikiObject::Factory reads magic tags on a page, and then creates a WikiObject of the appropriate class, as defined in the magic tag.

Functions

new( %opts )

Create a new wiki object. Options:

rester

Users must provide a Socialtext::Resting object setup to use the desired workspace and server.

page

The page to load. Mandatory.

Releases

Unchanged in 2 releases since Debian 6.0 (Squeeze).

  1. 6.0–7

Author

Luke Closs, "<luke.closs at socialtext.com>"

Bugs

Please report any bugs or feature requests to <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Socialtext-Resting-Utils>. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

From libsocialtext-resting-utils-perl 0.21-2 in Debian 7 (Wheezy). Parsed by carta from the page's man source.