Skip to content

Commit

Permalink
Removed getAllResultsMethods from extended classes as the parent one is
Browse files Browse the repository at this point in the history
identical to the needed behaviour in all and it was wrong in the
subclasses.
  • Loading branch information
CuAnnan committed Jul 13, 2013
1 parent 427e5a6 commit 5762902
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 19 deletions.
11 changes: 1 addition & 10 deletions lib/DOMResultSet.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,5 @@ public function getNextResult()
$doc = new \DOMDocument();
$doc->loadXML($result->scalar);
return $doc;
}

public function getAllResults()
{
$results = array();
while($this->hasMoreHits)
{
$results[] = $this->getNextResult();
}
}
}
}
9 changes: 0 additions & 9 deletions lib/SimpleXMLResultSet.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,4 @@ public function getNextResult()
$doc = simplexml_load_string($result->scalar);
return $doc;
}

public function getAllResults()
{
$results = array();
while($this->hasMoreHits)
{
$results[] = $this->getNextResult();
}
}
}

0 comments on commit 5762902

Please sign in to comment.