\OpenGraph
Synopsis
class OpenGraph
implements
Iterator
{
- // members
- public static array $TYPES = ;
- private array $_values = ;
- private integer $_position = 0;
- // methods
- public static OpenGraph fetch()
- private static OpenGraph _parse()
- public void __get()
- public array keys()
- public void __isset()
- public boolean hasLocation()
- public void rewind()
- public void current()
- public void key()
- public void next()
- public void valid()
Hierarchy
Implements
Members
private
-
$_position
Iterator code -
$_values
Holds all the Open Graph values we've parsed from a page
public
-
$TYPES
There are base schema's based on type, this is just a map so that the schema can be obtained
Methods
private
- _parse() — Parses HTML and extracts Open Graph data, this assumes the document is at least well formed.
public
- __get() — Helper method to access attributes directly Example: $graph->title
- __isset() — Helper method to check an attribute exists
- current()
- fetch() — Fetches a URI and parses it for Open Graph data, returns false on error.
- hasLocation() — Will return true if the page has location data embedded
- key()
- keys() — Return all the keys found on the page
- next()
- rewind()
- valid()