31 |
associated with a database. The parameter list should be an entity name followed by |
associated with a database. The parameter list should be an entity name followed by |
32 |
a set of key-value pairs. Each key should be in the standard I<objectName>C<(>I<attributeName>C<)> |
a set of key-value pairs. Each key should be in the standard I<objectName>C<(>I<attributeName>C<)> |
33 |
format used by all of the ERDB methods. All values must be list references. For example, |
format used by all of the ERDB methods. All values must be list references. For example, |
34 |
the following code fragment creates an pseudo-Feature named C<peg.1> with two aliases. |
the following code fragment creates an pseudo-Feature named C<peg.1> with two hyperlinks. |
35 |
|
|
36 |
C<< my $feature = ERDBObject::new('Feature(id)' => ['peg.1'], >> |
my $feature = ERDBObject::new('Feature(id)' => ['peg.1'], |
37 |
C<< 'Feature(alias)' => ['NC1004', 'PC1006']); >> |
'Feature(link)' => ['http://www.undhoople.edu/NC1004.html', |
38 |
|
'http://www.miskatonic.edu/PC1006.html']); |
39 |
|
|
40 |
=cut |
=cut |
41 |
|
|
255 |
the L</Value> method for each element in the parameter list and returns a flattened list of all |
the L</Value> method for each element in the parameter list and returns a flattened list of all |
256 |
the results. |
the results. |
257 |
|
|
258 |
For example, let us say that C<$feature> contains a feature with two aliases and a translation. |
For example, let us say that C<$feature> contains a feature with two links and a translation. |
259 |
The following call will put the aliases in C<$alias1> and C<$alias2> and the translation in |
The following call will put the feature links in C<$link1> and C<$link2> and the translation in |
260 |
C<$translation>. |
C<$translation>. |
261 |
|
|
262 |
C<< my ($alias1, $alias2, $translation) = $feature->Values(['Feature(alias)', 'Feature(translation)']); >> |
C<< my ($link1, $link2, $translation) = $feature->Values(['Feature(link)', 'Feature(translation)']); >> |
263 |
|
|
264 |
=over 4 |
=over 4 |
265 |
|
|