Add sort_name to pluser.
[platal.git] / classes / plfilter.php
index 6b4bdda..e67405d 100644 (file)
@@ -123,6 +123,16 @@ abstract class PlFilterGroupableOrder extends PlFilterOrder
     {
         return $this->_tokens;
     }
+
+    /** This function is called when trying to restrict to one of the
+     * specific values of the group token.
+     *
+     * @return A PlFilterCondition.
+     */
+    public function getCondition($group_value)
+    {
+        return null;
+    }
 }
 // }}}
 
@@ -185,7 +195,7 @@ abstract class PFC_OneChild implements PlFilterCondition
 
     public function export()
     {
-        return array('child' => $child->export());
+        return array('child' => $this->child->export());
     }
 }
 // }}}
@@ -420,5 +430,5 @@ abstract class PlFilter implements PlExportable
 }
 // }}}
 
-// vim:set et sw=4 sts=4 sws=4 foldmethod=marker enc=utf-8:
+// vim:set et sw=4 sts=4 sws=4 foldmethod=marker fenc=utf-8:
 ?>