3 abstract class FuelComponentView
6 private $classes = array();
8 final public function addClass($class) {
9 $this->classes
[] = $class;
13 private function getClasses() {
14 return $this->classes
;
17 final protected function newComponentTag(
22 $classes = $this->getClasses();
23 if (isset($attributes['class'])) {
24 $classes[] = $attributes['class'];
28 $classes = implode(' ', $classes);
29 $attributes['class'] = $classes;
32 return javelin_tag($tag, $attributes, $content);