Public Member Functions | Public Attributes

MaleteDb Class Reference

Inheritance diagram for MaleteDb:
IsisDb

List of all members.

Public Member Functions

 __construct ($schema)
 read ($id)
 entries ()
 example ()
 check ($schema, $section=NULL)
 tag ($results)
 logger ($message)

Public Attributes

 $fdt
 $db
 $format
 $log

Detailed Description

Malete implementation of IsisDb.

Warning:
This implementation is currently outdated and lacks basic functionalities such as subfield handling and therefore it's use is not recommended.

Constructor & Destructor Documentation

MaleteDb::__construct ( schema  ) 

Constructor.

See also:
IsisDb::__construct()

Implements IsisDb.


Member Function Documentation

MaleteDb::check ( schema,
section = NULL 
)

Check configuration.

See also:
IsisDb::check()

Implements IsisDb.

MaleteDb::entries (  ) 

Return number of entries in the database.

The Malete API doen't implement such feature so we have to emulate it by iterating over all entries until MaleteDb::read() returns FALSE.

See also:
IsisDb::entries()

Implements IsisDb.

MaleteDb::example (  ) 

Return an example schema.

See also:
IsisDb::example()

Implements IsisDb.

MaleteDb::logger ( message  ) 

Class logger.

Parameters:
$message Log message.
MaleteDb::read ( id  ) 

Read an entry.

See also:
IsisDb::read()
Todo:
Subfield handling.

Implements IsisDb.

MaleteDb::tag ( results  ) 

Tag results of a db query.

This function converts the keys of query result from field numbers to names and and also puts repetition fields into place as Malete deals with field repetition by using a 'tag' property in the resulting query object.

Parameters:
$results Database query results.
Returns:
Tagged database result.

Member Data Documentation

MaleteDb::$db

Database resource.

MaleteDb::$fdt

Field description table.

MaleteDb::$format

Database format, derived from $schema.

MaleteDb::$log

Class action log.


The documentation for this class was generated from the following file:
 All Classes Functions Variables