collectData(&$target, $method = 'text', $callbacks = null)
// $method can be an array, then >= [1] are params
// $callbacks can be an array, but dont support params (curried callbacks
do the thing)
$node = pq('tr td:nth-child(1)');
$data = array();
$node->next()->
find('span')->
eq(0)->
collectData($data) -> // text
end()->
eq(1)->
collectData($data, 'text', 'trim')->
end()->
eq(2)->
collectData($data, 'markupOuter')->
end()->
end()
;
Original issue reported on code.google.com by tobiasz....@gmail.com on 3 Apr 2009 at 10:22
Original issue reported on code.google.com by
tobiasz....@gmail.com
on 3 Apr 2009 at 10:22