You are here

private function FeedsJSONPathParser::debug in Feeds JSONPath Parser 6

Same name and namespace in other branches
  1. 7 FeedsJSONPathParser.inc \FeedsJSONPathParser::debug()
2 calls to FeedsJSONPathParser::debug()
FeedsJSONPathParser::parse in ./FeedsJSONPathParser.inc
Implementation of FeedsParser::parse().
FeedsJSONPathParser::parseSourceElement in ./FeedsJSONPathParser.inc
Parses one item from the context array.

File

./FeedsJSONPathParser.inc, line 297
Provides the Class for Feeds JSONPath Parser.

Class

FeedsJSONPathParser
Base class for the HTML and XML parsers.

Code

private function debug($item, $source) {
  if (in_array($source, $this->debug)) {
    $o = '<ul>';
    foreach ($item as $i) {
      $o .= '<li>' . check_plain(var_export($i, TRUE)) . '</li>';
    }
    $o .= '</ul>';
    drupal_set_message($source . ':' . $o);
  }
}