You are here

protected function FeedsQueryPathParser::debug in Feeds QueryPath Parser 6

Same name and namespace in other branches
  1. 7 FeedsQueryPathParser.inc \FeedsQueryPathParser::debug()
1 call to FeedsQueryPathParser::debug()
FeedsQueryPathParser::parseSourceElement in ./FeedsQueryPathParser.inc

File

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

Class

FeedsQueryPathParser
@file

Code

protected function debug($item, $source) {
  if ($this->debug_switch && in_array($source, $this->debug_options)) {
    $o = '<ul>';
    foreach ($item as $i) {
      $o .= '<li>' . check_plain($i
        ->asXML()) . '</li>';
    }
    $o .= '</ul>';
    drupal_set_message($source . ':' . $o);
  }
}