$row: The database row for the revision.
$text: The revision text.
-'XMPGetInfo': Called when obtaining the list of XMP tags to extract. Can be used
-to add additional tags to extract.
-&$items: Array containing information on which items to extract. See XMPInfo for
- details on the format.
-
-'XMPGetResults': Called just before returning the results array of parsing xmp
-data. Can be used to post-process the results.
-&$data: Array of metadata sections (such as $data['xmp-general']) each section
- is an array of metadata tags returned (each tag is either a value, or an array
- of values).
-
More hooks might be available but undocumented, you can execute
"php maintenance/findHooks.php" to find hidden ones.
$data = $this->results;
- Hooks::run( 'XMPGetResults', array( &$data ) );
-
if ( isset( $data['xmp-special']['AuthorsPosition'] )
&& is_string( $data['xmp-special']['AuthorsPosition'] )
&& isset( $data['xmp-general']['Artist'][0] )
* @return array XMP item configuration array.
*/
public static function getItems() {
- if ( !self::$ranHooks ) {
- // This is for if someone makes a custom metadata extension.
- // For example, a medical wiki might want to decode DICOM xmp properties.
- Hooks::run( 'XMPGetInfo', array( &self::$items ) );
- self::$ranHooks = true; // Only want to do this once.
- }
-
return self::$items;
}