PHP Class Sulu\Bundle\PreviewBundle\Preview\RdfaExtractor

Show file Open project: sulu/sulu Class Usage Examples

Public Methods

Method Description
__construct ( string $html )
getPropertyValue ( string $property ) : boolean Returns html and attributes value of rdfa property.
getPropertyValues ( array $properties ) : array Returns html value for rdfa properties.

Method Details

__construct() public method

public __construct ( string $html )
$html string

getPropertyValue() public method

Returns html and attributes value of rdfa property.
public getPropertyValue ( string $property ) : boolean
$property string Could be a property sequence like (block[1].title[0])
return boolean

getPropertyValues() public method

Returns html value for rdfa properties.
public getPropertyValues ( array $properties ) : array
$properties array Could be a property sequence like (block[1].title[0])
return array