getConfig('itemName'); $itemsName = $this->getConfig('itemsName'); return array( 'new' => 'Add New ' . $itemName, 'clear' => array( 'title' => 'Clear all ' . $itemsName, 'attribs' => array('onclick' => "return confirm('Do you really want to clear all " . $itemsName . "?');") ) ); } protected function _doClear() { $this->_getDataObj()->clear(); $this->_doBack(); } }