Query: socialtext::wikiobject::factory
OS: debian
Section: 3pm
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
Socialtext::WikiObject::Factory(3pm) User Contributed Perl Documentation Socialtext::WikiObject::Factory(3pm)NAMESocialtext::WikiObject::Factory - Create an approprate WikiObject from Magic TagsSYNOPSIS# 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';DESCRIPTIONSocialtext::WikiObject::Factory reads magic tags on a page, and then creates a WikiObject of the appropriate class, as defined in the magic tag.FUNCTIONSnew( %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.AUTHORLuke Closs, "<luke.closs at socialtext.com>"BUGSPlease 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. COPYRIGHT & LICENSE Copyright 2007 Luke Closs, all rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.10.1 2009-01-09 Socialtext::WikiObject::Factory(3pm)