You are here

protected function FeedsQueryPathParser::debug in Feeds QueryPath Parser 7

Same name and namespace in other branches
  1. 6 FeedsQueryPathParser.inc \FeedsQueryPathParser::debug()

Prints out results from queries.

2 calls to FeedsQueryPathParser::debug()
FeedsQueryPathParser::parse in ./FeedsQueryPathParser.inc
Implements FeedsParser::parse().
FeedsQueryPathParser::parseSourceElement in ./FeedsQueryPathParser.inc

File

./FeedsQueryPathParser.inc, line 363
Provides the class for FeedsQueryPathParser.

Class

FeedsQueryPathParser
@file

Code

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