BugFix in PFC_OneChild (forgot a $this->)
[platal.git] / classes / plfilter.php
index 5dd77e6..609c1cc 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /***************************************************************************
- *  Copyright (C) 2003-2010 Polytechnique.org                              *
+ *  Copyright (C) 2003-2011 Polytechnique.org                              *
  *  http://opensource.polytechnique.org/                                   *
  *                                                                         *
  *  This program is free software; you can redistribute it and/or modify   *
@@ -185,7 +185,7 @@ abstract class PFC_OneChild implements PlFilterCondition
 
     public function export()
     {
-        return array('child' => $child->export());
+        return array('child' => $this->child->export());
     }
 }
 // }}}
@@ -384,6 +384,14 @@ abstract class PlFilter implements PlExportable
      */
     public abstract function get($limit = null);
 
+    /** Get ids, selecting only those within a limit
+     * @param $limit The portion of the matching objects to select
+     */
+    public function getIds($limit = null)
+    {
+        return $this->get($limit);
+    }
+
     /** PRIVATE FUNCTIONS
      */