Back to Microdata class

Method loadTypes

protected static void
loadTypes
()
Load all available Types and Properties from the http://schema.org vocabulary contained in the types.json file
Returns
  • void
Since
  • 3.2
Class: Microdata
Project: Joomla

Method loadTypes - Source code

/**
 * Load all available Types and Properties from the http://schema.org vocabulary contained in the types.json file
 *
 * @return  void
 *
 * @since   3.2
 */
protected static function loadTypes()
{
    // Load the JSON
    if (!static::$types) {
        $path = __DIR__ . '/types.json';
        static::$types = json_decode(file_get_contents($path), true);
    }
}