MediaWiki REL1_31
XMPInfo Class Reference

This class is just a container for a big array used by XMPReader to determine which XMP items to extract. More...

Static Public Member Functions

static getItems ()
 Get the items array.
 

Static Private Attributes

static $items
 XMPInfo::$items keeps a list of all the items we are interested to extract, as well as information about the item like what type it is.
 

Detailed Description

This class is just a container for a big array used by XMPReader to determine which XMP items to extract.

Definition at line 29 of file XMPInfo.php.

Member Function Documentation

◆ getItems()

static XMPInfo::getItems ( )
static

Get the items array.

Returns
array XMP item configuration array.

Definition at line 33 of file XMPInfo.php.

References $items.

Referenced by XMPReader\__construct().

Member Data Documentation

◆ $items

XMPInfo::$items
staticprivate

XMPInfo::$items keeps a list of all the items we are interested to extract, as well as information about the item like what type it is.

Format is an array of namespaces, each containing an array of tags each tag is an array of information about the tag, including:

  • map_group - What group (used for precedence during conflicts).
  • mode - What type of item (self::MODE_SIMPLE usually, see above for all values).
  • validate - Method to validate input. Could also post-process the input. A string value is assumed to be a method of XMPValidate. Can also take a array( 'className', 'methodName' ).
  • choices - Array of potential values (format of 'value' => true ). Only used with validateClosed.
  • rangeLow and rangeHigh - Alternative to choices for numeric ranges. Again for validateClosed only.
  • children - For MODE_STRUCT items, allowed children.
  • structPart - Indicates that this element can only appear as a member of a structure.

Currently this just has a bunch of EXIF values as this class is only half-done.

Definition at line 63 of file XMPInfo.php.

Referenced by getItems().


The documentation for this class was generated from the following file: