Make getNode function public

The getNode function should be public so that DomElement objects can be accessed directly if need be.
This commit is contained in:
wesleyh 2013-05-13 13:21:14 +02:00
parent 6d64c9a990
commit 9868415780

View File

@ -743,7 +743,7 @@ class Crawler extends \SplObjectStorage
return sprintf("concat(%s)", implode($parts, ', '));
}
protected function getNode($position)
public function getNode($position)
{
foreach ($this as $i => $node) {
if ($i == $position) {