You are here

protected function EasyRdf_Parser_Rdfa::processUriList in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/easyrdf/easyrdf/lib/EasyRdf/Parser/Rdfa.php \EasyRdf_Parser_Rdfa::processUriList()
1 call to EasyRdf_Parser_Rdfa::processUriList()
EasyRdf_Parser_Rdfa::processNode in vendor/easyrdf/easyrdf/lib/EasyRdf/Parser/Rdfa.php

File

vendor/easyrdf/easyrdf/lib/EasyRdf/Parser/Rdfa.php, line 264

Class

EasyRdf_Parser_Rdfa
Class to parse RDFa 1.1 with no external dependancies.

Code

protected function processUriList($node, $context, $values) {
  if (!$values) {
    return array();
  }
  $uris = array();
  foreach (preg_split('/\\s+/', $values) as $value) {
    $uri = $this
      ->processUri($node, $context, $value, true);
    if ($uri) {
      array_push($uris, $uri);
    }
  }
  return $uris;
}