GridHandler::addAction PHP Method

addAction() public method

Add an action.
public addAction ( $action, $position = GRID_ACTION_POSITION_ABOVE )
$action Mixed a single action.
$position string The position of the action.
    function addAction($action, $position = GRID_ACTION_POSITION_ABOVE)
    {
        if (!isset($this->_actions[$position])) {
            $this->_actions[$position] = array();
        }
        $this->_actions[$position][$action->getId()] = $action;
    }