ARK Management Tools

Anvl
in package

Name-Value Language (ANVL).

Methods for creating and interacting with ANVL records.

Tags
link
http://www.cdlib.org/inside/diglib/ark/anvlspec.pdf
https://datatracker.ietf.org/doc/draft-kunze-anvl/

Table of Contents

Properties

$record  : array<string|int, mixed>
$lineLength  : int

Methods

__construct()  : mixed
add()  : void
Add element.
addComment()  : void
Add Comment
load()  : void
Load record.
record()  : string
Output record.

Properties

$record

public array<string|int, mixed> $record

$lineLength

protected int $lineLength

Methods

__construct()

public __construct([int $lineLength = 72 ]) : mixed
Parameters
$lineLength : int = 72

add()

Add element.

public add(string $elementName, string $elementBody) : void

Add a new element to record.

Parameters
$elementName : string

1*<any CHAR, excluding control-chars and ":">

$elementBody : string

1*<any UTF-8 character, including bare CR and bare LF, but NOT including CRLF>

Tags
link
https://www.ietf.org/archive/id/draft-kunze-anvl-02.txt

addComment()

Add Comment

public addComment(string $comment) : void
Parameters
$comment : string

Any text.

load()

Load record.

public load(string $record) : void
Parameters
$record : string

record()

Output record.

public record([bool $comments = true ]) : string
Parameters
$comments : bool = true

Set to false to prevent output of comments (default: true).

Return values
string
On this page

Search results