Swat/SwatActions.php
public function addActionItem(SwatActionItem $item)
    {
        $this->action_items[] = $item;
        $item->parent = $this;

        if ($item->id !== null) {
            $this->action_items_by_id[$item->id] = $item;
        }
    }
public function addActionItem(SwatActionItem $item)
    {
        $this->action_items[] = $item;
        $item->parent = $this;

        if ($item->id !== null) {
            $this->action_items_by_id[$item->id] = $item;
        }
    }
public function addActionItem ( SwatActionItem $ item ) { $ this -> action_items [ ] = $ item ; $ item -> parent = $ this ; if ( $ item -> id !== null ) { $ this -> action_items_by_id [ $ item -> id ] = $ item ; } }
Adds an action item

Adds a SwatActionItem to this SwatActions widget.

@param SwatActionItem $item a reference to the item to add.

@see SwatActionItem
Adds an action item