MediaWiki  1.23.2
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. More...
 

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. More...
 
static $ranHooks = false
 

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, array(), and wfRunHooks().

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 static 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 72 of file XMPInfo.php.

Referenced by getItems().

◆ $ranHooks

XMPInfo::$ranHooks = false
staticprivate

Definition at line 44 of file XMPInfo.php.


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