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:
parent
6d64c9a990
commit
9868415780
@ -743,7 +743,7 @@ class Crawler extends \SplObjectStorage
|
|||||||
return sprintf("concat(%s)", implode($parts, ', '));
|
return sprintf("concat(%s)", implode($parts, ', '));
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function getNode($position)
|
public function getNode($position)
|
||||||
{
|
{
|
||||||
foreach ($this as $i => $node) {
|
foreach ($this as $i => $node) {
|
||||||
if ($i == $position) {
|
if ($i == $position) {
|
||||||
|
Reference in New Issue
Block a user