Project

General

Profile

« Previous | Next » 

Revision fba5dd6e

Added by Thane Gill over 10 years ago

Return object after instantiation

View differences:

usr/local/www/classes/Form/Group.class.php
11 11
	{
12 12
		$this->_title = gettext($title);
13 13
		$this->addClass('form-group');
14

  
15
		return $this;
14 16
	}
15 17

  
16 18
	public function add(Form_Input $input)
......
77 79
	</div>
78 80
EOT;
79 81
	}
80
}
82
}
usr/local/www/classes/Form/Section.class.php
9 9
	{
10 10
		$this->_title = $title;
11 11
		$this->addClass('panel', 'panel-default');
12

  
13
		return $this;
12 14
	}
13 15

  
14 16
	public function add(Form_Group $group)

Also available in: Unified diff