public function setActions($actions) {
        if (!is_array($actions)) {
            $actions = array($actions);
        }
        $this->actions = array_filter($actions, array($this, 'isValidAction'));
        return $this;
    }
public function setActions($actions) {
        if (!is_array($actions)) {
            $actions = array($actions);
        }
        $this->actions = array_filter($actions, array($this, 'isValidAction'));
        return $this;
    }
public function setActions ( $ actions ) { if ( ! is_array ( $ actions ) ) { $ actions = array ( $ actions ) ; } $ this -> actions = array_filter ( $ actions , array ( $ this , 'isValidAction' ) ) ; return $ this ; }
Sets the actions this event should listen for.
@param array|string $actions Either a single action as string, or multiple actions as array.
@return $this Implementing fluent interface.
Sets the actions this event should listen for .