Retrieves ids from a PlSet.
[platal.git] / classes / plheap.php
index 7848e9c..6dafc1a 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /***************************************************************************
- *  Copyright (C) 2003-2008 Polytechnique.org                              *
+ *  Copyright (C) 2003-2010 Polytechnique.org                              *
  *  http://opensource.polytechnique.org/                                   *
  *                                                                         *
  *  This program is free software; you can redistribute it and/or modify   *
@@ -67,7 +67,7 @@ class PlHeap
 
     public function iterator()
     {
-        return PlIterator::fromArray($this->content);
+        return PlIteratorUtils::fromArray($this->content, 1, true);
     }
 }