public function getPageMapProperty($item, $type, $attribute)
    {
        $propertyArray = $item->PageMap->xpath('DataObject[@type="'.$type.'"]/Attribute[@name="'.$attribute.'"]/@value');

        if (! count($propertyArray)) {
            return '';
        }

        return (string) $propertyArray[0];
    }
public function getPageMapProperty($item, $type, $attribute)
    {
        $propertyArray = $item->PageMap->xpath('DataObject[@type="'.$type.'"]/Attribute[@name="'.$attribute.'"]/@value');

        if (! count($propertyArray)) {
            return '';
        }

        return (string) $propertyArray[0];
    }
public function getPageMapProperty ( $ item , $ type , $ attribute ) { $ propertyArray = $ item -> PageMap -> xpath ( 'DataObject[@type="' . $ type . '"]/Attribute[@name="' . $ attribute . '"]/@value' ) ; if ( ! count ( $ propertyArray ) ) { return '' ; } return ( string ) $ propertyArray [ 0 ] ; }
Get a the value Pagemap property with the given name of the given type of the given item.

@param $item
@param $type
@param $attribute

@return string
Get a the value Pagemap property with the given name of the given type of the given item .