From 8118ac9cc8a27568251c7950b5587fc6d559f324 Mon Sep 17 00:00:00 2001 From: KrisJordan Date: Mon, 13 Jul 2009 17:21:46 -0400 Subject: [PATCH] Making ListBlock's add public instead of protected. --- recess/recess/framework/helpers/blocks/ListBlock.class.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/recess/recess/framework/helpers/blocks/ListBlock.class.php b/recess/recess/framework/helpers/blocks/ListBlock.class.php index 8fd9c35..7987700 100644 --- a/recess/recess/framework/helpers/blocks/ListBlock.class.php +++ b/recess/recess/framework/helpers/blocks/ListBlock.class.php @@ -71,13 +71,14 @@ function append() { function prepend() { $args = func_get_args(); $this->add($args, self::PREPEND); + return $this; } /** - * Private helper method for adding elements + * protected helper method for adding elements * to the head or teail of the list. */ - private function add($args, $mode) { + protected function add($args, $mode) { if(!empty($args)) { if(count($args) == 1) { if(is_array($args[0])) {