|
NAMEToader::Gallery - Handle image galleries.VERSIONVersion 0.1.0METHODSnewThis initiates the object.There is one argument is required and this is a Toader object. my $foo = Toader::AutoDoc->new($toader); if ( $foo->error ){ warn('error:'.$foo->error.': '.$foo->errorString); } delConfigThis removes a gallery config for a directory.dirGetThis gets Toader directory this entry is associated with.This will only error if a permanent error is set. This will return undef if no directory has been set. my $dir=$foo->dirGet; if($foo->error){ warn('Error:'.$foo->error.': '.$foo->errorString); } dirSetThis sets Toader directory this entry is associated with.One argument is taken and it is the Toader directory to set it to. my $dir=$foo->dirSet($toaderDirectory); if($foo->error){ warn('Error:'.$foo->error.': '.$foo->errorString); } initThis is initializes the config for a directory. This is automatically called if it has not been done so for a directory.outputPathGetThis returns the output path.my $outputPath=$foo->outputPathGet; if ( $foo->error ){ warn( 'error:'.$foo->error.': '.$foo->errorString ); } outputPathSetThis returns the output path.$foo->outputPathSet( $outputPath ); if ( $foo->error ){ warn( 'error:'.$foo->error.': '.$foo->errorString ); } outputURLgetThis returns the output path.my $outputURL=$foo->outputURLget; if ( $foo->error ){ warn( 'error:'.$foo->error.': '.$foo->errorString ); } outputURLsetThis sets the output URL.my $outputURL=$foo->outputURLget; if ( $foo->error ){ warn( 'error:'.$foo->error.': '.$foo->errorString ); } srcPathGetThis returns the source path.my $srcPath=$foo->srcPath; if ( $foo->error ){ warn('error:'.$foo->error.': '.$foo->errorString); } srcPathSetThis sets the that to search for images.One argument is required and it is a path. $foo->srcPathSet( $srcPath ); if ( $foo->error ){ warn( 'error:'.$foo->error.': '.$foo->errorString ); } srcURLgetThis gets the URL to use for the images.my $srcURLget=$foo->srcURLget; if ( $foo->error ){ warn('error:'.$foo->error.': '.$foo->errorString); } srcURLsetThis sets the URL that is used for linking to the source images.$foo->srcURLset( $url ); if ( $foo->error ){ warn( 'error:'.$foo->error.': '.$foo->errorString ); } renderUpdateDetailsGetReturns if upon rendering it should update image details or not.The return value is a Perl boolean. my $update=$foo->renderUpdateDetailsGet; if ( $foo->error ){ warn('error:'.$foo->error.': '.$foo->errorString); } renderUpdateDetailsSetThis sets wether or note Toader::Render::Gallery->render should update the details or not.This takes a Perl boolean. $foo->renderUpdateDetailsGet( $update ); if ( $foo->error ){ warn('error:'.$foo->error.': '.$foo->errorString); } renderUpdateIndexesGetReturns if upon rendering it should update the indexes or not.The return value is a Perl boolean. my $update=$foo->renderUpdateIndexesGet; if ( $foo->error ){ warn('error:'.$foo->error.': '.$foo->errorString); } renderUpdateIndexesSetThis sets wether or note Toader::Render::Gallery->render should update the indexes or not.This takes a Perl boolean. $foo->renderUpdateIndexesGet( $update ); if ( $foo->error ){ warn('error:'.$foo->error.': '.$foo->errorString); } renderUpdateScaledGetReturns if upon rendering it should update the scaled images or not.The return value is a Perl boolean. my $update=$foo->renderUpdateIndexesGet; if ( $foo->error ){ warn('error:'.$foo->error.': '.$foo->errorString); } renderUpdateScaledSetThis sets wether or note Toader::Render::Gallery->render should update the scaled images or not.This takes a Perl boolean. $foo->renderUpdateIndexesGet( $update ); if ( $foo->error ){ warn('error:'.$foo->error.': '.$foo->errorString); } resolutionSmallGetReturns the small resolution.my $smallRes=$foo->resolutionSmallGet; if ( $foo->error ){ warn('error:'.$foo->error.': '.$foo->errorString); } resolutionSmallSetSets the small resolution.One argument is taken and that is the maximum resolution for a image. If not specified, it resets it to 200. my $smallRes=$foo->resolutionSmallSet( $resolution ); if ( $foo->error ){ warn('error:'.$foo->error.': '.$foo->errorString); } resolutionLargeGetReturns the larg resolution.my $largeRes=$foo->resolutionLargeGet; if ( $foo->error ){ warn('error:'.$foo->error.': '.$foo->errorString); } resolutionLargeSetReturns the larg resolution.One argument is taken is the maximum resolution to use. If not specified, it resets it to the default, 1024. $foo->resolutionLargeSet( $res ); if ( $foo->error ){ warn('error:'.$foo->error.': '.$foo->errorString); } usableThis checks if the this object is usable for rendering or not.It does not check if the directories exist, other than the settings are specified. if ( ! $foo->usable ){ print "This is not a renderable object currently... something is missing...\n"; } writeConfigThis writes the config out.REQUIRED RENDERING METHODSThe ones listed below are useless and are just included for compatibility reasons.filesDir renderDir toDir filesDirThis returns the file directory for the object.This is not a full path, but a partial path that should be appended the directory current directory being outputted to. This returns '' as it is not used by this module. As for rendering, fullURL is set for Toader::Render::General. locationIDThis returns the location ID.This one requires the object to be initialized. renderDirThis is the directory that it will be rendered to.The base directory that will be used for rendering. This returns '' as it is not used by this module. As for rendering, fullURL is set for Toader::Render::General. renderUsingThis returns the module to use for rendering.my $module=$foo->renderUsing; toaderRenderableThis method returns true and marks it as being Toader renderable.toDirThis returns the directory that will return the directory that contains where this object should be rendered to.This is not a full path, but a partial path that should be appended the directory current directory being outputted to. This returns '' as it is not used by this module. As for rendering, fullURL is set for Toader::Render::General. ERROR CODES1, noDirSpecifiedNo directory specified.2, notAtoaderDirThe directory is not a Toader directory.3, readConfigFailedFailed to read the gallery config.4, noConfigNo config for this directory.5, nonNumericResolutionThe specified resolution is non-numeric.6, noSrcPathNo source path specified.7, noSrcURLNo source URL specified.8, noOutputPathNo output path specified.9, noOutputURLNo output URL specified.10, dirAlreadyInitThe directory has already been initialized.11, pathHelperErroredFailed to initialize Toader::pathHelper.12, notAtoaderObjNot a Toader object.13, getVCSerroredToader->getVCS errored.14, VCSusableErroredToader::VCS->usable errored.15, underVCSerroredToader::VCS->underVCS errored.16, VCSaddErroredToader::VCS->add errored.17, VCSdeleteErroredToader::VCS->delete errored.18, noToaderObjNothing passed for a Toader object.AUTHORZane C. Bowers-Hadley, "<vvelox at vvelox.net>"BUGSPlease report any bugs or feature requests to "bug-toader at rt.cpan.org", or through the web interface at <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Toader>. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.SUPPORTYou can find documentation for this module with the perldoc command.perldoc Toader::AutoDoc You can also look for information at:
ACKNOWLEDGEMENTSLICENSE AND COPYRIGHTCopyright 2011 Zane C. Bowers-Hadley.This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License. See http://dev.perl.org/licenses/ for more information.
Visit the GSP FreeBSD Man Page Interface. |