Difference between revisions of "API:EPrints/NamedSet"
(Created page with '<!-- Pod2Wiki=_preamble_ This page has been automatically generated from the EPrints 3.2 source. Any wiki changes made between the 'Pod2Wiki=*' and 'Edit below this comment' com…') |
|||
Line 1: | Line 1: | ||
<!-- Pod2Wiki=_preamble_ | <!-- Pod2Wiki=_preamble_ | ||
This page has been automatically generated from the EPrints 3.2 source. Any wiki changes made between the 'Pod2Wiki=*' and 'Edit below this comment' comments will be lost. | This page has been automatically generated from the EPrints 3.2 source. Any wiki changes made between the 'Pod2Wiki=*' and 'Edit below this comment' comments will be lost. | ||
− | -->{{API}}{{Pod2Wiki}}{{API:Source|file=EPrints/NamedSet.pm|package_name=EPrints::NamedSet}}[[Category:API|NAMEDSET]][[Category:API:EPrints/NamedSet|NAMEDSET]]<div><!-- Edit below this comment --> | + | -->{{API}}{{Pod2Wiki}}{{API:Source|file=perl_lib/EPrints/NamedSet.pm|package_name=EPrints::NamedSet}}[[Category:API|NAMEDSET]][[Category:API:EPrints/NamedSet|NAMEDSET]]<div><!-- Edit below this comment --> |
Revision as of 15:26, 16 December 2011
EPrints 3 Reference: Directory Structure - Metadata Fields - Repository Configuration - XML Config Files - XML Export Format - EPrints data structure - Core API - Data Objects
Latest Source Code (3.4, 3.3) | Revision Log | Before editing this page please read Pod2Wiki
Contents
NAME
EPrints::NamedSet - Repository Configuration
SYNOPSIS
$namedset = EPrints::NamedSet->new( "eprint", repository => $repository ); $namedset->add_option( "performance", "my_package" ); $namedset->remove_option( "thesis", "my_package" );
DESCRIPTION
A utility class to manipulate named sets. Add and remove methods are designed to be called by Bazaar Packages
METHODS
new
$namedset = EPrints::NamedSet->new( $id, %opts )
add_option
$nameset->add_option( $option, $package_name [, $index] )
Add an option to the named set.
If the option already exists and is not core or already beloning to this package then a required_by field is added to the file.
If it already exists, index is ignored.
remove_option
$namedset->remove_option( $option, $package_name )
Remove an option from the named set.
remove
$ok = $namedset->remove
Remove the namedset from the file system.
COPYRIGHT