NAME

A2E::Subdoks

VERSION

    This describes version B<0.1.0> of A2E::Subdoks.

SYNPOSIS

    use base 'A2E::MLHT', 'A2E::Subdoks', 'A2E::Mbox2dok';
    my $p = new_ready A2E::MLHT;
    $p->add_subdoks($dok, $pwd);

DESCRIPTION

Write metadata that come with presence of subordinate documents, such as a 'subdoks' or 'grpdoks' file, and make corresponding entries in the database.

mixin library, does not invoke the constructor of its base library.

Prerequisites

    A2E::Dokfs(3)

SEE ALSO

    A2E::Mktdir(3)

Implementation

Overwritable Functions

defvars

Subroutines

ar_doks_add

add extra documents to an array reference such as $m->{subdoks} or $m->{grpdoks}

db_doks_push

add extra documents to the end of present group/directory by writing database records according to the predetermined syntax.

db_doks_unshift

Like db_doks_push but add the documents to the beginning.

db_doks_add

Function extra_elements

args 1 and 2 are array references.

return the elements that are contained only in array 2 but not array 1.

Function db_doks_new

Function find_splice_pos

Find position in list of lines in a text file where to insert the new document id.

If we push ($m->{konfig}->pushdok set), we must insert at the end, otherwise at the beginning.

In either case we must skip over possible comment lines.

Function doksfayl_add

Function fayl_lins_doks

parse file, return a reference to the lines and one to the doks found therein

Function fayl_nov

Function fayl_ins

Function fayl_add

register subdocument in 'grpdoks' or 'subdoks' file $f.

Function doksfayl_add

Added Interface Functions

Used in A2E::Mktdir

add node to menu-wise parent, both in the database and in the bookkeeping files of the local filesystem aka doksfayl ie 'grpdoks' or 'subdoks' and in the corresponding internal variables ie $m->{supdir} et al.

Function add_subdoks

Changelog

The End

POD ERRORS

Hey! The above document had some coding errors, which are explained below:

Around line 429:

=over should be: '=over' or '=over positive_number'

Around line 433:

You forgot a '=back' before '=head1'