public function addButton($label, $class = 'Button') { if (!$this->grid) { return new Dummy(); } return $this->grid->addButton($label, $class); }