src/tools/MbPage.php
public function addMbAction($actionName, $action = null)
    {
        $mbAction = new MbAction($this, $actionName);
        $mbAction->actionResolver($action);

        return $this->setMbAction($mbAction);
    }
public function addMbAction($actionName, $action = null)
    {
        $mbAction = new MbAction($this, $actionName);
        $mbAction->actionResolver($action);

        return $this->setMbAction($mbAction);
    }
public function addMbAction ( $ actionName , $ action = null ) { $ mbAction = new MbAction ( $ this , $ actionName ) ; $ mbAction -> actionResolver ( $ action ) ; return $ this -> setMbAction ( $ mbAction ) ; }
add new MbAction

@param string                $actionName
@param string|callable|mixed $action

@return MbAction
add new MbAction