public function createManialinkAction(ManialinkInterface $manialink, $callable, $args, $permanent = false)
    {
        $class = $this->class;
        /** @var Action $action */
        $action = new $class($callable, $args, $permanent);
        $this->actions[$action->getId()] = $action;
        $this->actionsByManialink[$manialink->getId()][$action->getId()] = $action;
        $this->manialinkByAction[$action->getId()] = $manialink;

        return $action->getId();
    }
public function createManialinkAction(ManialinkInterface $manialink, $callable, $args, $permanent = false)
    {
        $class = $this->class;
        /** @var Action $action */
        $action = new $class($callable, $args, $permanent);
        $this->actions[$action->getId()] = $action;
        $this->actionsByManialink[$manialink->getId()][$action->getId()] = $action;
        $this->manialinkByAction[$action->getId()] = $manialink;

        return $action->getId();
    }
public function createManialinkAction ( ManialinkInterface $ manialink , $ callable , $ args , $ permanent = false ) { $ class = $ this -> class ; /** @var Action $action */ $ action = new $ class ( $ callable , $ args , $ permanent ) ; $ this -> actions [ $ action -> getId ( ) ] = $ action ; $ this -> actionsByManialink [ $ manialink -> getId ( ) ] [ $ action -> getId ( ) ] = $ action ; $ this -> manialinkByAction [ $ action -> getId ( ) ] = $ manialink ; return $ action -> getId ( ) ; }
Create a Manialink action for a manialink.

@param ManialinkInterface $manialink
@param                    $callable
@param array              $args
@param boolean            $permanent

@return string action Id
Create a Manialink action for a manialink .