protected function EasyRdf_Parser_Rdfa::addToList in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/easyrdf/easyrdf/lib/EasyRdf/Parser/Rdfa.php \EasyRdf_Parser_Rdfa::addToList()
1 call to EasyRdf_Parser_Rdfa::addToList()
- EasyRdf_Parser_Rdfa::processNode in vendor/
easyrdf/ easyrdf/ lib/ EasyRdf/ Parser/ Rdfa.php
File
- vendor/
easyrdf/ easyrdf/ lib/ EasyRdf/ Parser/ Rdfa.php, line 99
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);
}