Skip to content

Commit

Permalink
Making ListBlock's add public instead of protected.
Browse files Browse the repository at this point in the history
  • Loading branch information
KrisJordan committed Jul 13, 2009
1 parent 77813cd commit 8118ac9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions recess/recess/framework/helpers/blocks/ListBlock.class.php
Expand Up @@ -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])) {
Expand Down

0 comments on commit 8118ac9

Please sign in to comment.