Metadata

Metadata means data about data and is used generically to describe data that holds information about other data objects. In a Siteframe class definition, however, the metadata is a specific data structure (a PHP array) that contains information about the properties, or individual data elements, that make up a data class. Each Siteframe class definition contains a metadata structure that defines its make-up. This metadata structure is used for numerous purposes:

Metadata Structure

The metadata definition consists of a single PHP array; each array element is indexed by the name of a property, and its value is a property definition array. In this example,

public $metadata = array(
    'page_id' => array(
        'col' => true,
        'required' => true,
        'type' => 'integer',
        'internal' => true,
    ),
);

the metadata array holds one element, page_id. The page_id element is a physical column ('col' => true), cannot be null ('required' => true), is of type integer('type' => 'integer'), and is used internally (i.e., not set directly by the user).

Metadata Properties

The following is a list of all available properties for metadata definitions. Note that the value following the name is the PHP datatype of the meta-property.

Please report any errors or omissions to the webmaster.

<Couldn't be bothered to add a subject>
by / at 21:50 on July 1, 2005
[read entire article]