![]() |
![]()
| ![]() |
![]()
NAMEToader::Entry::Manage - Manage entries. VERSIONVersion 1.0.0 METHODSnewThis initiates the object. One argument is required and it is a Toader object. After calling this, you should call setDir to set the directory to use. my $foo = Toader::New->new( $toader ); cacheGetThis returns the Toader::Entry::Cache object. There are no arguments taken. my $cache=$foo->cacheGet; if($foo->error){ warn('error: '.$foo->error.":".$foo->errorString); } cacheUpdateAllThis updates the cache for all entries. There are no arguments taken. $foo->cacheUpdateAll; if($foo->error){ warn('error: '.$foo->error.":".$foo->errorString); } listThis lists the available entries. my @entries=$foo->list; if($foo->error){ warn('error: '.$foo->error.":".$foo->errorString); } publishedThis returns a list of published or unpublished entries. One argument is accepted and that is the return value from Toader::Entry->publishGet. If that is not defined, then '1' is used. This will throw a warning for entries that can not be read, it will not throw a error. my @published=$foo->published; if ( $foo->error ){ warn( 'Error:'.$foo->error.': '.$foo->errorStrin ); } readThis reads a entry. One argument is taken and that is the entry name. my $entry=$foo->read( $entryName ); if ( $foo->error ){ warn( 'Error:'.$foo->error.': '.$foo->errorStrin ); } removeThis removes a entry. It will remove it from VCS and the cache as well. One argument is required and it is entry name. $foo->remove($entry); if($foo->error){ warn('error: '.$foo->error.":".$foo->errorString); } setDirThis sets the directory the module will work on. One argument is taken and that is the path for the Toader directory in question. $foo->setDir($toaderDirectory) if($foo->error){ warn('error: '.$foo->error.":".$foo->errorString); } touchThis updates the entry name to a newer one. ERROR CODES/Flags1, noDirSpecifiedNo directory specified. 2, isaToaderDirErroredisaToaderDir errored. 3, notAtoaderDirIs not a Toader directory. 4, noDirDefinedNo directory has been defined. 5, openDirFailedFailed to open the directory. 6, noEntrySpecifiedNo entry specified. 7, invalidEntryNameThe entry is not a valid name. 8, entryDoesNotExistThe entry does not exist. 9, unlinkFailedFailed to unlink the entry. 10, openEntryFailedUnable to open the entry file for reading. 11, entryObjCreationFailedGenerating a Toader::Entry object from a alredy existing entry failed. 12, notAtoaderObjThe object specified is not a Toader object. 13, getVCSerroredToader->getVCS errored. 14, VCSusableErroredToader::VCS->usable errored. 15, underVCSerroredToader::VCS->underVCS errored. 16, VCSdeleteErroredToader::VCS->delete errored. 17, noToaderObjNo Toader object specified. 18, helperNewErroredToader::Entry::Helper->new errored. 19, cacheNewErroredToader::Entry::Cache->new errored. 20, cacheDirSetErroredToader::Entry::Cache->setDir errored. 21, cacheUpdateAllErroredToader::Entry::Cache->updateAll errored. 22, entryNameSetErroredToader::Entry->entryNameSet errored. 23, entryWriteErroredToader::Entry->write errored. 24, cacheDeleteEntryErroredToader::Entry::Cache->deleteEntry errored. If this errors it means the cache is screwed in some manner and needs reinited via Toader::Entry::Cache->reinit. 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::Manage You can also look for information at:
ACKNOWLEDGEMENTSLICENSE AND COPYRIGHTCopyright 2014 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.
|