public static function filterFieldListByTag($fieldsList, $itemType, $itemProp)
    {
        $result = array();
        $tag = md5($itemProp.IDSPLIT.$itemType);

        foreach ($fieldsList as $field) {
            if ($field->tag !== $tag) {
                continue;
            }
            if (($field->itemtype !== $itemType) || ($field->itemprop !== $itemProp)) {
                continue;
            }
            $result[] = $field;
        }

        return $result;
    }
public static function filterFieldListByTag($fieldsList, $itemType, $itemProp)
    {
        $result = array();
        $tag = md5($itemProp.IDSPLIT.$itemType);

        foreach ($fieldsList as $field) {
            if ($field->tag !== $tag) {
                continue;
            }
            if (($field->itemtype !== $itemType) || ($field->itemprop !== $itemProp)) {
                continue;
            }
            $result[] = $field;
        }

        return $result;
    }
public static function filterFieldListByTag ( $ fieldsList , $ itemType , $ itemProp ) { $ result = array ( ) ; $ tag = md5 ( $ itemProp . IDSPLIT . $ itemType ) ; foreach ( $ fieldsList as $ field ) { if ( $ field -> tag !== $ tag ) { continue ; } if ( ( $ field -> itemtype !== $ itemType ) || ( $ field -> itemprop !== $ itemProp ) ) { continue ; } $ result [ ] = $ field ; } return $ result ; }
Filter a Fields List to keap only given Fields Tags

@param array  $fieldsList Object Field List
@param string $itemType   Field Microdata Type Url
@param string $itemProp   Field Microdata Property Name

@return array
Filter a Fields List to keap only given Fields Tags