|
NAMEToader::Entry::Helper - Misc helper methods for entries.VERSIONVersion 1.0.0METHODSnewThis initializes this object.On argument is required and it is a Toader object. my $foo = Toader::Entry::Helper->new( $toader ); if($foo->error){ warn('error: '.$foo->error.":".$foo->errorString); } entryDirectoryThis returns the entry directory.This requires setDir to be called previously. If setDir has been successfully called, this will not error. my $entryDirectory=$foo->entryDirectory; if($foo->error){ warn('error: '.$foo->error.":".$foo->errorString); } entryExistsThis checks if the specified helper exists.One argument is accepted and it is This requires setDir to be called previously. my $retruned=$foo->entryExists($entry); if($foo->error){ warn('error: '.$foo->error.":".$foo->errorString); } if($returned){ print "It exists.\n"; } generateEntryNameThis generates a entry name.my $entryName=$foo->generateEntryName; setDirThis sets the directory to operate on.One argument is required. It is the directory to use. $foo->setDir($directory); if($foo->error){ warn('error: '.$foo->error.":".$foo->errorString); } summaryThis builds a summary of the of the entries in the directory.returned hash The key values are the entry IDs. Each subhash then contains the following keys. from renderer title summary validEntryNameThis verifies that the name is a valid file name.One arguemnet is taken and that is the name of the entry name to check. This will not error. If the name is not defined, false, '0', will be returned as undefined is not a valid name. my $valid=$foo->validEntryName($name); if($valid){ print '"'.$name.'" is a valid name.'; } validEntryNameRegexThis returns the regular expression for validating a entry name.This method does not call errorBlank for ease simplicity. This means a error check should not be done on this message as if any error was set previously then one will still be set. my $regex=$foo->validEntryNameRegex($name); ERROR CODES1, notAtoaderDirNot a Toader directory.2, noDirSpecifiedNo directory specified.3, noEntrySpecifiedNo entry specified.4, noDirSetNo directory has been set yet.5, invalidEntryNameThe entry name is not valid.6, entryManageErroredFailed to initialize Toader::Entry::Manage.7, listEntriesErroredFailed to list the entires.8, readEntryErroredFailed to read a entry.9, noToaderObjNo Toader object specified.10, notAtoaderObjThe object specified is not 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::Entry::Helper 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. |