From f3e9fe66a8b9c0625e954d093cf33229e84d6692 Mon Sep 17 00:00:00 2001 From: pookey Date: Tue, 18 Dec 2007 12:00:12 +0000 Subject: [PATCH] adding a toString method to pager layout --- lib/Doctrine/Pager/Layout.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/Doctrine/Pager/Layout.php b/lib/Doctrine/Pager/Layout.php index 93f1bdc21..d93bb76c1 100644 --- a/lib/Doctrine/Pager/Layout.php +++ b/lib/Doctrine/Pager/Layout.php @@ -350,6 +350,14 @@ class Doctrine_Pager_Layout echo $str; } + /** + * simply calls display, and returns the output. + */ + public function __toString() + { + return $this->display(array(), true); + } + /** * _parseTemplate