protected function EasyRdf_Parser_Rdfa::addToList

1 call to EasyRdf_Parser_Rdfa::addToList()
EasyRdf_Parser_Rdfa::processNode in drupal/core/vendor/easyrdf/easyrdf/lib/EasyRdf/Parser/Rdfa.php

File

drupal/core/vendor/easyrdf/easyrdf/lib/EasyRdf/Parser/Rdfa.php, line 100

Class

EasyRdf_Parser_Rdfa
Class to parse RDFa 1.1 with no external dependancies.

Code

protected function addToList($listMapping, $property, $value) {
  if ($this->debug) {
    print "Adding to list: {$property} -> " . $value['type'] . ':' . $value['value'] . "\n";
  }

  // Create property in the list mapping if it doesn't already exist
  if (!isset($listMapping->{$property})) {
    $listMapping->{$property} = array();
  }
  array_push($listMapping->{$property}, $value);
}