if ( isset( $data['xmp-exif']['GPSAltitudeRef'] )
&& isset( $data['xmp-exif']['GPSAltitude'] )
) {
-
// Must convert to a real before multiplying by -1
// XMPValidate guarantees there will always be a '/' in this value.
list( $nom, $denom ) = explode( '/', $data['xmp-exif']['GPSAltitude'] );
private function endElementNested( $elm ) {
/* cur item must be the same as $elm, unless if in MODE_STRUCT
- in which case it could also be rdf:Description */
+ * in which case it could also be rdf:Description */
if ( $this->curItem[0] !== $elm
&& !( $elm === self::NS_RDF . ' Description'
&& $this->mode[0] === self::MODE_STRUCT )
*/
private function startElementModeInitial( $ns, $tag, $attribs ) {
if ( $ns !== self::NS_RDF ) {
-
if ( isset( $this->items[$ns][$tag] ) ) {
if ( isset( $this->items[$ns][$tag]['structPart'] ) ) {
// If this element is supposed to appear only as
*/
private function startElementModeStruct( $ns, $tag, $attribs ) {
if ( $ns !== self::NS_RDF ) {
-
if ( isset( $this->items[$ns][$tag] ) ) {
if ( isset( $this->items[$ns][$this->ancestorStruct]['children'] )
&& !isset( $this->items[$ns][$this->ancestorStruct]['children'][$tag] )