BiblioIsisDb Class Reference
List of all members.
Public Member Functions |
| __construct ($schema) |
| logger ($message) |
| backend ($method= 'count', $args=NULL) |
| read ($id, $method= 'fetch') |
| entries () |
| example () |
| tag ($results, $method= 'fetch') |
| has_subfields ($key) |
| subfields_switch ($key, &$value) |
| subfields ($name, $key, $method) |
| subfields_from_to_hash ($name, $key) |
| subfields_from_fetch ($name, $key) |
| is_repetitive ($field, $value) |
| repetition ($key, $value) |
| charset (&$data) |
Static Public Member Functions |
static | check ($schema, $section=NULL) |
Public Attributes |
| $fdt |
| $perl |
| $format |
| $log |
Detailed Description
Biblio::Isis implementation of IsisDb.
Constructor & Destructor Documentation
BiblioIsisDb::__construct |
( |
$ |
schema |
) |
|
Member Function Documentation
BiblioIsisDb::backend |
( |
$ |
method = 'count' , |
|
|
$ |
args = NULL | |
|
) |
| | |
Send requests to the perl backend.
- Parameters:
-
| $method | Backend method name to invoke. |
| $args | Backend method arguments. |
- Returns:
- Backend return value.
BiblioIsisDb::charset |
( |
&$ |
data |
) |
|
Charset conversion.
Converts a string from the database charset to UTF-8.
- Parameters:
-
| $data | String to be converted. |
- Returns:
- String converted to UTF-8.
static BiblioIsisDb::check |
( |
$ |
schema, |
|
|
$ |
section = NULL | |
|
) |
| | [static] |
BiblioIsisDb::entries |
( |
|
) |
|
BiblioIsisDb::example |
( |
|
) |
|
BiblioIsisDb::has_subfields |
( |
$ |
key |
) |
|
Checks whether a field has subfields.
- Parameters:
-
- Returns:
- True if has subfields, false otherwise.
BiblioIsisDb::is_repetitive |
( |
$ |
field, |
|
|
$ |
value | |
|
) |
| | |
Deals with repetition.
As Biblio::Isis always return field values as arrays, we have to check the database schema to see if we want to convert then to a single value.
- Parameters:
-
| $field | Database field. |
| $value | Data (with or without repetition). |
- Returns:
- True if repetitive, false otherwise.
BiblioIsisDb::logger |
( |
$ |
message |
) |
|
Class logger.
- Parameters:
-
BiblioIsisDb::read |
( |
$ |
id, |
|
|
$ |
method = 'fetch' | |
|
) |
| | |
Read an entry.
- Parameters:
-
| $id | Record Id. |
| $method | Database read method. |
- See also:
- IsisDb::read()
BiblioIsisDb::repetition |
( |
$ |
key, |
|
|
$ |
value | |
|
) |
| | |
Deals with repetition.
As Biblio::Isis always return field values as arrays, we have to check the database schema to see if we want to convert then to a single value. The current implementation is just a placeholder as no conversion is done.
- Parameters:
-
| $key | Database key. |
| $value | Query field result. |
- Returns:
- The value according to the repetition config.
BiblioIsisDb::subfields |
( |
$ |
name, |
|
|
$ |
key, |
|
|
$ |
method | |
|
) |
| | |
Makes subfield substitution in a dataset.
- Parameters:
-
| $name | Dataset. |
| $key | Field key. |
| $method | Database read method. |
- Returns:
- Data with processed subfields.
BiblioIsisDb::subfields_from_fetch |
( |
$ |
name, |
|
|
$ |
key | |
|
) |
| | |
Subfield handling for data read by 'from_fetch' method.
- Parameters:
-
| $name | Dataset. |
| $key | Field key. |
- Returns:
- Data with processed subfields.
BiblioIsisDb::subfields_from_to_hash |
( |
$ |
name, |
|
|
$ |
key | |
|
) |
| | |
Subfield handling for data read by 'to_hash' method. This method is not fully supported and therefore not recommended.
It does not deal very well when data has "main" fields and subfields (like "data1^adata2^bdata3") and doesn't deal with advanced configuration such as 'join_subfields'.
- Parameters:
-
| $name | Dataset. |
| $key | Field key. |
- Returns:
- Data with processed subfields.
BiblioIsisDb::subfields_switch |
( |
$ |
key, |
|
|
&$ |
value | |
|
) |
| | |
Switch keys on subfields.
- Parameters:
-
| $key | Field key. |
| $value | Dataset. |
BiblioIsisDb::tag |
( |
$ |
results, |
|
|
$ |
method = 'fetch' | |
|
) |
| | |
Tag results of a db query.
This function converts the keys of query result from field numbers to names.
- Parameters:
-
| $results | Database query results. |
| $method | Database read method. |
- Returns:
- Tagged database result.
Member Data Documentation
Database format, derived from $schema.
Class instance of a perl interpreter;
The documentation for this class was generated from the following file:
- classes/backends/BiblioIsisDb.php