src/FelixOnline/Base/Hooks.php
public function addAction($action, $function, $protect = true)
    {
        $this->actions[$action] = $function;
        $this->protected[$action] = $protect;

        return $this->actions;
    }
public function addAction($action, $function, $protect = true)
    {
        $this->actions[$action] = $function;
        $this->protected[$action] = $protect;

        return $this->actions;
    }
/*
Public: Add action