_id = $id; assert(is_a($actionRequest, 'LinkActionRequest')); $this->_actionRequest =& $actionRequest; $this->_title = $title; $this->_image = $image; } // // Getters and Setters // /** * Get the action id. * @return string */ function getId() { return $this->_id; } /** * Get the action handler. * @return LinkActionRequest */ function &getActionRequest() { return $this->_actionRequest; } /** * Get the localized action title. * @return string */ function getTitle() { return $this->_title; } /** * Get a title for display when a user hovers over the * link action. Default to the regular title if it is set. * @return string */ function getHoverTitle() { // for the locale key, remove any unique ids from the id. $id = preg_replace('/([^-]+)\-.+$/', '$1', $this->getId()); $title = __('grid.action.' . $id); return $title; } /** * Get the action image. * @return string */ function getImage() { return $this->_image; } } ?>