_id = $id; $this->_mode = $mode; $this->_type = $type; $this->_url = $url; $this->_title = $title; $this->_titleLocalized = $titleLocalized; $this->_image = $image; $this->_confirmMessageLocalized = $confirmMessageLocalized; $this->_actOn = $actOn; } /** * Set the action id. * @param $id string */ function setId($id) { $this->_id = $id; } /** * Get the action id. * @return string */ function getId() { return $this->_id; } /** * Set the action mode. * @param $mode integer */ function setMode($mode) { $this->_mode = $mode; } /** * Get the action mode. * @return integer */ function getMode() { return $this->_mode; } /** * Set the action type. * @param $type string */ function setType($type) { $this->_type = $type; } /** * Get the action type. * @return string */ function getType() { return $this->_type; } /** * Set the action URL. * @param $url string */ function setUrl($url) { $this->_url = $url; } /** * Get the action URL. * @return string */ function getUrl() { return $this->_url; } /** * Set the action title. * @param $title string */ function setTitle($title) { $this->_title = $title; } /** * Get the action title. * @return string */ function getTitle() { return $this->_title; } /** * Set the column title (already translated) * @param $titleLocalized string */ function setTitleTranslated($titleLocalized) { $this->_titleLocalized = $titleLocalized; } /** * Get the translated column title * @return string */ function getLocalizedTitle() { if ( $this->_titleLocalized ) return $this->_titleLocalized; return __($this->_title); } /** * Set the action image. * @param $image string */ function setImage($image) { $this->_image = $image; } /** * Get the action image. * @return string */ function getImage() { return $this->_image; } /** * Set the locale key to display in the confirm dialog * @param $confirmMessageLocalized string */ function setLocalizedConfirmMessage($confirmMessageLocalized) { $this->_confirmMessageLocalized = $confirmMessageLocalized; } /** * Get the locale key to display in the confirm dialog * @return string */ function getLocalizedConfirmMessage() { return $this->_confirmMessageLocalized; } /** * Specify the target object of the action (if any). * @param $actOn string */ function setActOn($actOn) { $this->_actOn = $actOn; } /** * Get the target object of the action (null if none configured). * @return string */ function getActOn() { return $this->_actOn; } } ?>