Skip to content

Commit

Permalink
sync zf1.9.3(not PL1) and add my-debug code
Browse files Browse the repository at this point in the history
  • Loading branch information
sasezaki committed Sep 26, 2009
1 parent f922760 commit f5b7137
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lib/Kumo/Handler/NotGetImageRequestSender.php
Expand Up @@ -37,6 +37,7 @@ public function __construct(array $config = array())

public function handle(Spizer_Document $doc)
{
//$this->debug('********START****');

if (!$doc instanceof Spizer_Document_Html) return;

Expand All @@ -50,6 +51,7 @@ public function handle(Spizer_Document $doc)
$headers,
$doc->getBody())
, $doc->getUrl());
//$this->debug($results);

$targets = $this->filter($results['kumo']);

Expand All @@ -64,6 +66,14 @@ public function handle(Spizer_Document $doc)
}
}

protected function debug()
{
$vars = func_get_args();
foreach ($vars as $var) {
Zend_Debug::dump($var);
}
}

public function filter(array $urls)
{
return array_diff($urls, explode("\n", $this->config['have_files']));
Expand Down

0 comments on commit f5b7137

Please sign in to comment.